Skip to Content

Page Performance

Google PageSpeed Insights scores and Core Web Vitals for any public URL, on a mobile or desktop profile.

GEThttps://api.rankparse.com/v1/page-performance3 credits (charged only on success)API key

Runs Google PageSpeed Insights (Lighthouse) against a URL and returns the performance, accessibility and SEO category scores plus the Core Web Vitals metrics. Use it to benchmark a page, check a deploy or compare competitors. Results come from Google, are cached for 24 hours, and are limited by daily quotas (see Quotas).

Query parameters

urlstringrequired

Full http:// or https:// URL. Must be public and must not contain a fragment (#). The same URL rules as Page SEO apply. A missing or invalid value returns 400 invalid_url (or private_ip) before any work is done.

strategystringdefault mobile

mobile or desktop. Any other value is treated as mobile without an error.

Response

urlstring

The URL you sent.

dataobject

The PageSpeed result.

Show properties
urlstring

The URL that was measured.

performance_scoreinteger | null

Lighthouse performance category score, 0 to 100. null when Google did not return the category.

accessibility_scoreinteger | null

Lighthouse accessibility score, 0 to 100. null when Google did not return the category.

seo_scoreinteger | null

Lighthouse SEO score, 0 to 100. null when Google did not return the category.

core_web_vitalsobject

Lab metrics from the Lighthouse run, each null when Google did not return it: lcp_ms (Largest Contentful Paint), cls (Cumulative Layout Shift, unitless), inp_ms (Interaction to Next Paint, often null in lab runs), fcp_ms (First Contentful Paint) and ttfb_ms (server response time). Times are in milliseconds.

crux_databoolean

true when Google holds real-user (Chrome UX Report) field data for the URL. See Lab and field data.

field_dataobject | null

Real-user values from the Chrome UX Report, the 75th percentile over the last 28 days. null when Google has none for the URL or its origin.

Show properties
scopestring

url when this page has field data of its own, origin when it has too little traffic and Google answered with the whole site's data.

overallstring | null

FAST, AVERAGE or SLOW.

lcp_msobject | null

{ p75, rating } for Largest Contentful Paint in milliseconds. inp_ms, fcp_ms and ttfb_ms have the same shape, and cls is unitless. A metric Google has no data for is null.

strategystring

The profile that was measured: mobile or desktop.

cached_atstring

ISO 8601 time the PageSpeed result was produced. On a cache hit this is when it was first fetched, up to 24 hours ago.

credits_usedinteger

Always 3 on success.

credits_remaininginteger

Your balance after the charge.

A fresh PageSpeed run can take several seconds because Google loads the page in a real browser. Use a generous client timeout (60 seconds or more).

Behavior and limits

Lab and field data

Scores and the core_web_vitals metrics are lab data: Lighthouse measurements from a single simulated load. They are repeatable for diagnosis but differ from what real visitors experience. field_data holds the matching field data (Chrome UX Report): what real Chrome visitors experienced, at the 75th percentile over 28 days. Judge Core Web Vitals pass or fail on the field values; use the lab values to find out why.

Caching

  • Successful results are cached for 24 hours, keyed by the exact url string plus strategy, and the cache is shared across all RankParse users. A trailing slash or a different query string is a different URL.
  • A cache hit does not use Google's quota, but it is billed and counts toward your daily cap like any other call.

Billing

  • Credits: 3, charged only after a successful result. Quota errors (quota_exceeded, user_quota_exceeded) and psi_unavailable never charge you.
  • Balance check comes last. If your balance is too low you get 402 insufficient_credits, but that attempt has already counted toward your daily cap. Check your balance first with the credits endpoint when you are close to zero.

Quotas

CapLimitScopeResets
Per person50 calls per dayThe person behind the API key, not the workspace or the key. Cache hits, failed PageSpeed runs and calls refused for credits count too.00:00 UTC
Service-wide25,000 uncached PageSpeed runs per dayAll RankParse customers and the free page speed tool together. Cache hits do not count.00:00 UTC

When the service-wide cap is hit, the 429 body includes retry_after: seconds until the next UTC midnight. The standard limit of 60 requests per minute per key also applies. See Rate limiting.

Errors

HTTPCodeWhen
400invalid_urlMissing, malformed or non-http(s) URL; credentials, whitespace or a fragment in the URL.
400private_ipHost is private, reserved or local.
401invalid_api_keyMissing, invalid or revoked API key.
402insufficient_creditsBalance is lower than 3 credits (checked after the PageSpeed run).
402spend_cap_reachedYour monthly spend cap is reached.
429rate_limitedMore than 60 requests in a minute.
429user_quota_exceededYou made 50 page-performance calls today.
429quota_exceededThe service-wide daily PageSpeed quota is used up. Includes retry_after (seconds).
503psi_unavailableGoogle PageSpeed Insights returned an error or could not be reached. Not charged; retry later.

See Errors for the shared error format.

MCP tool: get_page_performance (arguments url and optional strategy).