AY Rank Image alt text API
The Image alt text API from AY Rank, for image alt text.
The Image alt text API from AY Rank, for image alt text.
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-image-alt-text-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 Image alt text 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: Image alt text
paths:
/api/v1/alt-text-checker:
get:
tags:
- Image alt text
summary: List the images on a page with their alt text
description: 'Reads one page and lists its images in page order (at most 500): img, input type=image, area with href, and inline svg with role="img" (other inline svg is counted, not checked). Each image has a resolved src (src, else data-src, data-lazy-src, data-original or the first srcset candidate), its alt text and a state: missing (no alt attribute), empty (alt="", decorative), present, or hidden (aria-hidden="true" on it or a parent, or role presentation or none). Flags: missing-alt (error; WHATWG: the alt attribute must be specified), link-no-name (error; the image is the only content of a link or button and nothing gives the link a name), file-name-alt (warning; WHATWG says not to use the image''s file name as alt), repeats-text (note; alt equals the link text, figure caption or parent text), image-of (note; alt starts with words like "image of", English only), empty-alt (note; fine when the image is decorative). Counts per state, no score. The quality of alt text is not judged. Images are not downloaded. Caps: 2 MB read, 6 s per request, 20 s per call, 5 redirects. JavaScript is not run. Public http(s) URLs on ports 80 and 443 only; a blocked or invalid URL returns 400. A page that answers 4xx or 5xx returns 200 with status set and 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/alt-text-checker
operationId: altTextCheckerGet
parameters:
- name: url
in: query
required: true
description: The page to check, like https://example.com/page.
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/AltTextResponse'
'400':
$ref: '#/components/responses/BadRequest'
'429':
$ref: '#/components/responses/RateLimited'
post:
tags:
- Image alt text
summary: List the images on a page with their alt text
description: 'Reads one page and lists its images in page order (at most 500): img, input type=image, area with href, and inline svg with role="img" (other inline svg is counted, not checked). Each image has a resolved src (src, else data-src, data-lazy-src, data-original or the first srcset candidate), its alt text and a state: missing (no alt attribute), empty (alt="", decorative), present, or hidden (aria-hidden="true" on it or a parent, or role presentation or none). Flags: missing-alt (error; WHATWG: the alt attribute must be specified), link-no-name (error; the image is the only content of a link or button and nothing gives the link a name), file-name-alt (warning; WHATWG says not to use the image''s file name as alt), repeats-text (note; alt equals the link text, figure caption or parent text), image-of (note; alt starts with words like "image of", English only), empty-alt (note; fine when the image is decorative). Counts per state, no score. The quality of alt text is not judged. Images are not downloaded. Caps: 2 MB read, 6 s per request, 20 s per call, 5 redirects. JavaScript is not run. Public http(s) URLs on ports 80 and 443 only; a blocked or invalid URL returns 400. A page that answers 4xx or 5xx returns 200 with status set and 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/alt-text-checker
operationId: altTextCheckerPost
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/AltTextRequest'
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/AltTextResponse'
'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
schemas:
AltTextRequest:
type: object
required:
- url
additionalProperties: false
properties:
url:
type: string
maxLength: 2000
description: The page to check.
examples:
- url: https://www.w3.org/WAI/tutorials/images/
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
AltTextResponse:
type: object
required:
- input
- finalUrl
- status
- redirects
- error
- report
- limits
- checkedAt
- poweredBy
properties:
input:
type: string
finalUrl:
type: string
description: URL that answered after redirects. Image addresses are resolved against it (or its base href).
status:
type:
- integer
- 'null'
redirects:
type: integer
error:
type:
- string
- 'null'
description: timeout, network, too-many-redirects, not-html or null.
contentType:
type: string
truncated:
type: boolean
description: The page was larger than the read cap.
report:
type:
- object
- 'null'
description: 'Null unless the page answered 2xx with HTML. { images, total, counts { missing, empty, present, hidden }, issues, svgSkipped, title }. Each image is { index, kind (img, input, area or svg), src, alt (null when missing), state (missing, empty, present or hidden), inLink, flags, severity (error, warning, note or null) }. Flag codes: missing-alt, link-no-name, file-name-alt, repeats-text, image-of, empty-alt. Each issue is { code (a flag code or no-images), severity, count, at (image indexes, at most 20) }. There is no score field.'
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
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'