工具市场
网页内容
调用测试Lighthouse Live Json
LighthouseLiveJson
- 价格
- 0.005000 USDT / 请求
- 状态
- 可调用
- 官方参考价
- 0.005000 USDT / 请求
- 调用方式
- REST · MCP
调用测试
点击运行后才会提交调用,请先检查参数和费用上限。
运行后,在这里查看状态、费用和返回内容。
接口文档
异步创建成功仅表示取得任务回执。需将回执 ID 传给对应平台的状态或结果接口,确认上游任务是否完成。
curl https://gw.asale.ai/v1/tool-runs \
-H 'Authorization: Bearer <ASALE_API_KEY>' \
-H 'Content-Type: application/json' \
-H 'Idempotency-Key: <UNIQUE_REQUEST_ID>' \
-d '{
"tool": "on.page.lighthouse.live.json",
"input": {
"body": [
{}
]
},
"max_cost_micros": 5000
}'curl https://gw.asale.ai/v1/tool-runs/<RUN_ID> -H 'Authorization: Bearer <ASALE_API_KEY>'| 参数 | 必填 | 类型 |
|---|---|---|
| body | 否 | array |
完整输入规范
{
"$defs": {
"OnPageLighthouseLiveJsonRequestInfo": {
"properties": {
"audits": {
"anyOf": [
{
"description": "Lighthouse auditsoptional fieldaudits 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 fie",
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
]
},
"browser_cpu_throttling_multiplier": {
"anyOf": [
{
"description": "browser CPU throttling multiplierrequired 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;",
"type": "number"
},
{
"type": "null"
}
]
},
"browser_network_throttling": {
"anyOf": [
{
"description": "browser network throttlingrequired 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;",
"type": "string"
},
{
"type": "null"
}
]
},
"browser_network_throttling_method": {
"anyOf": [
{
"description": "browser network throttling methodoptional fielddefines 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;",
"type": "string"
},
{
"type": "null"
}
]
},
"browser_screen_height": {
"anyOf": [
{
"description": "browser screen heightoptional fieldset 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;",
"type": "integer"
},
{
"type": "null"
}
]
},
"browser_screen_scale_factor": {
"anyOf": [
{
"description": "browser screen scale factoroptional fieldset the device pixel ratio of the browser used for the Lighthouse audit;can be specified within the following range: 0.5–3;",
"type": "number"
},
{
"type": "null"
}
]
},
"browser_screen_width": {
"anyOf": [
{
"description": "browser screen widthoptional fieldset 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",
"type": "integer"
},
{
"type": "null"
}
]
},
"categories": {
"anyOf": [
{
"description": "categories of Lighthouse auditsoptional fieldeach 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 auditsuse this field to get data for specific categories you indicate herepossible values:seo, performance, best_practices, accessibility",
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
]
},
"custom_user_agent": {
"anyOf": [
{
"description": "custom user agentoptional fieldspecify the custom user agent used by the browser when running the Lighthouse audit;can be specified with up to 254 characters;",
"type": "string"
},
{
"type": "null"
}
]
},
"for_mobile": {
"anyOf": [
{
"description": "applies mobile emulationoptional fieldif set to true, Lighthouse will use mobile device and screen emulation to test the page against mobile environmentif set to false, the results will be provided for desktopdefault value: false",
"type": "boolean"
},
{
"type": "null"
}
]
},
"language_code": {
"anyOf": [
{
"description": "lighthouse language codeoptional fieldyou can receive the list of available languages of the search engine with their language_code by making a separate request to value:en",
"type": "string"
},
{
"type": "null"
}
]
},
"language_name": {
"anyOf": [
{
"description": "lighthouse language nameoptional fieldyou can receive the list of available languages of the search engine with their language_name by making a separate request to value:English",
"type": "string"
},
{
"type": "null"
}
]
},
"tag": {
"anyOf": [
{
"description": "user-defined task identifieroptional fieldthe character limit is 255you can use this parameter to identify the task and match it with the resultyou will find the specified tag value in the data object of the response",
"type": "string"
},
{
"type": "null"
}
]
},
"url": {
"description": "target URLrequired fieldtarget page should be specified with its absolute URL (including or",
"type": "string"
},
"version": {
"anyOf": [
{
"description": "lighthouse versionoptional fieldyou can obtain the results specific to a certain Lighthouse version by specifying its numberthe list of available versions is available through the Lighthouse Versions endpoint",
"type": "string"
},
{
"type": "null"
}
]
}
},
"type": "object"
}
},
"additionalProperties": false,
"properties": {
"body": {
"items": {
"anyOf": [
{
"oneOf": [
{
"$ref": "#/$defs/OnPageLighthouseLiveJsonRequestInfo"
}
],
"type": "object"
},
{
"type": "null"
}
]
},
"type": "array"
}
},
"required": [],
"type": "object"
}价格
0.005000 USDT / 请求
显示起始价格。请先获取当前参数的报价;完成后按实际用量结算并退回差额。
测试会使用账户余额,并受所选密钥预算限制。费用上限仅约束本次 API 调用,不包含后续调用或上游周期任务。
价格版本 5
网页内容
Asale 将同一能力的通道按报价撮合,优先选择可用的低价通道。参考价取各通道已核实参考价的最高值。只有明确未执行的拒绝才可换通道;结果不确定时进入对账,避免重复收费。
供给通道: 1