DataForSEO — On Page / Lighthouse / Live / Json
Retrieve on Page Lighthouse Live Json with the DataForSEO API. The sample response includes URLs. Use it for search visibility research or technical SEO.
- Selected price
- $0.005 / callPublished pricing
- Sellers / implementations
- 1 / 1
- Requests · 30d
- —Loading...
- Success rate · 30d
- —Loading...
| Seller | Pricing | Requests · 30d | Performance | Access |
|---|---|---|---|---|
DataForSEOCurrent DataForSEO — On Page / Lighthouse / Live / Json · POST | $0.005 / call | — | —successP50— |
Run sends a real API request. Charges follow the published API contract.
Response structure
costnumberstatus_codeintegerstatus_messagestringtasksobject[]costnumberdataobjectapistringauditsstring[]categoriesstring[]for_mobilebooleanfunctionstringurlstring
idstringpathstring[]resultobject[]auditsobjectviewportobjectdescriptionstringidstringscoreintegerscoreDisplayModestringtitlestringwarningsunknown[]
categoriesobjectperformanceobjectauditRefsobject[]acronymstringgroupstringidstringrelevantAuditsstring[]weightinteger
idstringscorenumbertitlestring
pwaobjectauditRefsobject[]groupstringidstringweightinteger
descriptionstringidstringmanualDescriptionstringscorenumbertitlestring
seoobjectauditRefsobject[]groupstringidstringweightinteger
descriptionstringidstringmanualDescriptionstringscorenumbertitlestring
categoryGroupsobjecta11y-ariaobjectdescriptionstringtitlestring
a11y-audio-videoobjectdescriptionstringtitlestring
a11y-best-practicesobjectdescriptionstringtitlestring
a11y-color-contrastobjectdescriptionstringtitlestring
a11y-languageobjectdescriptionstringtitlestring
a11y-names-labelsobjectdescriptionstringtitlestring
a11y-navigationobjectdescriptionstringtitlestring
a11y-tables-listsobjectdescriptionstringtitlestring
best-practices-browser-compatobjecttitlestring
best-practices-generalobjecttitlestring
best-practices-trust-safetyobjecttitlestring
best-practices-uxobjecttitlestring
budgetsobjectdescriptionstringtitlestring
diagnosticsobjectdescriptionstringtitlestring
load-opportunitiesobjectdescriptionstringtitlestring
metricsobjecttitlestring
pwa-installableobjecttitlestring
pwa-optimizedobjecttitlestring
seo-contentobjectdescriptionstringtitlestring
seo-crawlobjectdescriptionstringtitlestring
seo-mobileobjectdescriptionstringtitlestring
configSettingsobjectadditionalTraceCategoriesnullauditModebooleanblockedUrlPatternsnullbudgetsnullchannelstringdisableStorageResetbooleanemulatedUserAgentstringextraHeadersnullformFactorstringgatherModebooleanlocalestringmaxWaitForFcpintegermaxWaitForLoadintegeronlyAuditsstring[]onlyCategoriesstring[]outputstring[]precomputedLanternDatanullscreenEmulationobjectdeviceScaleFactorintegerdisabledbooleanheightintegermobilebooleanwidthinteger
skipAuditsnullthrottlingobjectcpuSlowdownMultiplierintegerdownloadThroughputKbpsintegerrequestLatencyMsintegerrttMsintegerthroughputKbpsintegeruploadThroughputKbpsinteger
throttlingMethodstring
environmentobjectbenchmarkIndexintegercreditsobjectaxe-corestring
hostUserAgentstringnetworkUserAgentstring
fetchTimestringfinalUrlstringlighthouseVersionstringrequestedUrlstringrunWarningsunknown[]userAgentstring
result_countintegerstatus_codeintegerstatus_messagestringtimestring
tasks_countintegertasks_errorintegertimestringversionstring
// Inferred from response examples. Fields are optional and other fields may be returned.
export type ApiResponse = {
cost?: number;
status_code?: number;
status_message?: string;
tasks?: Array<{
cost?: number;
data?: {
api?: string;
audits?: Array<string>;
categories?: Array<string>;
for_mobile?: boolean;
function?: string;
url?: string;
};
id?: string;
path?: Array<string>;
result?: Array<{
audits?: {
viewport?: {
description?: string;
id?: string;
score?: number;
scoreDisplayMode?: string;
title?: string;
warnings?: Array<unknown>;
};
};
categories?: {
performance?: {
auditRefs?: Array<{
acronym?: string;
group?: string;
id?: string;
relevantAudits?: Array<string>;
weight?: number;
}>;
id?: string;
score?: number;
title?: string;
};
pwa?: {
auditRefs?: Array<{
group?: string;
id?: string;
weight?: number;
}>;
description?: string;
id?: string;
manualDescription?: string;
score?: number;
title?: string;
};
seo?: {
auditRefs?: Array<{
group?: string;
id?: string;
weight?: number;
}>;
description?: string;
id?: string;
manualDescription?: string;
score?: number;
title?: string;
};
};
categoryGroups?: {
"a11y-aria"?: {
description?: string;
title?: string;
};
"a11y-audio-video"?: {
description?: string;
title?: string;
};
"a11y-best-practices"?: {
description?: string;
title?: string;
};
"a11y-color-contrast"?: {
description?: string;
title?: string;
};
"a11y-language"?: {
description?: string;
title?: string;
};
"a11y-names-labels"?: {
description?: string;
title?: string;
};
"a11y-navigation"?: {
description?: string;
title?: string;
};
"a11y-tables-lists"?: {
description?: string;
title?: string;
};
"best-practices-browser-compat"?: {
title?: string;
};
"best-practices-general"?: {
title?: string;
};
"best-practices-trust-safety"?: {
title?: string;
};
"best-practices-ux"?: {
title?: string;
};
budgets?: {
description?: string;
title?: string;
};
diagnostics?: {
description?: string;
title?: string;
};
"load-opportunities"?: {
description?: string;
title?: string;
};
metrics?: {
title?: string;
};
"pwa-installable"?: {
title?: string;
};
"pwa-optimized"?: {
title?: string;
};
"seo-content"?: {
description?: string;
title?: string;
};
"seo-crawl"?: {
description?: string;
title?: string;
};
"seo-mobile"?: {
description?: string;
title?: string;
};
};
configSettings?: {
additionalTraceCategories?: null;
auditMode?: boolean;
blockedUrlPatterns?: null;
budgets?: null;
channel?: string;
disableStorageReset?: boolean;
emulatedUserAgent?: string;
extraHeaders?: null;
formFactor?: string;
gatherMode?: boolean;
locale?: string;
maxWaitForFcp?: number;
maxWaitForLoad?: number;
onlyAudits?: Array<string>;
onlyCategories?: Array<string>;
output?: Array<string>;
precomputedLanternData?: null;
screenEmulation?: {
deviceScaleFactor?: number;
disabled?: boolean;
height?: number;
mobile?: boolean;
width?: number;
};
skipAudits?: null;
throttling?: {
cpuSlowdownMultiplier?: number;
downloadThroughputKbps?: number;
requestLatencyMs?: number;
rttMs?: number;
throughputKbps?: number;
uploadThroughputKbps?: number;
};
throttlingMethod?: string;
};
environment?: {
benchmarkIndex?: number;
credits?: {
"axe-core"?: string;
};
hostUserAgent?: string;
networkUserAgent?: string;
};
fetchTime?: string;
finalUrl?: string;
lighthouseVersion?: string;
requestedUrl?: string;
runWarnings?: Array<unknown>;
userAgent?: string;
}>;
result_count?: number;
status_code?: number;
status_message?: string;
time?: string;
}>;
tasks_count?: number;
tasks_error?: number;
time?: string;
version?: string;
};- Method
- POST
- Endpoint
https://api.openany.si/v1/agent-apis/dataforseo/v3/on_page/lighthouse/live/json- Content type
- application/json
- Authentication
Authorization: Bearer $OPENANY_API_KEY
curl \
'https://api.openany.si/v1/agent-apis/dataforseo/v3/on_page/lighthouse/live/json' \
-X POST \
-H "Authorization: Bearer $OPENANY_API_KEY" \
-H 'Content-Type: application/json' \
--data-raw '[
{
"audits": [
"viewport"
],
"categories": [
"seo",
"performance",
"pwa"
],
"for_mobile": false,
"url": "https://dataforseo.com"
}
]'Input parameters
Fields in this listing; additional options and input encoding can vary by provider.
| Parameter | Location | Type | Required | Description |
|---|---|---|---|---|
body | JSON request bodybody | array | Yes | The OnPage Lighthouse API is based on Google’s open-source Lighthouse project for measuring the quality of web pages and web apps. minItems: 1 · maxItems: 1 Nested fields and variants
Nested fields and variants
|
Required markers inside a nested object or variant apply when that object or variant is used.
Sample response
Response template · not a real response · Documented HTTP 200 Response illustration only. Placeholder values and unknown business fields are not recorded API results. Replace request placeholders before use.
{
"cost": 0.00425,
"status_code": 20000,
"status_message": "Ok.",
"tasks": [
{
"cost": 0.00425,
"data": {
"api": "on_page",
"audits": [
"viewport"
],
"categories": [
"seo",
"performance",
"pwa"
],
"for_mobile": false,
"function": "lighthouse",
"url": "https://dataforseo.com"
},
"id": "07201703-2692-0324-0000-ecebf93eae89",
"path": [
"v3",
"on_page",
"lighthouse",
"live",
"json"
],
"result": [
{
"audits": {
"viewport": {
"description": "Add a `<meta name=\"viewport\">` tag to optimize your app for mobile screens. [Learn more](https://web.dev/viewport/).",
"id": "viewport",
"score": 1,
"scoreDisplayMode": "binary",
"title": "Has a `<meta name=\"viewport\">` tag with `width` or `initial-scale`",
"warnings": []
}
},
"categories": {
"performance": {
"auditRefs": [
{
"acronym": "FCP",
"group": "metrics",
"id": "first-contentful-paint",
"relevantAudits": [
"server-response-time",
"render-blocking-resources",
"redirects",
"critical-request-chains",
"uses-text-compression",
"uses-rel-preconnect",
"uses-rel-preload",
"font-display",
"unminified-javascript",
"unminified-css",
"unused-css-rules"
],
"weight": 10
},
{
"acronym": "SI",
"group": "metrics",
"id": "speed-index",
"weight": 10
},
{
"acronym": "LCP",
"group": "metrics",
"id": "largest-contentful-paint",
"relevantAudits": [
"server-response-time",
"render-blocking-resources",
"redirects",
"critical-request-chains",
"uses-text-compression",
"uses-rel-preconnect",
"uses-rel-preload",
"font-display",
"unminified-javascript",
"unminified-css",
"unused-css-rules",
"largest-contentful-paint-element",
"preload-lcp-image",
"unused-javascript",
"efficient-animated-content",
"total-byte-weight"
],
"weight": 25
},
{
"acronym": "TTI",
"group": "metrics",
"id": "interactive",
"weight": 10
},
{
"acronym": "TBT",
"group": "metrics",
"id": "total-blocking-time",
"relevantAudits": [
"long-tasks",
"third-party-summary",
"third-party-facades",
"bootup-time",
"mainthread-work-breakdown",
"dom-size",
"duplicated-javascript",
"legacy-javascript"
],
"weight": 30
},
{
"acronym": "CLS",
"group": "metrics",
"id": "cumulative-layout-shift",
"relevantAudits": [
"layout-shift-elements",
"non-composited-animations",
"unsized-images"
],
"weight": 15
},
{
"id": "max-potential-fid",
"weight": 0
},
{
"acronym": "FMP",
"id": "first-meaningful-paint",
"weight": 0
},
{
"group": "load-opportunities",
"id": "render-blocking-resources",
"weight": 0
},
{
"group": "load-opportunities",
"id": "uses-responsive-images",
"weight": 0
},
{
"group": "load-opportunities",
"id": "offscreen-images",
"weight": 0
},
{
"group": "load-opportunities",
"id": "unminified-css",
"weight": 0
},
{
"group": "load-opportunities",
"id": "unminified-javascript",
"weight": 0
},
{
"group": "load-opportunities",
"id": "unused-css-rules",
"weight": 0
},
{
"group": "load-opportunities",
"id": "unused-javascript",
"weight": 0
},
{
"group": "load-opportunities",
"id": "uses-optimized-images",
"weight": 0
},
{
"group": "load-opportunities",
"id": "modern-image-formats",
"weight": 0
},
{
"group": "load-opportunities",
"id": "uses-text-compression",
"weight": 0
},
{
"group": "load-opportunities",
"id": "uses-rel-preconnect",
"weight": 0
},
{
"group": "load-opportunities",
"id": "server-response-time",
"weight": 0
},
{
"group": "load-opportunities",
"id": "redirects",
"weight": 0
},
{
"group": "load-opportunities",
"id": "uses-rel-preload",
"weight": 0
},
{
"group": "load-opportunities",
"id": "uses-http2",
"weight": 0
},
{
"group": "load-opportunities",
"id": "efficient-animated-content",
"weight": 0
},
{
"group": "load-opportunities",
"id": "duplicated-javascript",
"weight": 0
},
{
"group": "load-opportunities",
"id": "legacy-javascript",
"weight": 0
},
{
"group": "load-opportunities",
"id": "preload-lcp-image",
"weight": 0
},
{
"group": "diagnostics",
"id": "total-byte-weight",
"weight": 0
},
{
"group": "diagnostics",
"id": "uses-long-cache-ttl",
"weight": 0
},
{
"group": "diagnostics",
"id": "dom-size",
"weight": 0
},
{
"group": "diagnostics",
"id": "critical-request-chains",
"weight": 0
},
{
"group": "diagnostics",
"id": "user-timings",
"weight": 0
},
{
"group": "diagnostics",
"id": "bootup-time",
"weight": 0
},
{
"group": "diagnostics",
"id": "mainthread-work-breakdown",
"weight": 0
},
{
"group": "diagnostics",
"id": "font-display",
"weight": 0
},
{
"group": "budgets",
"id": "performance-budget",
"weight": 0
},
{
"group": "budgets",
"id": "timing-budget",
"weight": 0
},
{
"group": "diagnostics",
"id": "resource-summary",
"weight": 0
},
{
"group": "diagnostics",
"id": "third-party-summary",
"weight": 0
},
{
"group": "diagnostics",
"id": "third-party-facades",
"weight": 0
},
{
"group": "diagnostics",
"id": "largest-contentful-paint-element",
"weight": 0
},
{
"group": "diagnostics",
"id": "layout-shift-elements",
"weight": 0
},
{
"group": "diagnostics",
"id": "uses-passive-event-listeners",
"weight": 0
},
{
"group": "diagnostics",
"id": "no-document-write",
"weight": 0
},
{
"group": "diagnostics",
"id": "long-tasks",
"weight": 0
},
{
"group": "diagnostics",
"id": "non-composited-animations",
"weight": 0
},
{
"group": "diagnostics",
"id": "unsized-images",
"weight": 0
},
{
"id": "network-requests",
"weight": 0
},
{
"id": "network-rtt",
"weight": 0
},
{
"id": "network-server-latency",
"weight": 0
},
{
"id": "main-thread-tasks",
"weight": 0
},
{
"id": "diagnostics",
"weight": 0
},
{
"id": "metrics",
"weight": 0
},
{
"id": "screenshot-thumbnails",
"weight": 0
},
{
"id": "final-screenshot",
"weight": 0
},
{
"id": "script-treemap-data",
"weight": 0
}
],
"id": "performance",
"score": 0.68,
"title": "Performance"
},
"pwa": {
"auditRefs": [
{
"group": "pwa-installable",
"id": "installable-manifest",
"weight": 2
},
{
"group": "pwa-optimized",
"id": "service-worker",
"weight": 1
},
{
"group": "pwa-optimized",
"id": "redirects-http",
"weight": 2
},
{
"group": "pwa-optimized",
"id": "splash-screen",
"weight": 1
},
{
"group": "pwa-optimized",
"id": "themed-omnibox",
"weight": 1
},
{
"group": "pwa-optimized",
"id": "content-width",
"weight": 0
},
{
"group": "pwa-optimized",
"id": "viewport",
"weight": 2
},
{
"group": "pwa-optimized",
"id": "apple-touch-icon",
"weight": 1
},
{
"group": "pwa-optimized",
"id": "maskable-icon",
"weight": 1
},
{
"id": "pwa-cross-browser",
"weight": 0
},
{
"id": "pwa-page-transitions",
"weight": 0
},
{
"id": "pwa-each-page-has-url",
"weight": 0
}
],
"description": "These checks validate the aspects of a Progressive Web App. [Learn more](https://developers.google.com/web/progressive-web-apps/checklist).",
"id": "pwa",
"manualDescription": "These checks are required by the baseline [PWA Checklist](https://developers.google.com/web/progressive-web-apps/checklist) but are not automatically checked by Lighthouse. They do not affect your score but it's important that you verify them manually.",
"score": 0.45,
"title": "Progressive Web App"
},
"seo": {
"auditRefs": [
{
"group": "seo-mobile",
"id": "viewport",
"weight": 1
},
{
"group": "seo-content",
"id": "document-title",
"weight": 1
},
{
"group": "seo-content",
"id": "meta-description",
"weight": 1
},
{
"group": "seo-crawl",
"id": "http-status-code",
"weight": 1
},
{
"group": "seo-content",
"id": "link-text",
"weight": 1
},
{
"group": "seo-crawl",
"id": "crawlable-anchors",
"weight": 1
},
{
"group": "seo-crawl",
"id": "is-crawlable",
"weight": 1
},
{
"group": "seo-crawl",
"id": "robots-txt",
"weight": 1
},
{
"group": "seo-content",
"id": "image-alt",
"weight": 1
},
{
"group": "seo-content",
"id": "hreflang",
"weight": 1
},
{
"group": "seo-content",
"id": "canonical",
"weight": 1
},
{
"group": "seo-mobile",
"id": "font-size",
"weight": 0
},
{
"group": "seo-content",
"id": "plugins",
"weight": 1
},
{
"group": "seo-mobile",
"id": "tap-targets",
"weight": 0
},
{
"id": "structured-data",
"weight": 0
}
],
"description": "These checks ensure that your page is optimized for search engine results ranking. There are additional factors Lighthouse does not check that may affect your search ranking. [Learn more](https://support.google.com/webmasters/answer/35769).",
"id": "seo",
"manualDescription": "Run these additional validators on your site to check additional SEO best practices.",
"score": 0.83,
"title": "SEO"
}
},
"categoryGroups": {
"a11y-aria": {
"description": "These are opportunities to improve the usage of ARIA in your application which may enhance the experience for users of assistive technology, like a screen reader.",
"title": "ARIA"
},
"a11y-audio-video": {
"description": "These are opportunities to provide alternative content for audio and video. This may improve the experience for users with hearing or vision impairments.",
"title": "Audio and video"
},
"a11y-best-practices": {
"description": "These items highlight common accessibility best practices.",
"title": "Best practices"
},
"a11y-color-contrast": {
"description": "These are opportunities to improve the legibility of your content.",
"title": "Contrast"
},
"a11y-language": {
"description": "These are opportunities to improve the interpretation of your content by users in different locales.",
"title": "Internationalization and localization"
},
"a11y-names-labels": {
"description": "These are opportunities to improve the semantics of the controls in your application. This may enhance the experience for users of assistive technology, like a screen reader.",
"title": "Names and labels"
},
"a11y-navigation": {
"description": "These are opportunities to improve keyboard navigation in your application.",
"title": "Navigation"
},
"a11y-tables-lists": {
"description": "These are opportunities to improve the experience of reading tabular or list data using assistive technology, like a screen reader.",
"title": "Tables and lists"
},
"best-practices-browser-compat": {
"title": "Browser Compatibility"
},
"best-practices-general": {
"title": "General"
},
"best-practices-trust-safety": {
"title": "Trust and Safety"
},
"best-practices-ux": {
"title": "User Experience"
},
"budgets": {
"description": "Performance budgets set standards for the performance of your site.",
"title": "Budgets"
},
"diagnostics": {
"description": "More information about the performance of your application. These numbers don't [directly affect](https://web.dev/performance-scoring/) the Performance score.",
"title": "Diagnostics"
},
"load-opportunities": {
"description": "These suggestions can help your page load faster. They don't [directly affect](https://web.dev/performance-scoring/) the Performance score.",
"title": "Opportunities"
},
"metrics": {
"title": "Metrics"
},
"pwa-installable": {
"title": "Installable"
},
"pwa-optimized": {
"title": "PWA Optimized"
},
"seo-content": {
"description": "Format your HTML in a way that enables crawlers to better understand your app’s content.",
"title": "Content Best Practices"
},
"seo-crawl": {
"description": "To appear in search results, crawlers need access to your app.",
"title": "Crawling and Indexing"
},
"seo-mobile": {
"description": "Make sure your pages are mobile friendly so users don’t have to pinch or zoom in order to read the content pages. [Learn more](https://developers.google.com/search/mobile-sites/).",
"title": "Mobile Friendly"
}
},
"configSettings": {
"additionalTraceCategories": null,
"auditMode": false,
"blockedUrlPatterns": null,
"budgets": null,
"channel": "cli",
"disableStorageReset": false,
"emulatedUserAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4420.0 Safari/537.36 Chrome-Lighthouse",
"extraHeaders": null,
"formFactor": "desktop",
"gatherMode": false,
"locale": "en-US",
"maxWaitForFcp": 30000,
"maxWaitForLoad": 45000,
"onlyAudits": [
"viewport"
],
"onlyCategories": [
"performance",
"pwa",
"seo"
],
"output": [
"json"
],
"precomputedLanternData": null,
"screenEmulation": {
"deviceScaleFactor": 1,
"disabled": false,
"height": 940,
"mobile": false,
"width": 1350
},
"skipAudits": null,
"throttling": {
"cpuSlowdownMultiplier": 1,
"downloadThroughputKbps": 0,
"requestLatencyMs": 0,
"rttMs": 40,
"throughputKbps": 10240,
"uploadThroughputKbps": 0
},
"throttlingMethod": "simulate"
},
"environment": {
"benchmarkIndex": 2102,
"credits": {
"axe-core": "4.2.3"
},
"hostUserAgent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/92.0.4512.0 Safari/537.36",
"networkUserAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4420.0 Safari/537.36 Chrome-Lighthouse"
},
"fetchTime": "2021-07-20T14:03:36.147Z",
"finalUrl": "https://dataforseo.com/",
"lighthouseVersion": "8.1.0",
"requestedUrl": "https://dataforseo.com/",
"runWarnings": [],
"userAgent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/92.0.4512.0 Safari/537.36"
}
],
"result_count": 1,
"status_code": 20000,
"status_message": "Ok.",
"time": "21.2320 sec."
}
],
"tasks_count": 1,
"tasks_error": 0,
"time": "21.5977 sec.",
"version": "0.1.20210713"
}Composite rule pricing
Calculated from input parameters and actual returned quantities. Estimate the maximum cost before calling.
Base fee: $0.005000. One matching variant replaces the base fee. Matching add-ons and quantity charges are added.
| Fee item | Price | Metering source | When | Quantity limit |
|---|---|---|---|---|
| 任务错误数必须为零 | $0.000000 / billing unit | Response · /tasks_error · Numeric value | Always | 0 billing unit · Decimal places: 0 |
Each quantity charge is rounded before summing: ceil. Requests exceeding this cost limit are rejected; it is not a price cap: $0.005000.
Response quantities settle after the response. Before execution, the maximum quantity determines the reservation; unused reservation is released. Missing or invalid quantities are not treated as zero.
Pricing parameters and defaults
[]
Agent integration
Copy the resource contract without sharing an API key.
View API Markdown
# DataForSEO — On Page / Lighthouse / Live / Json
Retrieve on Page Lighthouse Live Json with the DataForSEO API. The sample response includes URLs. Use it for search visibility research or technical SEO.
## Available implementations
DataForSEO · DataForSEO — On Page / Lighthouse / Live / Json: https://openany.si/markets/apis/capabilities/dataforseo-on-page-lighthouse-live-json?offering=c6b7ea54-38f9-4ba9-9172-70c9ea5334f7 · $0.005 / call
## Selected API contract
Documentation: https://openany.si/markets/apis/capabilities/dataforseo-on-page-lighthouse-live-json
Method: POST
Endpoint: https://api.openany.si/v1/agent-apis/dataforseo/v3/on_page/lighthouse/live/json
Price: $0.005 / call
Provider: DataForSEO
Contract revision: 3
Price source: OpenAny public API contract and documented provider unit rates. Price update time: not supplied.
Use OPENANY_API_KEY from the environment. API Key calls use your shared balance.
## Prepared request
```bash
curl \
'https://api.openany.si/v1/agent-apis/dataforseo/v3/on_page/lighthouse/live/json' \
-X POST \
-H "Authorization: Bearer $OPENANY_API_KEY" \
-H 'Content-Type: application/json' \
--data-raw '[
{
"audits": [
"viewport"
],
"categories": [
"seo",
"performance",
"pwa"
],
"for_mobile": false,
"url": "https://dataforseo.com"
}
]'
```
## API contract
```json
{
"resource_type": "api",
"name": "DataForSEO — On Page / Lighthouse / Live / Json",
"endpoint": "https://api.openany.si/v1/agent-apis/dataforseo/v3/on_page/lighthouse/live/json",
"method": "POST",
"content_type": "application/json",
"execution_mode": "sync",
"authentication": {
"type": "bearer",
"environment_variable": "OPENANY_API_KEY"
},
"inputs": [
{
"description": "The OnPage Lighthouse API is based on Google’s open-source Lighthouse project for measuring the quality of web pages and web apps.",
"json_schema": {
"example": [
{
"for_mobile": true,
"tag": "some_string_123",
"url": "https://dataforseo.com"
}
],
"items": {
"example": [
{
"for_mobile": true,
"tag": "some_string_123",
"url": "https://dataforseo.com"
}
],
"nullable": true,
"properties": {
"audits": {
"description": "Lighthouse audits optional field audits are individual tests Lighthouse runs for each specific feature/optimization/metric to produce a numeric score (see official definition); if you ignore this field, we will return data for all audits; use this field to get data for specific audits you indicate here; Note: that some audits do not belong to a specific category and are stand-alone page quality measurements; in general, there can be several use cases: 1. if you ignore categories, you can use this field to get data for the specified audits only for example, if you ignore \"categories\" and specify \"audits\": [\"metrics/cumulative-layout-shift\",\"metrics/largest-contentful-paint\",\"metrics/total-blocking-time\"], you will get data only for these audits 2. if you specify a category, you can use this field to additionally receive audits that do not belong to the category(-ies) you specified for example, if you specify \"categories\": [\"seo\"] and \"audits\": [\"metrics/cumulative-layout-shift\",\"metrics/largest-contentful-paint\",\"metrics/total-blocking-time\"], you will get only these audits under \"performance\" and all audits under \"seo\" you can get the full list of possible audits here",
"items": {
"type": "string"
},
"nullable": true,
"type": "array",
"x-original-openapi-description": "Lighthouse audits optional field audits are individual tests Lighthouse runs for each specific feature/optimization/metric to produce a numeric score (see official definition); if you ignore this field, we will return data for all audits ; use this field to get data for specific audits you indicate here; Note: that some audits do not belong to a specific category and are stand-alone page quality measurements; in general, there can be several use cases: 1. if you ignore categories , you can use this field to get data for the specified audits only for example, if you ignore \"categories\" and specify \"audits\": [\"metrics/cumulative-layout-shift\",\"metrics/largest-contentful-paint\",\"metrics/total-blocking-time\"] , you will get data only for these audits 2. if you specify a category, you can use this field to additionally receive audits that do not belong to the category(-ies) you specified for example, if you specify \"categories\": [\"seo\"] and \"audits\": [\"metrics/cumulative-layout-shift\",\"metrics/largest-contentful-paint\",\"metrics/total-blocking-time\"] , you will get only these audits under \"performance\" and all audits under \"seo\" you can get the full list of possible audits here",
"x-required-status": "optional"
},
"browser_cpu_throttling_multiplier": {
"description": "browser CPU throttling multiplier required if browser_network_throttling_method is set to devtools; set the CPU throttling multiplier to simulate device performance conditions during the Lighthouse audit; can be specified within the following range: 1–4; Note: this parameter is applied only when browser_network_throttling_method is set to devtools;",
"nullable": true,
"type": "number",
"x-original-openapi-description": "browser CPU throttling multiplier required if browser_network_throttling_method is set to devtools ; set the CPU throttling multiplier to simulate device performance conditions during the Lighthouse audit; can be specified within the following range: 1–4 ; Note: this parameter is applied only when browser_network_throttling_method is set to devtools ;",
"x-required-status": "conditional"
},
"browser_network_throttling": {
"description": "browser network throttling required if browser_network_throttling_method is set to devtools; set the network throttling profile to simulate connection speed conditions during the Lighthouse audit; possible values: no_throttling, fast_4g, slow_4g, regular_3g, pc; Note: this parameter is applied only when browser_network_throttling_method is set to devtools;",
"nullable": true,
"type": "string",
"x-original-openapi-description": "browser network throttling required if browser_network_throttling_method is set to devtools ; set the network throttling profile to simulate connection speed conditions during the Lighthouse audit; possible values: no_throttling , fast_4g , slow_4g , regular_3g , pc ; Note: this parameter is applied only when browser_network_throttling_method is set to devtools ;",
"x-required-status": "conditional"
},
"browser_network_throttling_method": {
"description": "browser network throttling method optional field defines the method used to apply throttling during the Lighthouse audit; possible vaules: simulate - calculates estimated performance metrics without applying explicit throttling; devtools - applies the throttling settings specified in browser_network_throttling and browser_cpu_throttling_multiplier; provided - uses the network conditions of the crawling environment;",
"nullable": true,
"type": "string",
"x-original-openapi-description": "browser network throttling method optional field defines the method used to apply throttling during the Lighthouse audit; possible vaules: simulate - calculates estimated performance metrics without applying explicit throttling; devtools - applies the throttling settings specified in browser_network_throttling and browser_cpu_throttling_multiplier ; provided - uses the network conditions of the crawling environment;",
"x-required-status": "optional"
},
"browser_screen_height": {
"description": "browser screen height optional field set the screen height of the browser used for the Lighthouse audit to emulate a specific device; can be specified within the following range: 240–9999;",
"nullable": true,
"type": "integer",
"x-original-openapi-description": "browser screen height optional field set the screen height of the browser used for the Lighthouse audit to emulate a specific device; can be specified within the following range: 240–9999 ;",
"x-required-status": "optional"
},
"browser_screen_scale_factor": {
"description": "browser screen scale factor optional field set the device pixel ratio of the browser used for the Lighthouse audit; can be specified within the following range: 0.5–3;",
"nullable": true,
"type": "number",
"x-original-openapi-description": "browser screen scale factor optional field set the device pixel ratio of the browser used for the Lighthouse audit; can be specified within the following range: 0.5–3 ;",
"x-required-status": "optional"
},
"browser_screen_width": {
"description": "browser screen width optional field set the screen width of the browser used for the Lighthouse audit to emulate a specific device; can be specified within the following range: 240–9999;",
"format": "int64",
"nullable": true,
"type": "integer",
"x-original-openapi-description": "browser screen width optional field set the screen width of the browser used for the Lighthouse audit to emulate a specific device; can be specified within the following range: 240–9999 ;",
"x-required-status": "optional"
},
"categories": {
"description": "categories of Lighthouse audits optional field each category is a collection of audits and audit groups that applies weighting and scoring to the section (see official definition) if you ignore this field, we will return data for all categories unless you specify audits use this field to get data for specific categories you indicate here possible values: seo, performance, best_practices, accessibility",
"items": {
"type": "string"
},
"nullable": true,
"type": "array",
"x-original-openapi-description": "categories of Lighthouse audits optional field each category is a collection of audits and audit groups that applies weighting and scoring to the section (see official definition) if you ignore this field, we will return data for all categories unless you specify audits use this field to get data for specific categories you indicate here possible values: seo , performance , best_practices , accessibility",
"x-required-status": "optional"
},
"custom_user_agent": {
"description": "custom user agent optional field specify the custom user agent used by the browser when running the Lighthouse audit; can be specified with up to 254 characters;",
"nullable": true,
"type": "string",
"x-required-status": "optional"
},
"for_mobile": {
"default": false,
"description": "applies mobile emulation optional field if set to true, Lighthouse will use mobile device and screen emulation to test the page against mobile environment if set to false, the results will be provided for desktop default value: false",
"nullable": true,
"type": "boolean",
"x-constraints-from-official-description": [
"default"
],
"x-original-openapi-description": "applies mobile emulation optional field if set to true , Lighthouse will use mobile device and screen emulation to test the page against mobile environment if set to false , the results will be provided for desktop default value: false",
"x-required-status": "optional"
},
"language_code": {
"description": "lighthouse language code optional field you can receive the list of available languages of the search engine with their language_code by making a separate request to https://api.dataforseo.com/v3/on_page/lighthouse/languages default value: en",
"nullable": true,
"type": "string",
"x-required-status": "optional"
},
"language_name": {
"description": "lighthouse language name optional field you can receive the list of available languages of the search engine with their language_name by making a separate request to https://api.dataforseo.com/v3/on_page/lighthouse/languages default value: English",
"nullable": true,
"type": "string",
"x-required-status": "optional"
},
"tag": {
"description": "user-defined task identifier optional field the character limit is 255 you can use this parameter to identify the task and match it with the result you will find the specified tag value in the data object of the response",
"nullable": true,
"type": "string",
"x-required-status": "optional"
},
"url": {
"description": "target URL required field target page should be specified with its absolute URL (including http:// or https://) example: https://dataforseo.com/",
"type": "string",
"x-required-status": "required"
},
"version": {
"description": "lighthouse version optional field you can obtain the results specific to a certain Lighthouse version by specifying its number the list of available versions is available through the Lighthouse Versions endpoint",
"nullable": true,
"type": "string",
"x-required-status": "optional"
}
},
"required": [
"url"
],
"type": "object",
"x-required-origin": "official_required_array_plus_explicit_unconditional_required_field_prose"
},
"maxItems": 1,
"minItems": 1,
"type": "array",
"x-openany-retail-scope": "single_native_task_per_sale_execution",
"x-openapi-version": "3.0.1",
"x-schema-origin": "official_openapi_with_local_refs_rebased"
},
"location": "body",
"name": "body",
"nullable": false,
"pointer": "",
"required": true,
"type": "array"
}
],
"billing": {
"currency": "USD",
"mode": "rules",
"parameters": [],
"policy_version": 2,
"sale": {
"addons": [],
"base_price_micro_usd": "5000",
"max_cost_micro_usd": "5000",
"quantities": [
{
"id": "task_errors",
"label": "任务错误数必须为零",
"max_quantity": "0",
"measure": "value",
"pointer": "/tasks_error",
"price_micro_usd": "0",
"quantity_scale": 0,
"source": "response",
"unit": "task_error",
"unit_quantity": "1"
}
],
"rounding": "ceil",
"variants": []
}
},
"examples": [
{
"http_status": 200,
"name": "Documentation template · Import excerpt; not run (abridged)",
"request": {
"body": [
{
"audits": [
"viewport"
],
"categories": [
"seo",
"performance",
"pwa"
],
"for_mobile": false,
"url": "https://dataforseo.com"
}
],
"headers": {},
"path": {},
"query": {}
},
"response_body": {
"cost": 0.00425,
"status_code": 20000,
"status_message": "Ok.",
"tasks": [
{
"cost": 0.00425,
"data": {
"api": "on_page",
"audits": [
"viewport"
],
"categories": [
"seo",
"performance",
"pwa"
],
"for_mobile": false,
"function": "lighthouse",
"url": "https://dataforseo.com"
},
"id": "07201703-2692-0324-0000-ecebf93eae89",
"path": [
"v3",
"on_page",
"lighthouse",
"live",
"json"
],
"result": [
{
"audits": {
"viewport": {
"description": "Add a `<meta name=\"viewport\">` tag to optimize your app for mobile screens. [Learn more](https://web.dev/viewport/).",
"id": "viewport",
"score": 1,
"scoreDisplayMode": "binary",
"title": "Has a `<meta name=\"viewport\">` tag with `width` or `initial-scale`",
"warnings": []
}
},
"categories": {
"performance": {
"auditRefs": [
{
"acronym": "FCP",
"group": "metrics",
"id": "first-contentful-paint",
"relevantAudits": [
"server-response-time",
"render-blocking-resources",
"redirects",
"critical-request-chains",
"uses-text-compression",
"uses-rel-preconnect",
"uses-rel-preload",
"font-display",
"unminified-javascript",
"unminified-css",
"unused-css-rules"
],
"weight": 10
},
{
"acronym": "SI",
"group": "metrics",
"id": "speed-index",
"weight": 10
},
{
"acronym": "LCP",
"group": "metrics",
"id": "largest-contentful-paint",
"relevantAudits": [
"server-response-time",
"render-blocking-resources",
"redirects",
"critical-request-chains",
"uses-text-compression",
"uses-rel-preconnect",
"uses-rel-preload",
"font-display",
"unminified-javascript",
"unminified-css",
"unused-css-rules",
"largest-contentful-paint-element",
"preload-lcp-image",
"unused-javascript",
"efficient-animated-content",
"total-byte-weight"
],
"weight": 25
},
{
"acronym": "TTI",
"group": "metrics",
"id": "interactive",
"weight": 10
},
{
"acronym": "TBT",
"group": "metrics",
"id": "total-blocking-time",
"relevantAudits": [
"long-tasks",
"third-party-summary",
"third-party-facades",
"bootup-time",
"mainthread-work-breakdown",
"dom-size",
"duplicated-javascript",
"legacy-javascript"
],
"weight": 30
},
{
"acronym": "CLS",
"group": "metrics",
"id": "cumulative-layout-shift",
"relevantAudits": [
"layout-shift-elements",
"non-composited-animations",
"unsized-images"
],
"weight": 15
},
{
"id": "max-potential-fid",
"weight": 0
},
{
"acronym": "FMP",
"id": "first-meaningful-paint",
"weight": 0
},
{
"group": "load-opportunities",
"id": "render-blocking-resources",
"weight": 0
},
{
"group": "load-opportunities",
"id": "uses-responsive-images",
"weight": 0
},
{
"group": "load-opportunities",
"id": "offscreen-images",
"weight": 0
},
{
"group": "load-opportunities",
"id": "unminified-css",
"weight": 0
},
{
"group": "load-opportunities",
"id": "unminified-javascript",
"weight": 0
},
{
"group": "load-opportunities",
"id": "unused-css-rules",
"weight": 0
},
{
"group": "load-opportunities",
"id": "unused-javascript",
"weight": 0
},
{
"group": "load-opportunities",
"id": "uses-optimized-images",
"weight": 0
},
{
"group": "load-opportunities",
"id": "modern-image-formats",
"weight": 0
},
{
"group": "load-opportunities",
"id": "uses-text-compression",
"weight": 0
},
{
"group": "load-opportunities",
"id": "uses-rel-preconnect",
"weight": 0
},
{
"group": "load-opportunities",
"id": "server-response-time",
"weight": 0
},
{
"group": "load-opportunities",
"id": "redirects",
"weight": 0
},
{
"group": "load-opportunities",
"id": "uses-rel-preload",
"weight": 0
},
{
"group": "load-opportunities",
"id": "uses-http2",
"weight": 0
},
{
"group": "load-opportunities",
"id": "efficient-animated-content",
"weight": 0
},
{
"group": "load-opportunities",
"id": "duplicated-javascript",
"weight": 0
},
{
"group": "load-opportunities",
"id": "legacy-javascript",
"weight": 0
},
{
"group": "load-opportunities",
"id": "preload-lcp-image",
"weight": 0
},
{
"group": "diagnostics",
"id": "total-byte-weight",
"weight": 0
},
{
"group": "diagnostics",
"id": "uses-long-cache-ttl",
"weight": 0
},
{
"group": "diagnostics",
"id": "dom-size",
"weight": 0
},
{
"group": "diagnostics",
"id": "critical-request-chains",
"weight": 0
},
{
"group": "diagnostics",
"id": "user-timings",
"weight": 0
},
{
"group": "diagnostics",
"id": "bootup-time",
"weight": 0
},
{
"group": "diagnostics",
"id": "mainthread-work-breakdown",
"weight": 0
},
{
"group": "diagnostics",
"id": "font-display",
"weight": 0
},
{
"group": "budgets",
"id": "performance-budget",
"weight": 0
},
{
"group": "budgets",
"id": "timing-budget",
"weight": 0
},
{
"group": "diagnostics",
"id": "resource-summary",
"weight": 0
},
{
"group": "diagnostics",
"id": "third-party-summary",
"weight": 0
},
{
"group": "diagnostics",
"id": "third-party-facades",
"weight": 0
},
{
"group": "diagnostics",
"id": "largest-contentful-paint-element",
"weight": 0
},
{
"group": "diagnostics",
"id": "layout-shift-elements",
"weight": 0
},
{
"group": "diagnostics",
"id": "uses-passive-event-listeners",
"weight": 0
},
{
"group": "diagnostics",
"id": "no-document-write",
"weight": 0
},
{
"group": "diagnostics",
"id": "long-tasks",
"weight": 0
},
{
"group": "diagnostics",
"id": "non-composited-animations",
"weight": 0
},
{
"group": "diagnostics",
"id": "unsized-images",
"weight": 0
},
{
"id": "network-requests",
"weight": 0
},
{
"id": "network-rtt",
"weight": 0
},
{
"id": "network-server-latency",
"weight": 0
},
{
"id": "main-thread-tasks",
"weight": 0
},
{
"id": "diagnostics",
"weight": 0
},
{
"id": "metrics",
"weight": 0
},
{
"id": "screenshot-thumbnails",
"weight": 0
},
{
"id": "final-screenshot",
"weight": 0
},
{
"id": "script-treemap-data",
"weight": 0
}
],
"id": "performance",
"score": 0.68,
"title": "Performance"
},
"pwa": {
"auditRefs": [
{
"group": "pwa-installable",
"id": "installable-manifest",
"weight": 2
},
{
"group": "pwa-optimized",
"id": "service-worker",
"weight": 1
},
{
"group": "pwa-optimized",
"id": "redirects-http",
"weight": 2
},
{
"group": "pwa-optimized",
"id": "splash-screen",
"weight": 1
},
{
"group": "pwa-optimized",
"id": "themed-omnibox",
"weight": 1
},
{
"group": "pwa-optimized",
"id": "content-width",
"weight": 0
},
{
"group": "pwa-optimized",
"id": "viewport",
"weight": 2
},
{
"group": "pwa-optimized",
"id": "apple-touch-icon",
"weight": 1
},
{
"group": "pwa-optimized",
"id": "maskable-icon",
"weight": 1
},
{
"id": "pwa-cross-browser",
"weight": 0
},
{
"id": "pwa-page-transitions",
"weight": 0
},
{
"id": "pwa-each-page-has-url",
"weight": 0
}
],
"description": "These checks validate the aspects of a Progressive Web App. [Learn more](https://developers.google.com/web/progressive-web-apps/checklist).",
"id": "pwa",
"manualDescription": "These checks are required by the baseline [PWA Checklist](https://developers.google.com/web/progressive-web-apps/checklist) but are not automatically checked by Lighthouse. They do not affect your score but it's important that you verify them manually.",
"score": 0.45,
"title": "Progressive Web App"
},
"seo": {
"auditRefs": [
{
"group": "seo-mobile",
"id": "viewport",
"weight": 1
},
{
"group": "seo-content",
"id": "document-title",
"weight": 1
},
{
"group": "seo-content",
"id": "meta-description",
"weight": 1
},
{
"group": "seo-crawl",
"id": "http-status-code",
"weight": 1
},
{
"group": "seo-content",
"id": "link-text",
"weight": 1
},
{
"group": "seo-crawl",
"id": "crawlable-anchors",
"weight": 1
},
{
"group": "seo-crawl",
"id": "is-crawlable",
"weight": 1
},
{
"group": "seo-crawl",
"id": "robots-txt",
"weight": 1
},
{
"group": "seo-content",
"id": "image-alt",
"weight": 1
},
{
"group": "seo-content",
"id": "hreflang",
"weight": 1
},
{
"group": "seo-content",
"id": "canonical",
"weight": 1
},
{
"group": "seo-mobile",
"id": "font-size",
"weight": 0
},
{
"group": "seo-content",
"id": "plugins",
"weight": 1
},
{
"group": "seo-mobile",
"id": "tap-targets",
"weight": 0
},
{
"id": "structured-data",
"weight": 0
}
],
"description": "These checks ensure that your page is optimized for search engine results ranking. There are additional factors Lighthouse does not check that may affect your search ranking. [Learn more](https://support.google.com/webmasters/answer/35769).",
"id": "seo",
"manualDescription": "Run these additional validators on your site to check additional SEO best practices.",
"score": 0.83,
"title": "SEO"
}
},
"categoryGroups": {
"a11y-aria": {
"description": "These are opportunities to improve the usage of ARIA in your application which may enhance the experience for users of assistive technology, like a screen reader.",
"title": "ARIA"
},
"a11y-audio-video": {
"description": "These are opportunities to provide alternative content for audio and video. This may improve the experience for users with hearing or vision impairments.",
"title": "Audio and video"
},
"a11y-best-practices": {
"description": "These items highlight common accessibility best practices.",
"title": "Best practices"
},
"a11y-color-contrast": {
"description": "These are opportunities to improve the legibility of your content.",
"title": "Contrast"
},
"a11y-language": {
"description": "These are opportunities to improve the interpretation of your content by users in different locales.",
"title": "Internationalization and localization"
},
"a11y-names-labels": {
"description": "These are opportunities to improve the semantics of the controls in your application. This may enhance the experience for users of assistive technology, like a screen reader.",
"title": "Names and labels"
},
"a11y-navigation": {
"description": "These are opportunities to improve keyboard navigation in your application.",
"title": "Navigation"
},
"a11y-tables-lists": {
"description": "These are opportunities to improve the experience of reading tabular or list data using assistive technology, like a screen reader.",
"title": "Tables and lists"
},
"best-practices-browser-compat": {
"title": "Browser Compatibility"
},
"best-practices-general": {
"title": "General"
},
"best-practices-trust-safety": {
"title": "Trust and Safety"
},
"best-practices-ux": {
"title": "User Experience"
},
"budgets": {
"description": "Performance budgets set standards for the performance of your site.",
"title": "Budgets"
},
"diagnostics": {
"description": "More information about the performance of your application. These numbers don't [directly affect](https://web.dev/performance-scoring/) the Performance score.",
"title": "Diagnostics"
},
"load-opportunities": {
"description": "These suggestions can help your page load faster. They don't [directly affect](https://web.dev/performance-scoring/) the Performance score.",
"title": "Opportunities"
},
"metrics": {
"title": "Metrics"
},
"pwa-installable": {
"title": "Installable"
},
"pwa-optimized": {
"title": "PWA Optimized"
},
"seo-content": {
"description": "Format your HTML in a way that enables crawlers to better understand your app’s content.",
"title": "Content Best Practices"
},
"seo-crawl": {
"description": "To appear in search results, crawlers need access to your app.",
"title": "Crawling and Indexing"
},
"seo-mobile": {
"description": "Make sure your pages are mobile friendly so users don’t have to pinch or zoom in order to read the content pages. [Learn more](https://developers.google.com/search/mobile-sites/).",
"title": "Mobile Friendly"
}
},
"configSettings": {
"additionalTraceCategories": null,
"auditMode": false,
"blockedUrlPatterns": null,
"budgets": null,
"channel": "cli",
"disableStorageReset": false,
"emulatedUserAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4420.0 Safari/537.36 Chrome-Lighthouse",
"extraHeaders": null,
"formFactor": "desktop",
"gatherMode": false,
"locale": "en-US",
"maxWaitForFcp": 30000,
"maxWaitForLoad": 45000,
"onlyAudits": [
"viewport"
],
"onlyCategories": [
"performance",
"pwa",
"seo"
],
"output": [
"json"
],
"precomputedLanternData": null,
"screenEmulation": {
"deviceScaleFactor": 1,
"disabled": false,
"height": 940,
"mobile": false,
"width": 1350
},
"skipAudits": null,
"throttling": {
"cpuSlowdownMultiplier": 1,
"downloadThroughputKbps": 0,
"requestLatencyMs": 0,
"rttMs": 40,
"throughputKbps": 10240,
"uploadThroughputKbps": 0
},
"throttlingMethod": "simulate"
},
"environment": {
"benchmarkIndex": 2102,
"credits": {
"axe-core": "4.2.3"
},
"hostUserAgent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/92.0.4512.0 Safari/537.36",
"networkUserAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4420.0 Safari/537.36 Chrome-Lighthouse"
},
"fetchTime": "2021-07-20T14:03:36.147Z",
"finalUrl": "https://dataforseo.com/",
"lighthouseVersion": "8.1.0",
"requestedUrl": "https://dataforseo.com/",
"runWarnings": [],
"userAgent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/92.0.4512.0 Safari/537.36"
}
],
"result_count": 1,
"status_code": 20000,
"status_message": "Ok.",
"time": "21.2320 sec."
}
],
"tasks_count": 1,
"tasks_error": 0,
"time": "21.5977 sec.",
"version": "0.1.20210713"
}
}
]
}
```Error handling
| Status | Next step |
|---|---|
400 | Check the offering and request fields. |
401 / 403 | Verify your credentials and access permissions. |
402 | Inspect the selected access mode and returned payment requirements. |
429 | Respect the returned rate limit and retry guidance. |
5xx | Inspect the error and usage record before retrying a paid operation. |
Documentation template · Import excerpt; not run (abridged)
Response illustration only. Placeholder values and unknown business fields are not recorded API results. Replace request placeholders before use.
Prepare your environment
Use a terminal with cURL installed.
Use an OpenAny API key with shared-balance access. Confirm availability and price before running; a call may charge your balance.
Set the key in your terminal using the hidden prompt below. Keep its value out of source files and logs.
Terminal · macOS / Linuxprintf 'OpenAny API key: ' read -r -s OPENANY_API_KEY export OPENANY_API_KEY printf '\n'Run the request
Paste the complete command below into your terminal.
Values to replace before running 1
Review these request fields before running. Keep the published provider and request method unchanged.
body- The OnPage Lighthouse API is based on Google’s open-source Lighthouse project for measuring the quality of web pages and web apps.
Terminal · cURLcurl \ 'https://api.openany.si/v1/agent-apis/dataforseo/v3/on_page/lighthouse/live/json' \ -X POST \ -H "Authorization: Bearer $OPENANY_API_KEY" \ -H 'Content-Type: application/json' \ --data-raw '[ { "audits": [ "viewport" ], "categories": [ "seo", "performance", "pwa" ], "for_mobile": false, "url": "https://dataforseo.com" } ]'Check the response
Response template · not a real response · Documented HTTP 200
Response template · not a real response{ "cost": 0.00425, "status_code": 20000, "status_message": "Ok.", "tasks": [ { "cost": 0.00425, "data": { "api": "on_page", "audits": [ "viewport" ], "categories": [ "seo", "performance", "pwa" ], "for_mobile": false, "function": "lighthouse", "url": "https://dataforseo.com" }, "id": "07201703-2692-0324-0000-ecebf93eae89", "path": [ "v3", "on_page", "lighthouse", "live", "json" ], "result": [ { "audits": { "viewport": { "description": "Add a `<meta name=\"viewport\">` tag to optimize your app for mobile screens. [Learn more](https://web.dev/viewport/).", "id": "viewport", "score": 1, "scoreDisplayMode": "binary", "title": "Has a `<meta name=\"viewport\">` tag with `width` or `initial-scale`", "warnings": [] } }, "categories": { "performance": { "auditRefs": [ { "acronym": "FCP", "group": "metrics", "id": "first-contentful-paint", "relevantAudits": [ "server-response-time", "render-blocking-resources", "redirects", "critical-request-chains", "uses-text-compression", "uses-rel-preconnect", "uses-rel-preload", "font-display", "unminified-javascript", "unminified-css", "unused-css-rules" ], "weight": 10 }, { "acronym": "SI", "group": "metrics", "id": "speed-index", "weight": 10 }, { "acronym": "LCP", "group": "metrics", "id": "largest-contentful-paint", "relevantAudits": [ "server-response-time", "render-blocking-resources", "redirects", "critical-request-chains", "uses-text-compression", "uses-rel-preconnect", "uses-rel-preload", "font-display", "unminified-javascript", "unminified-css", "unused-css-rules", "largest-contentful-paint-element", "preload-lcp-image", "unused-javascript", "efficient-animated-content", "total-byte-weight" ], "weight": 25 }, { "acronym": "TTI", "group": "metrics", "id": "interactive", "weight": 10 }, { "acronym": "TBT", "group": "metrics", "id": "total-blocking-time", "relevantAudits": [ "long-tasks", "third-party-summary", "third-party-facades", "bootup-time", "mainthread-work-breakdown", "dom-size", "duplicated-javascript", "legacy-javascript" ], "weight": 30 }, { "acronym": "CLS", "group": "metrics", "id": "cumulative-layout-shift", "relevantAudits": [ "layout-shift-elements", "non-composited-animations", "unsized-images" ], "weight": 15 }, { "id": "max-potential-fid", "weight": 0 }, { "acronym": "FMP", "id": "first-meaningful-paint", "weight": 0 }, { "group": "load-opportunities", "id": "render-blocking-resources", "weight": 0 }, { "group": "load-opportunities", "id": "uses-responsive-images", "weight": 0 }, { "group": "load-opportunities", "id": "offscreen-images", "weight": 0 }, { "group": "load-opportunities", "id": "unminified-css", "weight": 0 }, { "group": "load-opportunities", "id": "unminified-javascript", "weight": 0 }, { "group": "load-opportunities", "id": "unused-css-rules", "weight": 0 }, { "group": "load-opportunities", "id": "unused-javascript", "weight": 0 }, { "group": "load-opportunities", "id": "uses-optimized-images", "weight": 0 }, { "group": "load-opportunities", "id": "modern-image-formats", "weight": 0 }, { "group": "load-opportunities", "id": "uses-text-compression", "weight": 0 }, { "group": "load-opportunities", "id": "uses-rel-preconnect", "weight": 0 }, { "group": "load-opportunities", "id": "server-response-time", "weight": 0 }, { "group": "load-opportunities", "id": "redirects", "weight": 0 }, { "group": "load-opportunities", "id": "uses-rel-preload", "weight": 0 }, { "group": "load-opportunities", "id": "uses-http2", "weight": 0 }, { "group": "load-opportunities", "id": "efficient-animated-content", "weight": 0 }, { "group": "load-opportunities", "id": "duplicated-javascript", "weight": 0 }, { "group": "load-opportunities", "id": "legacy-javascript", "weight": 0 }, { "group": "load-opportunities", "id": "preload-lcp-image", "weight": 0 }, { "group": "diagnostics", "id": "total-byte-weight", "weight": 0 }, { "group": "diagnostics", "id": "uses-long-cache-ttl", "weight": 0 }, { "group": "diagnostics", "id": "dom-size", "weight": 0 }, { "group": "diagnostics", "id": "critical-request-chains", "weight": 0 }, { "group": "diagnostics", "id": "user-timings", "weight": 0 }, { "group": "diagnostics", "id": "bootup-time", "weight": 0 }, { "group": "diagnostics", "id": "mainthread-work-breakdown", "weight": 0 }, { "group": "diagnostics", "id": "font-display", "weight": 0 }, { "group": "budgets", "id": "performance-budget", "weight": 0 }, { "group": "budgets", "id": "timing-budget", "weight": 0 }, { "group": "diagnostics", "id": "resource-summary", "weight": 0 }, { "group": "diagnostics", "id": "third-party-summary", "weight": 0 }, { "group": "diagnostics", "id": "third-party-facades", "weight": 0 }, { "group": "diagnostics", "id": "largest-contentful-paint-element", "weight": 0 }, { "group": "diagnostics", "id": "layout-shift-elements", "weight": 0 }, { "group": "diagnostics", "id": "uses-passive-event-listeners", "weight": 0 }, { "group": "diagnostics", "id": "no-document-write", "weight": 0 }, { "group": "diagnostics", "id": "long-tasks", "weight": 0 }, { "group": "diagnostics", "id": "non-composited-animations", "weight": 0 }, { "group": "diagnostics", "id": "unsized-images", "weight": 0 }, { "id": "network-requests", "weight": 0 }, { "id": "network-rtt", "weight": 0 }, { "id": "network-server-latency", "weight": 0 }, { "id": "main-thread-tasks", "weight": 0 }, { "id": "diagnostics", "weight": 0 }, { "id": "metrics", "weight": 0 }, { "id": "screenshot-thumbnails", "weight": 0 }, { "id": "final-screenshot", "weight": 0 }, { "id": "script-treemap-data", "weight": 0 } ], "id": "performance", "score": 0.68, "title": "Performance" }, "pwa": { "auditRefs": [ { "group": "pwa-installable", "id": "installable-manifest", "weight": 2 }, { "group": "pwa-optimized", "id": "service-worker", "weight": 1 }, { "group": "pwa-optimized", "id": "redirects-http", "weight": 2 }, { "group": "pwa-optimized", "id": "splash-screen", "weight": 1 }, { "group": "pwa-optimized", "id": "themed-omnibox", "weight": 1 }, { "group": "pwa-optimized", "id": "content-width", "weight": 0 }, { "group": "pwa-optimized", "id": "viewport", "weight": 2 }, { "group": "pwa-optimized", "id": "apple-touch-icon", "weight": 1 }, { "group": "pwa-optimized", "id": "maskable-icon", "weight": 1 }, { "id": "pwa-cross-browser", "weight": 0 }, { "id": "pwa-page-transitions", "weight": 0 }, { "id": "pwa-each-page-has-url", "weight": 0 } ], "description": "These checks validate the aspects of a Progressive Web App. [Learn more](https://developers.google.com/web/progressive-web-apps/checklist).", "id": "pwa", "manualDescription": "These checks are required by the baseline [PWA Checklist](https://developers.google.com/web/progressive-web-apps/checklist) but are not automatically checked by Lighthouse. They do not affect your score but it's important that you verify them manually.", "score": 0.45, "title": "Progressive Web App" }, "seo": { "auditRefs": [ { "group": "seo-mobile", "id": "viewport", "weight": 1 }, { "group": "seo-content", "id": "document-title", "weight": 1 }, { "group": "seo-content", "id": "meta-description", "weight": 1 }, { "group": "seo-crawl", "id": "http-status-code", "weight": 1 }, { "group": "seo-content", "id": "link-text", "weight": 1 }, { "group": "seo-crawl", "id": "crawlable-anchors", "weight": 1 }, { "group": "seo-crawl", "id": "is-crawlable", "weight": 1 }, { "group": "seo-crawl", "id": "robots-txt", "weight": 1 }, { "group": "seo-content", "id": "image-alt", "weight": 1 }, { "group": "seo-content", "id": "hreflang", "weight": 1 }, { "group": "seo-content", "id": "canonical", "weight": 1 }, { "group": "seo-mobile", "id": "font-size", "weight": 0 }, { "group": "seo-content", "id": "plugins", "weight": 1 }, { "group": "seo-mobile", "id": "tap-targets", "weight": 0 }, { "id": "structured-data", "weight": 0 } ], "description": "These checks ensure that your page is optimized for search engine results ranking. There are additional factors Lighthouse does not check that may affect your search ranking. [Learn more](https://support.google.com/webmasters/answer/35769).", "id": "seo", "manualDescription": "Run these additional validators on your site to check additional SEO best practices.", "score": 0.83, "title": "SEO" } }, "categoryGroups": { "a11y-aria": { "description": "These are opportunities to improve the usage of ARIA in your application which may enhance the experience for users of assistive technology, like a screen reader.", "title": "ARIA" }, "a11y-audio-video": { "description": "These are opportunities to provide alternative content for audio and video. This may improve the experience for users with hearing or vision impairments.", "title": "Audio and video" }, "a11y-best-practices": { "description": "These items highlight common accessibility best practices.", "title": "Best practices" }, "a11y-color-contrast": { "description": "These are opportunities to improve the legibility of your content.", "title": "Contrast" }, "a11y-language": { "description": "These are opportunities to improve the interpretation of your content by users in different locales.", "title": "Internationalization and localization" }, "a11y-names-labels": { "description": "These are opportunities to improve the semantics of the controls in your application. This may enhance the experience for users of assistive technology, like a screen reader.", "title": "Names and labels" }, "a11y-navigation": { "description": "These are opportunities to improve keyboard navigation in your application.", "title": "Navigation" }, "a11y-tables-lists": { "description": "These are opportunities to improve the experience of reading tabular or list data using assistive technology, like a screen reader.", "title": "Tables and lists" }, "best-practices-browser-compat": { "title": "Browser Compatibility" }, "best-practices-general": { "title": "General" }, "best-practices-trust-safety": { "title": "Trust and Safety" }, "best-practices-ux": { "title": "User Experience" }, "budgets": { "description": "Performance budgets set standards for the performance of your site.", "title": "Budgets" }, "diagnostics": { "description": "More information about the performance of your application. These numbers don't [directly affect](https://web.dev/performance-scoring/) the Performance score.", "title": "Diagnostics" }, "load-opportunities": { "description": "These suggestions can help your page load faster. They don't [directly affect](https://web.dev/performance-scoring/) the Performance score.", "title": "Opportunities" }, "metrics": { "title": "Metrics" }, "pwa-installable": { "title": "Installable" }, "pwa-optimized": { "title": "PWA Optimized" }, "seo-content": { "description": "Format your HTML in a way that enables crawlers to better understand your app’s content.", "title": "Content Best Practices" }, "seo-crawl": { "description": "To appear in search results, crawlers need access to your app.", "title": "Crawling and Indexing" }, "seo-mobile": { "description": "Make sure your pages are mobile friendly so users don’t have to pinch or zoom in order to read the content pages. [Learn more](https://developers.google.com/search/mobile-sites/).", "title": "Mobile Friendly" } }, "configSettings": { "additionalTraceCategories": null, "auditMode": false, "blockedUrlPatterns": null, "budgets": null, "channel": "cli", "disableStorageReset": false, "emulatedUserAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4420.0 Safari/537.36 Chrome-Lighthouse", "extraHeaders": null, "formFactor": "desktop", "gatherMode": false, "locale": "en-US", "maxWaitForFcp": 30000, "maxWaitForLoad": 45000, "onlyAudits": [ "viewport" ], "onlyCategories": [ "performance", "pwa", "seo" ], "output": [ "json" ], "precomputedLanternData": null, "screenEmulation": { "deviceScaleFactor": 1, "disabled": false, "height": 940, "mobile": false, "width": 1350 }, "skipAudits": null, "throttling": { "cpuSlowdownMultiplier": 1, "downloadThroughputKbps": 0, "requestLatencyMs": 0, "rttMs": 40, "throughputKbps": 10240, "uploadThroughputKbps": 0 }, "throttlingMethod": "simulate" }, "environment": { "benchmarkIndex": 2102, "credits": { "axe-core": "4.2.3" }, "hostUserAgent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/92.0.4512.0 Safari/537.36", "networkUserAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4420.0 Safari/537.36 Chrome-Lighthouse" }, "fetchTime": "2021-07-20T14:03:36.147Z", "finalUrl": "https://dataforseo.com/", "lighthouseVersion": "8.1.0", "requestedUrl": "https://dataforseo.com/", "runWarnings": [], "userAgent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/92.0.4512.0 Safari/537.36" } ], "result_count": 1, "status_code": 20000, "status_message": "Ok.", "time": "21.2320 sec." } ], "tasks_count": 1, "tasks_error": 0, "time": "21.5977 sec.", "version": "0.1.20210713" }
Common questions
Do I need a separate key for every provider?
Use your OpenAny API key for standard API access. Read it from OPENANY_API_KEY in your environment and keep it out of prompts, source code and logs.
Are these providers interchangeable?
No. Each offering has its own inputs, pricing and response contract. Selecting a catalog offering does not establish automatic routing or fallback. Confirm the service contract before calling.
How is this API billed?
API-key calls use your shared balance at the selected implementation's published rate. Check the billing unit and request-specific pricing rules before making a paid call. Recorded usage determines the final charge under that contract.
Where do the price and contract come from?
The selected implementation publishes its provider, request contract, revision and billing rules through OpenAny's public API catalog. A revision number identifies a contract version, not a price update date. A price update timestamp is not supplied; do not treat a page date as one.
How do OpenAny Balance and x402 differ?
OpenAny Balance uses an API key and one shared balance. Card, USDC and x402 top-ups, card auto top-up and USDC subscriptions fund that balance; available routes appear on the Credits page. Direct x402 is a separate pay-per-request flow, available only on listings that show it and requiring an authorized payment client.
Does Playground send a paid request?
Yes. After you sign in, Run sends a real API request using an active OpenAny API key. Charges follow the published API contract and use your shared balance. Selecting an implementation, editing inputs and viewing sample responses do not send requests.
Use DataForSEO — On Page / Lighthouse / Live / Json with your agent
Inspect endpoint contracts and confirm availability and pricing before a paid call.