Skip to Content

Page SEO

Real-time SEO audit of any public URL, covering title, meta, canonical, Open Graph, hreflang, headings, images and links.

GEThttps://api.rankparse.com/v1/page-seo3 credits (refunded on failure)API key

Fetches 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

urlstringrequired

Full 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

urlstring

The URL you sent.

dataobject

The audit.

Show properties
urlstring

The URL you sent.

final_urlstring

The 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.

redirectobject

What happened between the URL you sent and final_url.

Show properties
redirectedboolean

true when at least one redirect was followed.

chainarray

The 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_pageboolean

true 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 | null

A plain sentence when different_page is true, otherwise null.

status_codeinteger

HTTP 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_msinteger

Time taken to fetch the page, including redirects.

titleobject

text (string or null, whitespace collapsed), length (characters) and optimal (true when the length is 30 to 60).

descriptionobject

Meta description: text (string or null), length and optimal (true when the length is 120 to 160).

canonicalobject

url 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.

robotsobject

From 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 | null

Content of the viewport meta tag.

languageobject

primary (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.

headingsobject

h1 (all H1 texts), h2 (the first 10 H2 texts) and h3_count (number of H3 elements).

ogobject

Open 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.

twitterobject

Twitter card tags keyed by the name after twitter:. Empty object when there are none.

json_ldarray

Parsed 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.

imagesobject

total image tags and missing_alt (images with a missing or empty alt).

linksobject

internal 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_countinteger

Words of visible text after removing scripts, styles and tags: the whole page, navigation and footer included.

main_content_word_countinteger

Words 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_sourcestring

Where main_content_word_count came from: main, article or body_minus_boilerplate.

boilerplate_word_countinteger

word_count minus main_content_word_count.

faviconstring | null

Absolute URL of the declared icon, or /favicon.ico on the final host when none is declared. Whether the file exists is not checked.

credits_usedinteger

Always 3 on success.

credits_remaininginteger

Your balance after the charge.

Behavior and limits

URL rules

  • Only http and https are accepted. No credentials in the URL, no leading or trailing whitespace, and no fragment: any # in the URL is rejected with invalid_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 with private_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 Location header, fails with fetch_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-Length or by the bytes read) fails with response_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

HTTPCodeWhen
400invalid_urlMissing, malformed or non-http(s) URL; credentials, whitespace or a fragment in the URL.
400private_ipThe host, or a redirect target, is private, reserved or local.
400response_too_largeThe page body exceeded 2 MB. Refunded.
401invalid_api_keyMissing, invalid or revoked API key.
402insufficient_creditsBalance is lower than 3 credits.
402spend_cap_reachedYour monthly spend cap is reached.
429rate_limitedMore than 60 requests in a minute.
503fetch_failedThe target was unreachable, refused the connection or redirected too many times. Refunded.
503timeoutThe 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.

MCP tool: get_page_seo (argument url).