Lists the sitemaps submitted for a Search Console property with their status, last download, error counts and URLs submitted.
curl -X POST "https://api.primaryapi.com/v1/run/search-console.sitemaps" \
-H "Authorization: Bearer $PRIMARYAPI_API_KEY" \
-H "Content-Type: application/json" \
-d '{"siteUrl":"https://www.example.com/"}'{
"output": {
"found": true,
"data": {
"nextCursor": null,
"sitemaps": [
{
"warnings": 0,
"errors": 0,
"isIndex": false,
"isPending": false, …
}
]
}
},
"credits": 1
}Input and output
3 fields
https://www.example.com/.9 fields
Good to know
Runs as your connected Google account. Needs the Read Search Console capability.
Submit or remove sitemaps with search-console.submit_sitemap. search-console.delete_sitemap.
A property the account cannot see is a miss with reason no_access.
Unknown site URL? It comes back as not found, not as an error.
The same key and credits work for every API.