Google Indexing API Bulk URL Submission avatar
Google Indexing API Bulk URL Submission

Pricing

$30.00/month + usage

Go to Store
Google Indexing API Bulk URL Submission

Google Indexing API Bulk URL Submission

Developed by

Mohamed Moo

Mohamed Moo

Maintained by Community

This Actor allows you to submit multiple URLs for indexing in bulk through Google's Indexing API. It avoids the need to manually request each URL to be indexed via the Google Search Console interface. With this tool, you can quickly submit up to 100 URLs at once.

0.0 (0)

Pricing

$30.00/month + usage

0

Total users

1

Monthly users

1

Last modified

5 hours ago

You can access the Google Indexing API Bulk URL Submission programmatically from your own applications by using the Apify API. You can also choose the language preference from below. To use the Apify API, you’ll need an Apify account and your API token, found in Integrations settings in Apify Console.

1import { ApifyClient } from 'apify-client';
2
3// Initialize the ApifyClient with your Apify API token
4// Replace the '<YOUR_API_TOKEN>' with your token
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9// Prepare Actor input
10const input = {
11 "urlsTxt": `https://example.com/
12 https://example.com/products/`,
13 "sitemapUrl": "https://example.com/sitemap.xml",
14 "serviceAccount": `{
15 "type": "service_account",
16 "project_id": "your-project-id",
17 "private_key_id": "your-private-key-id",
18 "private_key": "-----BEGIN PRIVATE KEY-----\nYOUR_PRIVATE_KEY\n-----END PRIVATE KEY-----\n",
19 "client_email": "your-service-account@your-project.iam.gserviceaccount.com",
20 "client_id": "your-client-id",
21 "auth_uri": "https://accounts.google.com/o/oauth2/auth",
22 "token_uri": "https://oauth2.googleapis.com/token",
23 "auth_provider_x509_cert_url": "https://www.googleapis.com/oauth2/v1/certs",
24 "client_x509_cert_url": "https://www.googleapis.com/robot/v1/metadata/x509/your-service-account@your-project.iam.gserviceaccount.com"
25 }`
26};
27
28// Run the Actor and wait for it to finish
29const run = await client.actor("mabdulmoghni/google-indexing-api-bulk-url-submission").call(input);
30
31// Fetch and print Actor results from the run's dataset (if any)
32console.log('Results from dataset');
33console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
34const { items } = await client.dataset(run.defaultDatasetId).listItems();
35items.forEach((item) => {
36 console.dir(item);
37});
38
39// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

Google Indexing API Bulk URL Submission API in JavaScript

The Apify API client for JavaScript is the official library that allows you to use Google Indexing API Bulk URL Submission API in JavaScript or TypeScript, providing convenience functions and automatic retries on errors.

Install the apify-client

$npm install apify-client

Other API clients include: