List the sitemaps submitted in Search Console
curl --request GET \
--url https://api.seomator.com/v1/projects/{id}/gsc/sitemaps \
--header 'x-api-key: <api-key>'const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://api.seomator.com/v1/projects/{id}/gsc/sitemaps', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.seomator.com/v1/projects/{id}/gsc/sitemaps"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text){
"property": "<string>",
"sitemaps": [
{
"path": "<string>",
"lastSubmitted": "<string>",
"lastDownloaded": "<string>",
"pending": true,
"index": true,
"warnings": 123,
"errors": 123,
"submitted": 123
}
]
}{
"error": {
"code": "bad_request",
"message": "<string>",
"requestId": "<string>"
}
}{
"error": {
"code": "bad_request",
"message": "<string>",
"requestId": "<string>"
}
}{
"error": {
"code": "bad_request",
"message": "<string>",
"requestId": "<string>"
}
}{
"error": {
"code": "bad_request",
"message": "<string>",
"requestId": "<string>"
}
}List the sitemaps submitted in Search Console
Each sitemap with when Google last read it, how many URLs it lists and its warning and error counts.
Reads only the project country unless country is all. 409 when Search Console is not connected or access was lost; 503 when Google does not answer. Answers are cached a day (an hour with fresh and for inspections).
GET
/
v1
/
projects
/
{id}
/
gsc
/
sitemaps
List the sitemaps submitted in Search Console
curl --request GET \
--url https://api.seomator.com/v1/projects/{id}/gsc/sitemaps \
--header 'x-api-key: <api-key>'const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://api.seomator.com/v1/projects/{id}/gsc/sitemaps', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.seomator.com/v1/projects/{id}/gsc/sitemaps"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text){
"property": "<string>",
"sitemaps": [
{
"path": "<string>",
"lastSubmitted": "<string>",
"lastDownloaded": "<string>",
"pending": true,
"index": true,
"warnings": 123,
"errors": 123,
"submitted": 123
}
]
}{
"error": {
"code": "bad_request",
"message": "<string>",
"requestId": "<string>"
}
}{
"error": {
"code": "bad_request",
"message": "<string>",
"requestId": "<string>"
}
}{
"error": {
"code": "bad_request",
"message": "<string>",
"requestId": "<string>"
}
}{
"error": {
"code": "bad_request",
"message": "<string>",
"requestId": "<string>"
}
}