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.

GitHub OpenAPI
Business capability
Digital Marketing Management BC-400.60

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

PUT /webmasters/v3/sites/{siteUrl}/sitemaps/{feedpath} Submit or resubmit a sitemap · Submit sitemaps #
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.
GET /webmasters/v3/sites/{siteUrl}/sitemaps/{feedpath} Check the status of one sitemap · Get sitemaps #
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}.
DELETE /webmasters/v3/sites/{siteUrl}/sitemaps/{feedpath} Remove a sitemap from Search Console · Delete sitemaps #
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}.
GET /webmasters/v3/sites/{siteUrl}/sitemaps List the sitemaps submitted for a site · 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}.

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"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

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. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. 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
  version: v1
  description: Generated from Google's published Discovery document for Google Search Console API (searchconsole v1, revision 20261110). 4 operation(s).
  contact:
    name: Google
    url: https://developers.google.com/
  termsOfService: https://developers.google.com/terms
servers:
- url: https://searchconsole.googleapis.com
tags:
- name: Sitemaps
paths:
  /webmasters/v3/sites/{siteUrl}/sitemaps/{feedpath}:
    put:
      operationId: webmasters.sitemaps.submit
      summary: Submit sitemaps
      description: Submits a sitemap for a site.
      parameters:
      - name: siteUrl
        in: path
        required: true
        description: 'The site''s URL, including protocol. For example: `http://www.example.com/`.'
        schema:
          type: string
      - name: feedpath
        in: path
        required: true
        description: 'The URL of the actual sitemap. For example: `http://www.example.com/sitemap.xml`.'
        schema:
          type: string
      responses:
        '200':
          description: Successful response
        4XX:
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GoogleRpcError'
          description: 'Client error (google.rpc.Status: INVALID_ARGUMENT, PERMISSION_DENIED, NOT_FOUND ...)'
        default:
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GoogleRpcError'
          description: Error response (google.rpc.Status)
      security:
      - oauth2:
        - https://www.googleapis.com/auth/webmasters
      - apiKey: []
      tags:
      - Sitemaps
    get:
      operationId: webmasters.sitemaps.get
      summary: Get sitemaps
      description: Retrieves information about a specific sitemap.
      parameters:
      - name: siteUrl
        in: path
        required: true
        description: 'The site''s URL, including protocol. For example: `http://www.example.com/`.'
        schema:
          type: string
      - name: feedpath
        in: path
        required: true
        description: 'The URL of the actual sitemap. For example: `http://www.example.com/sitemap.xml`.'
        schema:
          type: string
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WmxSitemap'
        4XX:
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GoogleRpcError'
          description: 'Client error (google.rpc.Status: INVALID_ARGUMENT, PERMISSION_DENIED, NOT_FOUND ...)'
        default:
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GoogleRpcError'
          description: Error response (google.rpc.Status)
      security:
      - oauth2:
        - https://www.googleapis.com/auth/webmasters
        - https://www.googleapis.com/auth/webmasters.readonly
      - apiKey: []
      tags:
      - Sitemaps
    delete:
      operationId: webmasters.sitemaps.delete
      summary: Delete sitemaps
      description: Deletes a sitemap from the Sitemaps report. Does not stop Google from crawling this sitemap or the URLs that were previously crawled in the deleted sitemap.
      parameters:
      - name: siteUrl
        in: path
        required: true
        description: 'The site''s URL, including protocol. For example: `http://www.example.com/`.'
        schema:
          type: string
      - name: feedpath
        in: path
        required: true
        description: 'The URL of the actual sitemap. For example: `http://www.example.com/sitemap.xml`.'
        schema:
          type: string
      responses:
        '200':
          description: Successful response
        4XX:
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GoogleRpcError'
          description: 'Client error (google.rpc.Status: INVALID_ARGUMENT, PERMISSION_DENIED, NOT_FOUND ...)'
        default:
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GoogleRpcError'
          description: Error response (google.rpc.Status)
      security:
      - oauth2:
        - https://www.googleapis.com/auth/webmasters
      - apiKey: []
      tags:
      - Sitemaps
  /webmasters/v3/sites/{siteUrl}/sitemaps:
    get:
      operationId: webmasters.sitemaps.list
      summary: List sitemaps
      description: Lists the sitemaps-entries submitted for this site, or included in the sitemap index file (if `sitemapIndex` is specified in the request).
      parameters:
      - name: siteUrl
        in: path
        required: true
        description: 'The site''s URL, including protocol. For example: `http://www.example.com/`.'
        schema:
          type: string
      - name: sitemapIndex
        in: query
        required: false
        description: ' A URL of a site''s sitemap index. For example: `http://www.example.com/sitemapindex.xml`.'
        schema:
          type: string
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SitemapsListResponse'
        4XX:
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GoogleRpcError'
          description: 'Client error (google.rpc.Status: INVALID_ARGUMENT, PERMISSION_DENIED, NOT_FOUND ...)'
        default:
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GoogleRpcError'
          description: Error response (google.rpc.Status)
      security:
      - oauth2:
        - https://www.googleapis.com/auth/webmasters
        - https://www.googleapis.com/auth/webmasters.readonly
      - apiKey: []
      tags:
      - Sitemaps
components:
  schemas:
    WmxSitemap:
      type: object
      properties:
        type:
          enum:
          - NOT_SITEMAP
          - URL_LIST
          - SITEMAP
          - RSS_FEED
          - ATOM_FEED
          - PATTERN_SITEMAP
          - OCEANFRONT
          type: string
          description: 'The type of the sitemap. For example: `rssFeed`.'
        contents:
          description: The various content types in the sitemap.
          type: array
          items:
            $ref: '#/components/schemas/WmxSitemapContent'
        lastSubmitted:
          format: google-datetime
          type: string
          description: Date & time in which this sitemap was submitted. Date format is in RFC 3339 format (yyyy-mm-dd).
        isSitemapsIndex:
          type: boolean
          description: If true, the sitemap is a collection of sitemaps.
        path:
          type: string
          description: The url of the sitemap.
        lastDownloaded:
          type: string
          description: Date & time in which this sitemap was last downloaded. Date format is in RFC 3339 format (yyyy-mm-dd).
          format: google-datetime
        isPending:
          type: boolean
          description: If true, the sitemap has not been processed.
        warnings:
          format: int64
          description: Number of warnings for the sitemap. These are generally non-critical issues with URLs in the sitemaps.
          type: string
        errors:
          description: Number of errors in the sitemap. These are issues with the sitemap itself that need to be fixed before it can be processed correctly.
          format: int64
          type: string
      description: Contains detailed information about a specific URL submitted as a [sitemap](https://support.google.com/webmasters/answer/156184).
    SitemapsListResponse:
      description: List of sitemaps.
      type: object
      properties:
        sitemap:
          description: Contains detailed information about a specific URL submitted as a [sitemap](https://support.google.com/webmasters/answer/156184).
          type: array
          items:
            $ref: '#/components/schemas/WmxSitemap'
    WmxSitemapContent:
      description: Information about the various content types in the sitemap.
      type: object
      properties:
        submitted:
          type: string
          description: The number of URLs in the sitemap (of the content type).
          format: int64
        indexed:
          format: int64
          type: string
          description: '*Deprecated; do not use.*'
          deprecated: true
        type:
          enum:
          - WEB
          - IMAGE
          - VIDEO
          - NEWS
          - MOBILE
          - ANDROID_APP
          - PATTERN
          - IOS_APP
          - DATA_FEED_ELEMENT
          description: 'The specific type of content in this sitemap. For example: `web`.'
          type: string
    GoogleRpcError:
      type: object
      description: The error envelope every Google API returns.
      properties:
        error:
          type: object
          properties:
            code:
              type: integer
            message:
              type: string
            status:
              type: string
            details:
              type: array
              items:
                type: object
  securitySchemes:
    apiKey:
      type: apiKey
      in: query
      name: key
      description: API key; accepted by methods that do not need user data.
    oauth2:
      type: oauth2
      flows:
        authorizationCode:
          authorizationUrl: https://accounts.google.com/o/oauth2/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:
  url: https://developers.google.com/webmaster-tools/about
x-provenance:
  method: harvested
  publisher: Google
  source: https://searchconsole.googleapis.com/$discovery/rest?version=v1
  note: converted by discovery-to-openapi.py from Google's Discovery document (revision 20261110)