DataForSEO
On Page Lighthouse
The OnPage Lighthouse API is based on Google’s open-source Lighthouse project for measuring the quality of web pages and web apps.
Usage based DataForSEOSEOdataforseo/on-page-lighthouseActive
Use this tool with your agent
Give this to your agent
Use my connected Agentik MCP server. I want to use the tool dataforseo/on-page-lighthouse (On Page Lighthouse). Call inspect_tool with {"tool_id": "dataforseo/on-page-lighthouse"} first and tell me the price before anything runs. Ask me for the inputs it needs; never invent values, IDs or file URLs. When I confirm, call run_tool with tool_id "dataforseo/on-page-lighthouse" and my inputs, follow it with get_run if it is still running, and give me the result and the price Agentik reports. If the tool is unavailable, say so and use discover_tools to propose an alternative.Show the prompt
Paste it into Claude, ChatGPT or Codex: your agent takes it from there, and shows the price before it runs.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
url | string | Yes | target URL required field target page should be specified with its absolute URL (including http:// or https://) example: https://dataforseo.com/ |
for_mobile | boolean | No | 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 |
categories | string[] | No | 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 categor |
audits | string[] | No | 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; u |
version | string | No | 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 |
language_name | string | No | 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: |
language_code | string | No | 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: |
browser_screen_width | integer | No | 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; |
browser_screen_height | integer | No | 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; |
browser_screen_scale_factor | number | No | 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; |
browser_network_throttling_method | string | No | 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 - |
browser_cpu_throttling_multiplier | number | No | 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 followi |
browser_network_throttling | string | No | 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, sl |
tag | string | No | 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 |
How your agent calls it
First inspect_tool for the current schema and price, then run_tool with the published example after confirming your inputs:
{
"tool_id": "dataforseo/on-page-lighthouse",
"input": {
"url": "https://example.com/",
"for_mobile": true
}
}Price and billing
- Price
- Usage based
- Model
- Usage based
- Detail
- Billed at the cost the provider reports for the call, never above $100. Your agent sees the maximum before running.
- The provider’s price, 0% markup.
- One prepaid balance for every provider; your agent sees the price before it runs.
- Pay for measured usage; unused reservations are released.