1.0.4 • Published 10 months ago

@jaliti/google-indexing v1.0.4

Weekly downloads
-
License
ISC
Repository
github
Last release
10 months 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

10 months ago

1.0.3

10 months ago

1.0.2

10 months ago

1.0.1

10 months ago

1.0.0

10 months ago