1.0.4 • Published 1 year ago

@jaliti/google-indexing v1.0.4

Weekly downloads
-
License
ISC
Repository
github
Last release
1 year ago

Google Indexing API

Index, delete, and request recrawls from Google servers.

Prerequisites

  1. Enable the indexing API from Google Developer Console
  2. Create a new service account
  3. Verify ownership in Google Search Console

Usage

import { Indexing } from "@jaliti/google-indexing";

const gi = new Indexing();

(async () => {
  // Provide service account email and private key
  await gi.configure({ email, privateKey });

  // Send requests
  const resp = await gi.publishURL(
    "https://example.com/my-new-page",
    "URL_UPDATED"
  );

  console.log(resp);
})();
1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago