Google

Google PageSpeed Insights API

Audit web performance, Core Web Vitals (FCP, LCP, CLS, TBT, Speed Index, INP), accessibility, SEO, and modern best practices on mobile or desktop devices powered by Google Lighthouse.

POST/v1/google/pagespeed/results🏷️$0.01 / returned URL/device report · Rate limit: 60 req/min
Authorization*string
header

Bearer token ('pd_live_...') generated from Pulldata Developer Settings (e.g. 'Bearer pd_live_...'). The legacy x-api-key header remains supported.

Content-Type*string
header

application/json

Parameters
urlstringoptional
body

One public target URL. Provide url, urls, or both.

max 4096 chars
urlsarray[string]optional
body

Additional public URLs to audit in the same job.

url or urls required · max 50 unique URLs
strategystringoptional
body

Device strategy: 'mobile', 'desktop', or 'both'. Both returns one row for each device.

default 'mobile'
runs_per_urlintegeroptional
body

Number of measurements used for each URL/device report.

1–5 · default 1
aggregationstringoptional
body

Aggregate repeated runs using median, average, best, or worst.

default 'median'
include_individual_runsbooleanoptional
body

Include compact metrics for every individual run.

default false
include_auditsbooleanoptional
body

Include bounded Lighthouse audit and failed-audit arrays.

default true
max_auditsintegeroptional
body

Maximum detailed audit records per report.

1–200 · default 50
include_opportunitiesbooleanoptional
body

Include prioritized optimization opportunities and estimated savings.

default true
max_opportunitiesintegeroptional
body

Maximum optimization opportunities per report.

1–50 · default 20
minimum_savings_msnumberoptional
body

Only return opportunities meeting this estimated time saving.

0–60000 · default 0
concurrencyintegeroptional
body

Maximum URL/device audits processed concurrently.

1–5 · default 2
categoriesarray[string]optional
body

Lighthouse audit categories to evaluate. Options: 'performance', 'accessibility', 'best-practices', 'seo'.

default ['performance', 'accessibility', 'best-practices', 'seo']
localestringoptional
body

Language / locale code for audit recommendations and localized advice (e.g. 'en', 'es', 'fr', 'de').

default 'en'
timeout_msintegeroptional
body

Maximum analysis timeout in milliseconds for running Lighthouse audits.

min 15000 · max 180000 · default 120000
Response Fields18
success
boolean

Indicates whether the PageSpeed audit completed successfully.

jobId
string

Unique identifier for the audit job.

status
string

Execution status ('DONE', 'RUNNING', 'FAILED').

completed
boolean

Whether the audit run is complete.

walletDeductedUSD
number

USD deducted for returned URL/device reports; repeated measurements do not add rows.

total
integer

Number of URL/device reports returned.

report
object | null

First report, retained for single-URL backwards compatibility.

reports
array[object]

All URL/device reports.

reports[].source_url
string

Target URL analyzed.

reports[].strategy
string

Mobile or desktop device strategy.

reports[].performance_score
number

Aggregated Lighthouse performance score from 0 to 100.

reports[].lab_lcp_ms
number

Aggregated lab LCP in milliseconds.

reports[].run_variability
object

Minimum, maximum, and spread across repeated runs.

reports[].audit_details
array[object]

Bounded Lighthouse audit details.

reports[].failed_audits
array[object]

Audits scoring below 0.9.

reports[].opportunities
array[object]

Prioritized optimization opportunities with estimated time and byte savings.

pollUrl
string

Polling endpoint URL if the job is handled asynchronously.

error
string | null

Error message if the audit failed, otherwise null.

curl -X POST "https://pdb-dev.pulldata.io/v1/google/pagespeed/results" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "url": "https://example.com",
    "strategy": "mobile",
    "categories": ["performance", "accessibility", "best-practices", "seo"],
    "locale": "en",
    "timeout_ms": 120000
  }'
Responses
PageSpeed Insights performance audit report
{
  "success": true,
  "jobId": "job_psi_3b2a1c0e",
  "status": "DONE",
  "completed": true,
  "walletDeductedUSD": 0.01,
  "total": 1,
  "report": {
    "source_url": "https://example.com",
    "strategy": "mobile",
    "performance_score": 96,
    "accessibility_score": 100,
    "best_practices_score": 100,
    "seo_score": 92,
    "lab_fcp_ms": 850,
    "lab_lcp_ms": 1200,
    "lab_tbt_ms": 40,
    "lab_cls": 0.005,
    "run_count": 1,
    "aggregation": "median",
    "failed_audits_count": 2,
    "opportunities_count": 1,
    "estimated_savings_ms": 350,
    "failed_audits": [],
    "opportunities": []
  },
  "reports": [{ "source_url": "https://example.com", "strategy": "mobile", "performance_score": 96 }],
  "pollUrl": "/v1/google/pagespeed/results/job_psi_3b2a1c0e",
  "error": null
}