Page Performance
Google PageSpeed Insights scores and Core Web Vitals for any public URL, on a mobile or desktop profile.
https://api.rankparse.com/v1/page-performance3 credits (charged only on success)API keyRuns 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
urlstringrequiredFull 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 mobilemobile or desktop. Any other value is treated as mobile without an error.
Response
urlstringThe URL you sent.
dataobjectThe PageSpeed result.
Show propertiesHide properties
urlstringThe URL that was measured.
performance_scoreinteger | nullLighthouse performance category score, 0 to 100. null when Google did not return the category.
accessibility_scoreinteger | nullLighthouse accessibility score, 0 to 100. null when Google did not return the category.
seo_scoreinteger | nullLighthouse SEO score, 0 to 100. null when Google did not return the category.
core_web_vitalsobjectLab 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_databooleantrue when Google holds real-user (Chrome UX Report) field data for the URL. See Lab and field data.
field_dataobject | nullReal-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 propertiesHide properties
scopestringurl 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 | nullFAST, 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.
strategystringThe profile that was measured: mobile or desktop.
cached_atstringISO 8601 time the PageSpeed result was produced. On a cache hit this is when it was first fetched, up to 24 hours ago.
credits_usedintegerAlways 3 on success.
credits_remainingintegerYour 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
urlstring plusstrategy, 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) andpsi_unavailablenever 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
| Cap | Limit | Scope | Resets |
|---|---|---|---|
| Per person | 50 calls per day | The 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-wide | 25,000 uncached PageSpeed runs per day | All 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
| HTTP | Code | When |
|---|---|---|
| 400 | invalid_url | Missing, malformed or non-http(s) URL; credentials, whitespace or a fragment in the URL. |
| 400 | private_ip | Host is private, reserved or local. |
| 401 | invalid_api_key | Missing, invalid or revoked API key. |
| 402 | insufficient_credits | Balance is lower than 3 credits (checked after the PageSpeed run). |
| 402 | spend_cap_reached | Your monthly spend cap is reached. |
| 429 | rate_limited | More than 60 requests in a minute. |
| 429 | user_quota_exceeded | You made 50 page-performance calls today. |
| 429 | quota_exceeded | The service-wide daily PageSpeed quota is used up. Includes retry_after (seconds). |
| 503 | psi_unavailable | Google PageSpeed Insights returned an error or could not be reached. Not charged; retry later. |
See Errors for the shared error format.
Related
MCP tool: get_page_performance (arguments url and optional strategy).