DataForSEO On Page / Lighthouse / Live / Json API
Get DataForSEO On Page / Lighthouse / Live / Json data via REST or OpenAny MCP—with pay-per-use pricing and no subscription. Powered by DataForSEO, configure supported query parameters and filters, and retrieve structured data including returned cost field, returned status code field, returned status message field, business payload, and identifier to search interfaces and source review, and integration reference.
- Selected price
- $0.005 / callPublished pricing
- Sellers / APIs
- 1 / 1
- Requests · 30d
- 0Selected implementation · last 30 days
- Success rate · 30d
- —No requests in this period
DataForSEO On Page / Lighthouse / Live / Json API
Prepare your request, then continue with your agent.
Pricing
$0.005 / call
Calculated from input parameters and actual returned quantities. Estimate the maximum cost before calling.
- Provider
- API
- Pricing
On this page
Overview
DataForSEO On Page / Lighthouse / Live / Json API
Retrieve on Page Lighthouse Live Json with the DataForSEO API. Provide JSON payload in body. Read the response using the field paths below, preserving identifiers and the declared value types when mapping results.
Quick Facts
| Fact | Value |
|---|---|
| Access | OpenAny REST |
| Authentication | OpenAny API key in the Authorization header |
| Core inputs | body: body |
| Selected implementation | dataforseo · DataForSEO — On Page / Lighthouse / Live / Json |
| Billing | Follow the selected implementation pricing, billing unit, quantity and charge rules |
What You Can Build
- Search interfaces and source review: Keep returned sources and query context together.
- Integration reference: Use the selected request format and keep source identifiers with the returned result.
Documented Response Fields
| Field | Meaning |
|---|---|
cost |
Returned cost field |
status_code |
Returned status code field |
status_message |
Returned status message field |
tasks[].data |
Business payload |
tasks[].id |
Identifier |
tasks[].result |
Returned result |
tasks[].cost |
Returned cost field |
tasks[].path |
Returned path field |
Quick Start
- Set OPENANY_API_KEY to your OpenAny API key.
- Review the JSON body and supported fields shown in the request template.
- Check the HTTP response and business result before reading optional fields.
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"
}
]'
Request and Response Examples
The response illustration is a schema template, not a captured business response. Replace request placeholders and read actual returned values for your target resource.
Published DataForSEO On Page / Lighthouse / Live / Json API implementation contract.
Pricing and Billing
The pricing area reflects the selected API implementation. Review its billing unit and any request-dependent rules before calling; a source service's public availability does not determine OpenAny billing.
Frequently Asked Questions
Related APIs
Playground
Run sends a real API request. Charges follow the published API contract.
Sellers
| Seller | Pricing | Requests · 30d | Performance | Access |
|---|---|---|---|---|
DataForSEOCurrent DataForSEO — On Page / Lighthouse / Live / Json · POST · View API reference | $0.005 / call | 0 | —successP50— |
- Pricing
- $0.005
Calculated from input parameters and actual returned quantities. Estimate the maximum cost before calling.
Statistics use persisted gateway logs from the last 30 days up to now, including today.
Success rate = successful requests / all requests;
P50 = median latency of successful requests.
Prices reflect the published API contract. Contract revision: 4. Price update time: not supplied.
API
- 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
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.
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
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.
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. |
Examples
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" }