API and agent · Essential
OpenAPI definition
An OpenAPI document describes an HTTP API so a client can call it without guessing.
- Scored check
- Web standards
- Essential
- Adopted standard
Standard status Adopted. A ratified standard with real deployment. Standard: OpenAPI 3.x.
- Kind
- Scored check
- Part of the score
- Web standards: 70% of the score. A check in it can hold a level.
- Module
- Sites with an API or agent surface
- Who reads it today
- API clients and code generators.
- Effect on Google Search
- None. No Google Search documentation says Google reads it.
| Property | Value |
|---|---|
| Check id | openapi |
| Dimension | API and agent |
| Part | Web standards |
| Tier | Essential. Counts 3 times its weight. |
| Weight | 3 |
| Maturity | Adopted. A ratified standard with real deployment. |
| Publishing skill | openapi |
| Standards | OpenAPI 3.x |
Sources
- OpenAPI 3.1, OpenAPI Initiative
- RFC 8631, IETF
What the scanner requests
-
/openapi.json -
/.well-known/openapi.json -
/openapi.yaml -
/api/openapi.json -
/swagger.json
What is measured
The scanner reads the OpenAPI document the site advertises and the 5 standard paths: /openapi.json, /openapi.yaml, /.well-known/openapi.json, /api/openapi.json, and /swagger.json. Advertised pointers come first: a service-desc link in the API catalog at /.well-known/api-catalog, in a Link response header, or in the homepage HTML, and homepage anchors whose URL or text names an API reference. A document found at a standard path counts as much as an advertised one. It passes when the first candidate that answers 2xx, is not HTML and parses as OpenAPI 3.x carries an openapi version string, info.title, info.version, and a non-empty paths object. It partially passes when such a document omits info.title or info.version, or when its paths object is empty. It fails when no candidate the scan requested serves an OpenAPI 3.x document, and the failure is a defect when an advertised pointer answers an error, an OpenAPI document served as HTML, or a document that is not OpenAPI 3.x. An advertised pointer that answers with a page, an HTML page, a markdown page or a copy of the homepage, is the site's catch-all: no document is served there, which is no defect. An advertised pointer the scan did not request, or that did not answer, is named and never counted as broken. It is not measured when the scan requested no candidate, or when no candidate serves a document and one answered 406, which refuses the scan's Accept header. The scan also requests a sample of the GET operations the document describes, up to a published cap, and reports what they answered; that never changes the result. It is asked only of a site where the scan saw an HTTP API.
Reproduce it yourself
You do not have to take our word for any of this. Run the same measurement against your own domain:
ORIGIN=https://example.com
for p in /openapi.json /.well-known/openapi.json /api/openapi.json /swagger.json; do printf '%s -> ' "$p"; curl -sSL -A 'AgenticWebScore/0.3 (+https://agenticwebscore.com/bot)' -H 'Accept-Language: en' -H 'Accept: application/json, application/linkset+json;q=0.9, */*;q=0.5' "$ORIGIN$p" | jq -c '{openapi, title: .info.title, version: .info.version, paths: (.paths | length)}' 2>/dev/null || echo "no JSON OpenAPI document"; done
printf '/openapi.yaml -> '; curl -sSL -A 'AgenticWebScore/0.3 (+https://agenticwebscore.com/bot)' -H 'Accept-Language: en' -H 'Accept: application/yaml, application/x-yaml;q=0.9, text/yaml;q=0.9, */*;q=0.5' "$ORIGIN/openapi.yaml" | grep -m1 -E '^(openapi|swagger):' || echo "no YAML OpenAPI document"
Run it on your own site with the OpenAPI checker. Its report opens on this check.
The fix
This is an example written for example.com. Where the scan can build the fix from your own site, the report shows that version instead.
{
"openapi": "3.1.0",
"info": {
"title": "Example API",
"version": "1.0.0"
},
"servers": [
{
"url": "https://example.com"
}
],
"paths": {
"/status": {
"get": {
"operationId": "getStatus",
"summary": "Read the service status",
"responses": {
"200": {
"description": "The current status"
}
}
}
}
}
}
Standards referenced
-
OpenAPI 3.x
Related checks
| Check | Kind | Maturity | Same skill |
|---|---|---|---|
mcp-card — MCP server card | Unscored check | Draft | — |
mcp-server — MCP server answers and lists its tools | Scored check | Adopted | — |
oauth-discovery — OAuth discovery documents | Scored check | Adopted | — |
api-catalog — API catalog | Scored check | Adopted | — |
agent-skills — Agent Skills declaration | Unscored check | Draft | — |
a2a-card — A2A agent card | Unscored check | Draft | — |
a2a-signed — Cryptographically signed agent card | Unscored check | Draft | — |
auth-md — /auth.md agent authentication guide | Unscored check | Draft | — |