AY Rank Sitemaps API
Validate an XML sitemap or sitemap index and check the status of a sample of its URLs.
Validate an XML sitemap or sitemap index and check the status of a sample of its URLs.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
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.curl "https://apis.io/api/v1/apis/ayrank-com:ayrank-com-sitemaps-api"
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.
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: 3.2.0
info:
title: AY Rank Free Tools Sitemaps API
version: 1.0.0
summary: Free JSON API for AY Rank SEO and GEO tools.
description: 'Public JSON versions of the free tools at https://www.ayrank.com/tools. Every endpoint takes GET with query parameters or POST with a JSON body (max 32768 bytes). Free, no key. Rate limit: 30 requests per 60 seconds per IP, shared across all /api/v1 tools. Each success response includes a poweredBy link back to the tool page.'
termsOfService: https://www.ayrank.com/terms
contact:
name: AY Rank
url: https://www.ayrank.com
servers:
- url: https://www.ayrank.com
tags:
- name: Sitemaps
description: Validate an XML sitemap or sitemap index and check the status of a sample of its URLs.
paths:
/api/v1/sitemap-validator:
get:
tags:
- Sitemaps
summary: Validate an XML sitemap
description: 'Reads a sitemap URL, or for a site root the Sitemap lines in its robots.txt (else /sitemap.xml), and checks it against the sitemaps.org protocol and Google''s sitemap rules: urlset or sitemapindex root in the 0.9 namespace, loc present, absolute, under 2,048 characters and on the sitemap''s host and folder, entity escaping, UTF-8, 50,000 entries and 50 MB uncompressed, lastmod in W3C Datetime and not in the future, changefreq and priority values. For an index it reads up to 10 child sitemaps with the same checks. It then sends HEAD (GET with a small range when HEAD fails) to up to 20 URLs picked evenly across the file, following up to 5 redirects. Caps: 10 MB read per file (gzip unpacked up to the same cap), 6 s per request, 20 s per call, 4 requests at a time. Public http(s) URLs on ports 80 and 443 only; a blocked or invalid URL returns 400. A sitemap that answers 4xx or 5xx returns 200 with sitemap.status set and sitemap.report null. Free, no key. Rate limit: 30 requests per 60 seconds per IP, shared across all /api/v1 tools.'
externalDocs:
description: Use the tool in a browser
url: https://www.ayrank.com/tools/sitemap-validator
operationId: sitemapValidatorGet
parameters:
- name: url
in: query
required: true
description: A sitemap URL like https://example.com/sitemap.xml, or a site root like https://example.com.
schema:
type: string
responses:
'200':
description: Result
headers:
X-RateLimit-Limit:
$ref: '#/components/headers/X-RateLimit-Limit'
X-RateLimit-Remaining:
$ref: '#/components/headers/X-RateLimit-Remaining'
X-RateLimit-Reset:
$ref: '#/components/headers/X-RateLimit-Reset'
content:
application/json:
schema:
$ref: '#/components/schemas/SitemapValidatorResponse'
'400':
$ref: '#/components/responses/BadRequest'
'429':
$ref: '#/components/responses/RateLimited'
post:
tags:
- Sitemaps
summary: Validate an XML sitemap
description: 'Reads a sitemap URL, or for a site root the Sitemap lines in its robots.txt (else /sitemap.xml), and checks it against the sitemaps.org protocol and Google''s sitemap rules: urlset or sitemapindex root in the 0.9 namespace, loc present, absolute, under 2,048 characters and on the sitemap''s host and folder, entity escaping, UTF-8, 50,000 entries and 50 MB uncompressed, lastmod in W3C Datetime and not in the future, changefreq and priority values. For an index it reads up to 10 child sitemaps with the same checks. It then sends HEAD (GET with a small range when HEAD fails) to up to 20 URLs picked evenly across the file, following up to 5 redirects. Caps: 10 MB read per file (gzip unpacked up to the same cap), 6 s per request, 20 s per call, 4 requests at a time. Public http(s) URLs on ports 80 and 443 only; a blocked or invalid URL returns 400. A sitemap that answers 4xx or 5xx returns 200 with sitemap.status set and sitemap.report null. Free, no key. Rate limit: 30 requests per 60 seconds per IP, shared across all /api/v1 tools.'
externalDocs:
description: Use the tool in a browser
url: https://www.ayrank.com/tools/sitemap-validator
operationId: sitemapValidatorPost
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/SitemapValidatorRequest'
responses:
'200':
description: Result
headers:
X-RateLimit-Limit:
$ref: '#/components/headers/X-RateLimit-Limit'
X-RateLimit-Remaining:
$ref: '#/components/headers/X-RateLimit-Remaining'
X-RateLimit-Reset:
$ref: '#/components/headers/X-RateLimit-Reset'
content:
application/json:
schema:
$ref: '#/components/schemas/SitemapValidatorResponse'
'400':
$ref: '#/components/responses/BadRequest'
'429':
$ref: '#/components/responses/RateLimited'
components:
headers:
Retry-After:
description: Seconds to wait before retrying.
schema:
type: integer
X-RateLimit-Reset:
description: Seconds until the window resets.
schema:
type: integer
X-RateLimit-Remaining:
description: Requests left in the current window.
schema:
type: integer
X-RateLimit-Limit:
description: Requests allowed per window.
schema:
type: integer
responses:
BadRequest:
description: 'Invalid input: unknown field, wrong type, missing required field, value too long, or bad JSON.'
headers:
X-RateLimit-Limit:
$ref: '#/components/headers/X-RateLimit-Limit'
X-RateLimit-Remaining:
$ref: '#/components/headers/X-RateLimit-Remaining'
X-RateLimit-Reset:
$ref: '#/components/headers/X-RateLimit-Reset'
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
RateLimited:
description: Rate limit hit. Wait Retry-After seconds.
headers:
X-RateLimit-Limit:
$ref: '#/components/headers/X-RateLimit-Limit'
X-RateLimit-Remaining:
$ref: '#/components/headers/X-RateLimit-Remaining'
X-RateLimit-Reset:
$ref: '#/components/headers/X-RateLimit-Reset'
Retry-After:
$ref: '#/components/headers/Retry-After'
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
schemas:
Error:
type: object
required:
- error
- docs
properties:
error:
type: object
required:
- code
- message
properties:
code:
type: string
enum:
- invalid_input
- rate_limited
message:
type: string
docs:
type: string
format: uri
SitemapValidatorRequest:
type: object
required:
- url
additionalProperties: false
properties:
url:
type: string
maxLength: 2000
description: A sitemap URL, or a site root to find the sitemap through robots.txt.
examples:
- url: https://www.ayrank.com/sitemap.xml
SitemapValidatorResponse:
type: object
required:
- input
- discovery
- sitemap
- children
- childrenListed
- sample
- limits
- checkedAt
- poweredBy
properties:
input:
type: string
discovery:
type: object
description: 'mode: sitemap (the URL was read as a sitemap), robots (found in robots.txt) or default (robots.txt had no Sitemap line, so /sitemap.xml). Also robotsUrl, robotsStatus and declared (the Sitemap lines found).'
sitemap:
type: object
description: 'url, finalUrl, status (null when there was no answer), redirects, error (blocked, timeout, network, too-many-redirects or null), contentType, gzip and report. report is null unless the file answered 2xx: { kind (urlset, sitemapindex or null), namespace, bytes, entries, lastmod { present, invalid, future }, extensions, issues, errors, warnings }. Each issue is { code, severity (error, warning or info), count, line, samples }. Codes: not-xml, xml-syntax, not-utf8, gzip-error, unknown-root, bad-namespace, bad-entity, unexpected-element, missing-loc, relative-loc, invalid-loc, long-loc, other-host, invalid-lastmod, too-many-entries, too-large, empty, nested-index, doctype, outside-path, future-lastmod, duplicate-loc, invalid-changefreq, invalid-priority, leading-whitespace, truncated, ignored-tags, same-lastmod.'
children:
type: array
description: 'For a sitemap index: the child sitemaps read, same shape as sitemap. error is skipped when the time budget ran out.'
items:
type: object
childrenListed:
type: integer
description: Child sitemaps the index lists.
sample:
type:
- array
- 'null'
description: 'URL status checks, or null when there were no URLs: { url, status (first answer), method (HEAD or GET), outcome (ok, redirect, client-error, server-error, other, rate-limited (429, not counted against the sitemap), blocked, timeout, error or skipped), redirects, finalUrl, finalStatus }. Only a plain 200 is ok.'
items:
type: object
limits:
type: object
description: The caps used for this call.
checkedAt:
type: string
format: date-time
poweredBy:
$ref: '#/components/schemas/PoweredBy'
PoweredBy:
type: object
required:
- text
- url
properties:
text:
type: string
const: Powered by AY Rank
url:
type: string
format: uri