{"id":15908640,"url":"https://github.com/capjamesg/google-indexing-api","last_synced_at":"2025-03-22T03:31:32.260Z","repository":{"id":237335561,"uuid":"794320657","full_name":"capjamesg/google-indexing-api","owner":"capjamesg","description":"Use the Google Indexing API to submit URLs for indexing to Google Search.","archived":false,"fork":false,"pushed_at":"2024-04-30T22:34:41.000Z","size":9,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-18T07:43:09.527Z","etag":null,"topics":["google-indexing-api","google-search","seo"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/capjamesg.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2024-04-30T22:25:21.000Z","updated_at":"2024-08-07T04:39:11.000Z","dependencies_parsed_at":"2024-04-30T23:47:51.705Z","dependency_job_id":null,"html_url":"https://github.com/capjamesg/google-indexing-api","commit_stats":null,"previous_names":["capjamesg/google-indexing-api"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/capjamesg%2Fgoogle-indexing-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/capjamesg%2Fgoogle-indexing-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/capjamesg%2Fgoogle-indexing-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/capjamesg%2Fgoogle-indexing-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/capjamesg","download_url":"https://codeload.github.com/capjamesg/google-indexing-api/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244902929,"owners_count":20529114,"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":["google-indexing-api","google-search","seo"],"created_at":"2024-10-06T14:23:02.406Z","updated_at":"2025-03-22T03:31:31.752Z","avatar_url":"https://github.com/capjamesg.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# google-indexing-api\n\nUse the [Google Indexing API](https://developers.google.com/search/apis/indexing-api/v3/quickstart) to submit URLs for indexing to Google Search.\n\nThis tool lets you provide a sitemap and send URLs that match any regexes you provide for indexing using the Google Indexing API.\n\nTo use this project, first clone this repository and install the required dependencies:\n\n```\ngit clone https://github.com/capjamesg/google-indexing-api\ncd google-indexing-api/\npip3 install -r requirements.txt\n```\n\nThen, update the following values in `app.py`:\n\n```\nSITEMAP = \"https://example.com/sitemap.xml\" # the sitemap to crawl\nMATCHING_REGEXES = [r\"/posts/\"] # the regexes of paths you want to crawl\nREQUEST_TYPE = \"URL_UPDATED\" # request type: either URL_UPDATED or URL_DELETED\n```\n\nThen, create a Service Account in Google Cloud. Grant access to the Google Indexing API to the Service Account.\n\nIssue OAuth credentials for your Service Account and save them to a file called `secret.json` that is in the same folder as the `app.py` file.\n\nNext, invite the email for your service account to your Google Search Console instance.\n\nNow, you can run the script to request indexing of URLs:\n\n```\npython3 app.py\n```\n\nAt the time of writing this script, Google allows 200 requests per day.\n\n## License\n\nThis project is licensed under an [MIT license](LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcapjamesg%2Fgoogle-indexing-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcapjamesg%2Fgoogle-indexing-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcapjamesg%2Fgoogle-indexing-api/lists"}