{"id":21019046,"url":"https://github.com/paalamugan/google-indexing-api-script","last_synced_at":"2025-07-03T21:42:01.092Z","repository":{"id":114373170,"uuid":"474078758","full_name":"paalamugan/google-indexing-api-script","owner":"paalamugan","description":"Using this script helps to index your website and make your website ranking first in Google Search.","archived":false,"fork":false,"pushed_at":"2022-03-25T17:01:34.000Z","size":36,"stargazers_count":4,"open_issues_count":0,"forks_count":4,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-03T05:13:07.235Z","etag":null,"topics":["api","express","gcp","google","google-cloud-platform","google-sheets","google-sheets-api","indexing","indexing-api","indexnow","seo"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/paalamugan.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-03-25T16:09:36.000Z","updated_at":"2024-07-09T11:33:50.000Z","dependencies_parsed_at":null,"dependency_job_id":"f5dfe6c9-a163-487c-8856-f8653a1241c9","html_url":"https://github.com/paalamugan/google-indexing-api-script","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paalamugan%2Fgoogle-indexing-api-script","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paalamugan%2Fgoogle-indexing-api-script/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paalamugan%2Fgoogle-indexing-api-script/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paalamugan%2Fgoogle-indexing-api-script/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/paalamugan","download_url":"https://codeload.github.com/paalamugan/google-indexing-api-script/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254288339,"owners_count":22045883,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["api","express","gcp","google","google-cloud-platform","google-sheets","google-sheets-api","indexing","indexing-api","indexnow","seo"],"created_at":"2024-11-19T10:28:49.198Z","updated_at":"2025-05-15T06:31:58.065Z","avatar_url":"https://github.com/paalamugan.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Google Indexing API Script\n\n**Using this script helps to index your website and make your website ranking first in Google Search.**\n\nRequires node.js - https://nodejs.org/en/download/\n\nThis script will help you index your website's pages in bulk, without having to manually request each URL for submission in the Search Console interface.\n\nFirst off you will need to set up access to the Indexing API in Google Cloud Platform - follow the instructions below.\n\nhttps://developers.google.com/search/apis/indexing-api/v3/prereqs\n\nOnce you have access to Indexing API you'll be able to download a public/private key pair JSON file, this contains all of your credentials and should be saved as \"service_account.json\".\n\nAdd the URLs to the urls.txt file that you need to be crawled/indexed.\n\n\n## Verify site ownership in Search Console to submit URLs for indexing\nIn this step, you'll verify that you have control over your web property.\n\nTo verify ownership of your site you'll need to add your service account email address (see service_account.json - client_email) and add it as an owner ('delegated') of the web property in Search Console.\n\nYou can find your service account email address in two places:\n- The client_email field in the JSON private key that you downloaded when you created your project.\n- The Service account ID column of the Service Accounts view in the Developer Console.\n- The email address has a format similar to the following:\n\nFor example, \"my-service-account@my-project-42.google.com.iam.gserviceaccount.com\".\n\nThen...\n\n1. Go to [Google Webmaster Central](https://www.google.com/webmasters/verification/home)\n2. Click your verified property\n3. Scroll down and click 'Add an owner'.\n4. Add your service account email address as an owner to the property.\n\n\n## Quotas\n\n100 URLs per request batch\n\n200 URLs per day\n\n## GET STARTED\n\n- Node Engine\n```sh\nnode - 14.17.5\nnpm - 6.14.14\n```\n\n- Install Dependencies\n```sh\nnpm install\n```\n\n- You need to be add important environment variable in `.env` file, Below you can find the sample example of `.env` file variables.\n\n```sh\nINDEXNOW_API_KEY='bd1c8878880ef483d8c74caf71209ff21'\nINDEXING_SPREADSHEET_ID='1OOAa59Mu4OyYVBdeoGHwJFaZFn36wA7H007nlRGpLfo'\nINDEXING_SUCCESS_SPREADSHEET_ID='1zOofPBvE-OafrPlfXYA_26sv-8uWq3BXlbIFOz1BSuU'\nINDEXING_SHEET_NAME='Sheet1'\nINDEXING_SUCCESS_SHEET_NAME='Sheet1'\nHTTP_PROXY=''\nHTTPS_PROXY=''\n```\n\n- To run application in development mode\n```sh\nnpm run dev\n```\n\n- To run application in production mode\n\n**Run Script only once, Using below command**\n```sh\nnpm run start\n```\n\n**Run Script automatically with Scheduler function, Using below command**\n```sh\nnpm run scheduler\n```\n\n### Google Spreadsheet Indexing Format\n\n- From Indexing Spreadsheet format. (Where we get all urls)\n\n| URLS   |\n| --- |\n| https://example.com/path-to-url | \n| https://example.com/path-to-url1 |\n| https://example.com/path-to-url2 |\n\n- To Indexing Success Spreadsheet format. (Where we add the all responses of that above urls)\n\n| URL | Google Indexing Response | IndexNow Indexing Response |\n| --- | ------------------------ | ------------- |\n| https://example.com/path-to-url | Response message from Google indexing | Response message from IndexNow Indexing |\n| https://example.com/path-to-url1 | Response message from Google indexing | Response message from IndexNow Indexing |\n| https://example.com/path-to-url2 | Response message from Google indexing | Response message from IndexNow Indexing |\n\n### Tips\n\n- [Google Sheets API Overview](https://developers.google.com/sheets/api/guides/concepts)\n- [Using the Indexing API for google](https://developers.google.com/search/apis/indexing-api/v3/using-api)\n- [Indexnow Indexing Documentation](https://www.indexnow.org/documentation)\n- [Samples Example of Indexnow Apis](https://www.bing.com/indexnow#samples)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpaalamugan%2Fgoogle-indexing-api-script","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpaalamugan%2Fgoogle-indexing-api-script","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpaalamugan%2Fgoogle-indexing-api-script/lists"}