Submit or resubmit a sitemap
submit_sitemapSubmit a sitemap to Google Search Console to prompt recrawling after publishing. It is the programmatic equivalent of requesting indexing; check status later with the sitemap lookup.
Instructions
Submit or resubmit a sitemap. This is the only way the API can ask Google to recrawl anything: there is no endpoint behind the "Request indexing" button, so resubmitting after publishing is the programmatic equivalent. Returns immediately. Google fetches the file on its own schedule, so read the result back with get_sitemap rather than expecting counts here.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| site | Yes | The Search Console property. Either a URL-prefix property ("https://navid.me/", trailing slash included) or a domain property ("sc-domain:navid.me"). A bare hostname is read as a domain property. Call list_sites for the exact strings this account owns, because the two shapes are different properties and mixing them up returns a 403. | |
| account | No | Which signed-in Google account to act as, by email. Omit to use the default. Call list_accounts to see what is signed in. | |
| sitemap_url | Yes | Full URL of the sitemap. Must be on the property it is submitted to. |