1.0.1 • Published 10 months ago
@jaliti/google-sc v1.0.1
Google Search Console API
Inspect URLs, view, add, update, and delete sites and sitemaps.
Usage
import { SearchConsole } from "@jaliti/google-sc";
const sc = new SearchConsole();
(async () => {
// Provide service account email and private key
await sc.configure({ email, privateKey });
// Get list of sites in Google Search Console
const sites = await sc.getSites();
console.log("Sites:", sites);
})();