Page SEO
Real-time SEO audit of any public URL, covering title, meta, canonical, Open Graph, hreflang, headings, images and links.
https://api.rankparse.com/v1/page-seo3 credits (refunded on failure)API keyFetches a public URL at request time and returns a structured on-page SEO audit: title and description lengths, canonical, robots directives, language, social tags, headings, images and link counts. This is a live fetch, not link graph data, so it reflects the page as it is right now.
Query parameters
urlstringrequiredFull http:// or https:// URL of the page to analyze. Must be public and must not contain a fragment (#). See URL rules. A missing or invalid value returns 400 invalid_url before any charge.
Response
urlstringThe URL you sent.
dataobjectThe audit.
Show propertiesHide properties
urlstringThe URL you sent.
final_urlstringThe URL after following redirects. Everything else in data describes this page, not the one you asked for, so check redirect.different_page before trusting it.
redirectobjectWhat happened between the URL you sent and final_url.
Show propertiesHide properties
redirectedbooleantrue when at least one redirect was followed.
chainarrayThe URL you sent, each intermediate URL, then final_url, each as { url, status } with the status that URL answered (301, 302, ... and the final status last). Empty when there was no redirect.
different_pagebooleantrue when the destination is a different page, not just http to https, a www prefix, a trailing slash or letter case. A tool page that redirects to the site's /tools index is the typical case.
warningstring | nullA plain sentence when different_page is true, otherwise null.
status_codeintegerHTTP status the target returned. The API still answers 200 and bills you when the target returns 404 or 500, so check this field.
response_time_msintegerTime taken to fetch the page, including redirects.
titleobjecttext (string or null, whitespace collapsed), length (characters) and optimal (true when the length is 30 to 60).
descriptionobjectMeta description: text (string or null), length and optimal (true when the length is 120 to 160).
canonicalobjecturl of the canonical link (or null), and self_referential: true when it equals final_url or the URL you sent exactly, null when there is no canonical.
robotsobjectFrom the robots meta tag: index and follow (both true unless noindex or nofollow appears) and the lowercased raw value (null when there is no tag). The X-Robots-Tag header is not read.
viewportstring | nullContent of the viewport meta tag.
languageobjectprimary (for example en), the full tag (for example en-US) and source: html_lang, content_language_header or meta_http_equiv, checked in that order. All null when none is found.
hreflangarray{ lang, url } for each rel="alternate" link that carries an hreflang.
headingsobjecth1 (all H1 texts), h2 (the first 10 H2 texts) and h3_count (number of H3 elements).
ogobjectOpen Graph tags keyed by the name after og:, with colon-separated parts camel-cased (og:image:width becomes imageWidth). Empty object when there are none.
twitterobjectTwitter card tags keyed by the name after twitter:. Empty object when there are none.
json_ldarrayParsed JSON-LD objects found on the page. A block holding an array adds each item. Malformed blocks are skipped silently. For flattened @graph entities and per-block diagnostics, use Schema Markup.
imagesobjecttotal image tags and missing_alt (images with a missing or empty alt).
linksobjectinternal and external anchor counts. Absolute links are split by whether their host matches the final URL's host; every other href (relative paths, but also mailto: and tel: links) counts as internal, and links starting with # are not counted.
word_countintegerWords of visible text after removing scripts, styles and tags: the whole page, navigation and footer included.
main_content_word_countintegerWords in the page's own content: the <main> element, else the <article> elements, else the body with <header>, <nav>, <footer>, <aside> and <form> taken out. An estimate from the markup, good for telling a long guide from a short tool page in site chrome.
main_content_sourcestringWhere main_content_word_count came from: main, article or body_minus_boilerplate.
boilerplate_word_countintegerword_count minus main_content_word_count.
faviconstring | nullAbsolute URL of the declared icon, or /favicon.ico on the final host when none is declared. Whether the file exists is not checked.
credits_usedintegerAlways 3 on success.
credits_remainingintegerYour balance after the charge.
Behavior and limits
URL rules
- Only
httpandhttpsare accepted. No credentials in the URL, no leading or trailing whitespace, and no fragment: any#in the URL is rejected withinvalid_url. - Hosts must be public.
localhost,*.localhost,*.local,*.internal,*.home.arpa, private and reserved IPv4 or IPv6 ranges, and hosts without a dot are rejected withprivate_ip. Every redirect hop is checked again, so a public URL cannot redirect into a private address. - Up to 5 redirects are followed. A sixth, or a redirect without a
Locationheader, fails withfetch_failed.
Fetch limits
- The timeout is 8 seconds for the whole fetch, redirects included.
- The response body may be at most 2 MB. A larger page (by
Content-Lengthor by the bytes read) fails withresponse_too_large. - The request is sent with the user agent
Mozilla/5.0 (compatible; RankParse/1.0; +https://rankparse.com). Sites that block unknown bots may return an error page, and the audit then describes that page. - Pages are parsed from the raw HTML the server returns. Content rendered by client-side JavaScript is not seen.
Billing
- Credits: 3 per call. If the call fails after the charge (any non-2xx response, such as
503 fetch_failed), the 3 credits are refunded. A missing, malformed or private URL is rejected before billing. - No caching: every call fetches the page again.
- Rate limit: 60 requests per minute per key. See Rate limiting.
Legacy route
GET /v1/page-meta redirects (301) to /v1/page-seo, forwarding only the url parameter.
Errors
| HTTP | Code | When |
|---|---|---|
| 400 | invalid_url | Missing, malformed or non-http(s) URL; credentials, whitespace or a fragment in the URL. |
| 400 | private_ip | The host, or a redirect target, is private, reserved or local. |
| 400 | response_too_large | The page body exceeded 2 MB. Refunded. |
| 401 | invalid_api_key | Missing, invalid or revoked API key. |
| 402 | insufficient_credits | Balance is lower than 3 credits. |
| 402 | spend_cap_reached | Your monthly spend cap is reached. |
| 429 | rate_limited | More than 60 requests in a minute. |
| 503 | fetch_failed | The target was unreachable, refused the connection or redirected too many times. Refunded. |
| 503 | timeout | The target did not respond within 8 seconds. Refunded. |
Fetch error bodies carry the fetch message in error, for example { "error": "Request timed out", "code": "timeout" }. See Errors for the shared format.
Related
MCP tool: get_page_seo (argument url).