Glasser
Glasser

数据提供商: DataForSEO

使用 DataForSEO 对某个页面的 URL 进行 Lighthouse 测试。

$0.0055 / 次调用在 60 秒内响应

根据 URL 按请求抓取一个网页,获取完整 Lighthouse JSON 报告:包含 Lighthouse 版本、重定向后的最终 URL、抓取时间和浏览器环境,以及执行的每项审计的 id、标题、描述、评分和详情表。选择移动端或桌面端配置,可将运行范围限定为指定分类或审计项,选择 Lighthouse 版本与语言,并设置网络和 CPU 节流。输入一个URL,即可生成一份报告;每次调用都会测试一个页面。每次调用发送一次请求,按供应商的价目表计费;空结果集会标记为无结果。

如何调用

第 1 步接入

首次使用时,将提示词粘贴到 Agent 对话中。Skill 会自动安装 CLI 并完成登录。无法使用 shell 的 Agent 可通过 MCP 接入。

接入
set up https://glasser.ai/SKILL.md

Show me how to use the DataForSEO endpoint /v3/on_page/lighthouse/live/json on Glasser.

第 2 步尝试一个具体任务

调查网站问题时,可以审阅与目标问题相关的爬取结果。

复制此提示词到你的 Agent,审阅与网站问题相关的爬取结果。

提示词
Use dataforseo:/v3/on_page/lighthouse/live/json on Glasser.
Find returned crawl findings relevant to the website problem I describe.

接口结构

json
{
  "type": "object",
  "$schema": "http://json-schema.org/draft-07/schema#",
  "required": [
    "url"
  ],
  "properties": {
    "tag": {
      "type": "string",
      "maxLength": 2048,
      "minLength": 1
    },
    "url": {
      "type": "string",
      "maxLength": 2048,
      "minLength": 1
    },
    "audits": {
      "type": "array",
      "items": {
        "type": "string",
        "maxLength": 2048,
        "minLength": 1
      },
      "maxItems": 100,
      "minItems": 1
    },
    "version": {
      "type": "string",
      "maxLength": 2048,
      "minLength": 1
    },
    "categories": {
      "type": "array",
      "items": {
        "type": "string",
        "maxLength": 2048,
        "minLength": 1
      },
      "maxItems": 100,
      "minItems": 1
    },
    "for_mobile": {
      "type": "string",
      "maxLength": 2048,
      "minLength": 1
    },
    "language_code": {
      "type": "string",
      "maxLength": 2048,
      "minLength": 1
    },
    "language_name": {
      "type": "string"
    },
    "custom_user_agent": {
      "type": "string",
      "maxLength": 2048,
      "minLength": 1
    },
    "browser_screen_width": {
      "type": "integer"
    },
    "browser_screen_height": {
      "type": "integer"
    },
    "browser_network_throttling": {
      "type": "string",
      "maxLength": 2048,
      "minLength": 1
    },
    "browser_screen_scale_factor": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "enum": [
            "Infinity",
            "-Infinity",
            "NaN"
          ],
          "type": "string"
        }
      ]
    },
    "browser_cpu_throttling_multiplier": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "enum": [
            "Infinity",
            "-Infinity",
            "NaN"
          ],
          "type": "string"
        }
      ]
    },
    "browser_network_throttling_method": {
      "type": "string",
      "maxLength": 2048,
      "minLength": 1
    }
  },
  "additionalProperties": false
}

计费说明

返回数据或无匹配有无匹配数据均按此价格收费。$0.0055
数据提供商错误数据提供商未能响应。$0.00
运行超时运行超过时间限制。$0.00
内部错误内部错误导致运行未能完成。$0.00
方法POST版本1数据提供商文档 ↗