工具市場
網頁內容
呼叫測試Lighthouse Live Json
LighthouseLiveJson
- 價格
- 0.005000 USDT / 請求
- 狀態
- 可呼叫
- 官方參考價
- 0.005000 USDT / 請求
- 呼叫方式
- REST · MCP
呼叫測試
點擊執行後才會提交呼叫,請先檢查參數和費用上限。
執行後,在這裡查看狀態、費用和回傳內容。
API 文件
非同步建立成功僅表示取得任務回執。需將回執 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