API · On-page SEO
GET /onpage/page
On-page SEO audit of one URL: tags, headings, links, schema, checks, score.
| Request | GET /v1/onpage/page |
| Operation id | onpage.page.get |
| Cost | 1 credit, refunded if the call fails |
| Auth | API key: Authorization: Bearer <key> or x-api-key. |
On-page SEO audit of one URL: tags, headings, links, schema, checks, score.
Query parameters
| Name | Type | Required | Description |
|---|---|---|---|
url | string | yes | Example: https://www.python.org/. |
enable_javascript | "true" | "false" | no | One of true, false. |
Responses
| Status | Meaning | Schema |
|---|---|---|
200 | The audit. | OnPageAudit |
400 | Invalid input. Nothing was charged. | Error |
401 | Missing or invalid API key. | Error |
402 | Not enough credits, a spend cap was reached, or payment is required. | Error |
403 | The target is private, or the account is suspended. | Error |
404 | That URL does not resolve or is not an HTML page. | Error |
429 | Too many requests. Wait for Retry-After seconds. | Error |
503 | On-page SEO is temporarily unavailable. Retryable; nothing was charged. | Error |
OnPageAudit fields
| Field | Type | Description |
|---|---|---|
url | string | |
final_url | string | |
status_code | integer | |
content_type | string | |
fetch_time_ms | integer | |
page_size_bytes | integer | |
title | string | null | |
title_length | integer | |
meta_description | string | null | |
meta_description_length | integer | |
canonical | string | null | |
is_canonical_self | boolean | null | |
meta_robots | string | null | |
is_indexable | boolean | |
language | string | null | |
has_viewport | boolean | |
charset | string | null | |
headings | object | |
word_count | integer | |
links | object | |
images | object | |
hreflang | object[] | |
structured_data_types | string[] | |
open_graph | object | |
twitter_card | object | |
checks | object[] | |
score | integer | Share of checks passed, 0-100. |
Errors use one shape everywhere; see Errors for every code and what to do.