Google Search Console API
  1. sitemaps
Google Search Console API
  • urlInspection
    • /v1/urlInspection/index:inspect
      POST
  • urlTestingTools
    • /v1/urlTestingTools/mobileFriendlyTest:run
      POST
  • sites
    • /webmasters/v3/sites
      GET
    • /sites
      GET
    • /webmasters/v3/sites/{siteUrl}
      DELETE
    • /sites/{siteUrl}
      DELETE
    • /webmasters/v3/sites/{siteUrl}
      GET
    • /sites/{siteUrl}
      GET
    • /webmasters/v3/sites/{siteUrl}
      PUT
    • /sites/{siteUrl}
      PUT
  • searchanalytics
    • /webmasters/v3/sites/{siteUrl}/searchAnalytics/query
      POST
    • /sites/{siteUrl}/searchAnalytics/query
      POST
  • sitemaps
    • /webmasters/v3/sites/{siteUrl}/sitemaps
      GET
    • /sites/{siteUrl}/sitemaps
      GET
    • /webmasters/v3/sites/{siteUrl}/sitemaps/{feedpath}
      DELETE
    • /sites/{siteUrl}/sitemaps/{feedpath}
      DELETE
    • /webmasters/v3/sites/{siteUrl}/sitemaps/{feedpath}
      GET
    • /sites/{siteUrl}/sitemaps/{feedpath}
      GET
    • /webmasters/v3/sites/{siteUrl}/sitemaps/{feedpath}
      PUT
    • /sites/{siteUrl}/sitemaps/{feedpath}
      PUT
  1. sitemaps

/webmasters/v3/sites/{siteUrl}/sitemaps

GET
/webmasters/v3/sites/{siteUrl}/sitemaps
sitemaps
Lists the sitemaps-entries submitted for this site, or included in the sitemap index file (if sitemapIndex is specified in the request).
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://searchconsole.googleapis.com//webmasters/v3/sites//sitemaps'
Response Response Example
{
  "sitemap": [
    {
      "contents": [
        {
          "indexed": "string",
          "submitted": "string",
          "type": "WEB"
        }
      ],
      "errors": "string",
      "isPending": true,
      "isSitemapsIndex": true,
      "lastDownloaded": "string",
      "lastSubmitted": "string",
      "path": "string",
      "type": "NOT_SITEMAP",
      "warnings": "string"
    }
  ]
}

Request

Path Params
siteUrl
string 
required
The site's URL, including protocol. For example: http://www.example.com/.
Query Params
sitemapIndex
string 
optional
A URL of a site's sitemap index. For example: http://www.example.com/sitemapindex.xml.

Responses

🟢200Successful response
application/json
Body
List of sitemaps.
sitemap
array[object (WmxSitemap) {9}] 
optional
Contains detailed information about a specific URL submitted as a sitemap.
contents
array[object (WmxSitemapContent) {3}] 
optional
The various content types in the sitemap.
errors
string <int64>
optional
Number of errors in the sitemap. These are issues with the sitemap itself that need to be fixed before it can be processed correctly.
isPending
boolean 
optional
If true, the sitemap has not been processed.
isSitemapsIndex
boolean 
optional
If true, the sitemap is a collection of sitemaps.
lastDownloaded
string <google-datetime>
optional
Date & time in which this sitemap was last downloaded. Date format is in RFC 3339 format (yyyy-mm-dd).
lastSubmitted
string <google-datetime>
optional
Date & time in which this sitemap was submitted. Date format is in RFC 3339 format (yyyy-mm-dd).
path
string 
optional
The url of the sitemap.
type
enum<string> 
optional
The type of the sitemap. For example: rssFeed.
Allowed values:
NOT_SITEMAPURL_LISTSITEMAPRSS_FEEDATOM_FEEDPATTERN_SITEMAPOCEANFRONT
warnings
string <int64>
optional
Number of warnings for the sitemap. These are generally non-critical issues with URLs in the sitemaps.
Modified at 2023-08-15 09:03:48
Previous
/sites/{siteUrl}/searchAnalytics/query
Next
/sites/{siteUrl}/sitemaps
Built with