Google Search Console Sitemaps API

Submit and manage sitemaps and sitemap indexes for your site. List submitted sitemaps, check their processing status, submit new sitemaps, and delete previously submitted sitemaps.

Operations 4

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

GET /webmasters/v3/sites/{siteUrl}/sitemaps List the sitemaps submitted for a site · Google Search Console List Sitemaps #
Ask an LLM
“Which sitemaps has Google picked up for my site, including ones found through robots.txt?”
“Can I see only the sitemaps listed inside one particular sitemap index?”
Tell an agent
List all sitemaps submitted for {siteUrl}.
Show the sitemaps for {siteUrl} that belong to the sitemap index {sitemapIndex}.
GET /webmasters/v3/sites/{siteUrl}/sitemaps/{feedpath} Check the status of one sitemap · Google Search Console Get Sitemap Details #
Ask an LLM
“Did Google report errors or warnings when it processed my sitemap?”
“When was a specific sitemap last submitted and how many URLs does it contain?”
Tell an agent
Get the processing details for sitemap {feedpath} on {siteUrl}.
Show me the error and warning counts for {feedpath} on property {siteUrl}.
PUT /webmasters/v3/sites/{siteUrl}/sitemaps/{feedpath} Submit or resubmit a sitemap · Google Search Console Submit a Sitemap #
Ask an LLM
“How do I tell Google about a new sitemap for my site?”
“Can I resubmit a sitemap so Google reprocesses it after I changed it?”
Tell an agent
Submit the sitemap {feedpath} for {siteUrl}.
Resubmit {feedpath} on {siteUrl} so Google processes it again.
DELETE /webmasters/v3/sites/{siteUrl}/sitemaps/{feedpath} Remove a sitemap from Search Console · Google Search Console Delete a Sitemap #
Ask an LLM
“How do I remove an old sitemap from my Search Console list?”
“Will deleting a sitemap stop Google from crawling the URLs it contained?”
Tell an agent destructive · confirm first
Delete the sitemap {feedpath} from {siteUrl} in Search Console.
Remove {feedpath} from the submitted sitemaps of {siteUrl}.

Documentation

Specifications

Code Examples

Schemas & Data

Other Resources

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/google-search-console:google-search-console-sitemaps-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

google-search-console-sitemaps-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Google Search Console Sitemaps API
  description: The Google Search Console API provides programmatic access to Search Console data. Query search analytics to understand how your site appears in Google Search results, manage sitemaps for efficient crawling, inspect individual URLs to check indexing status and crawl details, and manage site-level verification and permissions.
  version: v1
  contact:
    name: Google Search Console API Support
    url: https://support.google.com/webmasters/
  termsOfService: https://developers.google.com/terms
  license:
    name: Creative Commons Attribution 4.0
    url: https://creativecommons.org/licenses/by/4.0/
servers:
- url: https://searchconsole.googleapis.com
  description: Google Search Console API Production Server
security:
- OAuth2:
  - https://www.googleapis.com/auth/webmasters
tags:
- name: Sitemaps
  description: Submit and manage sitemaps and sitemap indexes for your site. List submitted sitemaps, check their processing status, submit new sitemaps, and delete previously submitted sitemaps.
paths:
  /webmasters/v3/sites/{siteUrl}/sitemaps:
    get:
      operationId: listSitemaps
      summary: Google Search Console List Sitemaps
      description: Lists the sitemaps submitted for the specified site. Returns both manually submitted sitemaps and sitemaps discovered via robots.txt. Includes processing status, error counts, and content details for each sitemap.
      tags:
      - Sitemaps
      security:
      - OAuth2:
        - https://www.googleapis.com/auth/webmasters.readonly
      parameters:
      - $ref: '#/components/parameters/SiteUrl'
      - name: sitemapIndex
        in: query
        required: false
        description: A URL of a sitemap index. If specified, only sitemaps that are listed in this sitemap index are returned.
        schema:
          type: string
          format: uri
        example: https://www.example.com
      responses:
        '200':
          description: List of sitemaps.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SitemapsListResponse'
              examples:
                Listsitemaps200Example:
                  summary: Default listSitemaps 200 response
                  x-microcks-default: true
                  value:
                    sitemap:
                    - path: https://www.example.com
                      lastSubmitted: '2026-01-15T10:30:00Z'
                      isPending: true
                      isSitemapsIndex: true
                      type: atomFeed
                      lastDownloaded: '2026-01-15T10:30:00Z'
                      warnings: 10
                      errors: 10
                      contents: {}
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
      x-microcks-operation:
        delay: 0
        dispatcher: FALLBACK
  /webmasters/v3/sites/{siteUrl}/sitemaps/{feedpath}:
    get:
      operationId: getSitemap
      summary: Google Search Console Get Sitemap Details
      description: Retrieves information about a specific sitemap, including its type, last submission time, processing status, warnings, errors, and the number of URLs it contains.
      tags:
      - Sitemaps
      security:
      - OAuth2:
        - https://www.googleapis.com/auth/webmasters.readonly
      parameters:
      - $ref: '#/components/parameters/SiteUrl'
      - $ref: '#/components/parameters/Feedpath'
      responses:
        '200':
          description: Sitemap details.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WmxSitemap'
              examples:
                Getsitemap200Example:
                  summary: Default getSitemap 200 response
                  x-microcks-default: true
                  value:
                    path: https://www.example.com
                    lastSubmitted: '2026-01-15T10:30:00Z'
                    isPending: true
                    isSitemapsIndex: true
                    type: atomFeed
                    lastDownloaded: '2026-01-15T10:30:00Z'
                    warnings: 10
                    errors: 10
                    contents:
                    - type: web
                      submitted: 10
                      indexed: 10
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
      x-microcks-operation:
        delay: 0
        dispatcher: FALLBACK
    put:
      operationId: submitSitemap
      summary: Google Search Console Submit a Sitemap
      description: Submits a sitemap for a site. If the sitemap has already been submitted, it will be resubmitted and re-processed. The sitemap URL must be accessible to Googlebot. Submitting a sitemap index will submit all sitemaps listed in the index.
      tags:
      - Sitemaps
      parameters:
      - $ref: '#/components/parameters/SiteUrl'
      - $ref: '#/components/parameters/Feedpath'
      responses:
        '204':
          description: Sitemap submitted successfully.
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
      x-microcks-operation:
        delay: 0
        dispatcher: FALLBACK
    delete:
      operationId: deleteSitemap
      summary: Google Search Console Delete a Sitemap
      description: Deletes a previously submitted sitemap from Search Console. This does not prevent Google from crawling the URLs in the sitemap; it only removes the sitemap from the list of submitted sitemaps in Search Console.
      tags:
      - Sitemaps
      parameters:
      - $ref: '#/components/parameters/SiteUrl'
      - $ref: '#/components/parameters/Feedpath'
      responses:
        '204':
          description: Sitemap deleted successfully.
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
      x-microcks-operation:
        delay: 0
        dispatcher: FALLBACK
components:
  schemas:
    WmxSitemapContent:
      type: object
      description: Content type information within a sitemap.
      properties:
        type:
          type: string
          description: The type of content in this sitemap segment.
          enum:
          - web
          - image
          - video
          - news
          - mobile
          - androidApp
          - pattern
          - iosApp
          - dataFeedElement
          example: web
        submitted:
          type: integer
          format: int64
          description: The number of URLs of this type submitted in the sitemap.
          example: 10
        indexed:
          type: integer
          format: int64
          description: The number of URLs of this type that have been indexed by Google.
          example: 10
    SitemapsListResponse:
      type: object
      description: Response for listing sitemaps.
      properties:
        sitemap:
          type: array
          description: List of sitemaps for the site.
          items:
            $ref: '#/components/schemas/WmxSitemap'
          example: []
    Error:
      type: object
      description: Standard Google API error response.
      properties:
        error:
          type: object
          properties:
            code:
              type: integer
              description: HTTP status code.
            message:
              type: string
              description: A human-readable error message.
            status:
              type: string
              description: The status code string (e.g., INVALID_ARGUMENT).
            errors:
              type: array
              items:
                type: object
                properties:
                  message:
                    type: string
                  domain:
                    type: string
                  reason:
                    type: string
          example: example_value
    WmxSitemap:
      type: object
      description: Information about a sitemap submitted to Search Console. Includes processing status, error counts, and content details.
      properties:
        path:
          type: string
          format: uri
          description: The URL of the sitemap.
          example: https://www.example.com
        lastSubmitted:
          type: string
          format: date-time
          description: Date and time when the sitemap was last submitted to Search Console.
          example: '2026-01-15T10:30:00Z'
        isPending:
          type: boolean
          description: Whether the sitemap is still being processed.
          example: true
        isSitemapsIndex:
          type: boolean
          description: Whether this is a sitemap index file.
          example: true
        type:
          type: string
          description: The type of content in the sitemap.
          enum:
          - atomFeed
          - rssFeed
          - sitemap
          - urlList
          - patternSitemap
          - notSitemap
          example: atomFeed
        lastDownloaded:
          type: string
          format: date-time
          description: Date and time when the sitemap was last downloaded by Google.
          example: '2026-01-15T10:30:00Z'
        warnings:
          type: integer
          description: Number of warnings for the sitemap.
          example: 10
        errors:
          type: integer
          description: Number of errors for the sitemap.
          example: 10
        contents:
          type: array
          description: Content details for this sitemap, broken down by content type.
          items:
            $ref: '#/components/schemas/WmxSitemapContent'
          example: []
  responses:
    Forbidden:
      description: Insufficient permissions for the requested operation.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    Unauthorized:
      description: Authentication required or invalid credentials.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    NotFound:
      description: The requested resource was not found.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    BadRequest:
      description: The request was invalid or cannot be served.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  parameters:
    SiteUrl:
      name: siteUrl
      in: path
      required: true
      description: The site's URL, including protocol. For domain properties, use the format sc-domain:example.com. For URL-prefix properties, use the full URL (e.g., https://example.com/). The URL must be encoded.
      schema:
        type: string
      example: https://example.com/
    Feedpath:
      name: feedpath
      in: path
      required: true
      description: The URL of the sitemap. Must be the full URL, including the protocol (e.g., https://example.com/sitemap.xml). The URL must be encoded.
      schema:
        type: string
        format: uri
      example: https://example.com/sitemap.xml
  securitySchemes:
    OAuth2:
      type: oauth2
      description: OAuth 2.0 authentication for accessing Google Search Console data. Requires the webmasters or webmasters.readonly scope depending on the operation.
      flows:
        authorizationCode:
          authorizationUrl: https://accounts.google.com/o/oauth2/v2/auth
          tokenUrl: https://oauth2.googleapis.com/token
          scopes:
            https://www.googleapis.com/auth/webmasters: View and manage Search Console data for your verified sites
            https://www.googleapis.com/auth/webmasters.readonly: View Search Console data for your verified sites
externalDocs:
  description: Google Search Console API Documentation
  url: https://developers.google.com/webmaster-tools/v1/api_reference_index