Submit sitemap

Tell Google where a sitemap is, or resubmit it. Owner or Full user.

POST https://cotlet.dev/api/v1/google-search-console/sitemap/submit

write

Submits a sitemap URL in the Sitemaps report. Submitting only tells Google where the file is; it is fetched right away, but the listed URLs may take time to be crawled and some never are. Redirects are not followed, so give the exact URL. You need Owner or Full user permission. It reaches no one and is undone by removing the sitemap, so it runs without asking first.

Parameters

Parameters: submit_sitemap
NameTypeDescription
property string required string Property as Search Console lists it: sc-domain:example.com for a Domain property, https://example.com/ for a URL-prefix property.
sitemap_url string required string Exact sitemap URL, e.g. https://example.com/sitemap.xml.

Request

cURL
curl -X POST https://cotlet.dev/api/v1/google-search-console/sitemap/submit \
  -H "Authorization: Bearer $COTLET_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"property":"property","sitemap_url":"https://example.com"}'
Python
result = client.call("google-search-console", "submit_sitemap", {"property":"property","sitemap_url":"https://example.com"})
Node.js
const result = await cotlet.call('google-search-console', 'submit_sitemap', {"property":"property","sitemap_url":"https://example.com"});
CLI
cotlet call google-search-console submit_sitemap --data '{"property":"property","sitemap_url":"https://example.com"}'

Example response

JSON

{
  "property": "sc-domain:example.com",
  "sitemap": "https://example.com/sitemap.xml",
  "status": "submitted"
}

Sign in once. Your agent does the rest.

Sign up and add the apps you need. Free 7-day trial with 2,000 credits, no card needed.