# Lighthouse Audit for Mobile and Desktop Pages

**Use case:** 

Run a Lighthouse audit on your key pages for mobile and desktop. Get scores, Core Web Vitals and top fixes per URL. Edit the list to test your own site.

## Input

```json
{
  "urls": [
    "https://example.com",
    "https://www.wikipedia.org"
  ],
  "strategy": "both",
  "maxOpportunities": 5,
  "saveHtmlReport": false,
  "concurrency": 2,
  "pageTimeoutSeconds": 60
}
```

## Output

```json
{
  "url": {
    "label": "Final URL",
    "format": "string"
  },
  "strategy": {
    "label": "Device",
    "format": "string"
  },
  "status": {
    "label": "Status",
    "format": "string"
  },
  "performanceScore": {
    "label": "Performance score",
    "format": "integer"
  },
  "accessibilityScore": {
    "label": "Accessibility score",
    "format": "integer"
  },
  "bestPracticesScore": {
    "label": "Best practices score",
    "format": "integer"
  },
  "seoScore": {
    "label": "SEO score",
    "format": "integer"
  },
  "lcpMs": {
    "label": "Largest Contentful Paint (ms)",
    "format": "number"
  },
  "lcpRating": {
    "label": "LCP rating",
    "format": "string"
  },
  "cls": {
    "label": "Cumulative Layout Shift",
    "format": "number"
  },
  "clsRating": {
    "label": "CLS rating",
    "format": "string"
  },
  "tbtMs": {
    "label": "Total Blocking Time (ms)",
    "format": "number"
  },
  "tbtRating": {
    "label": "TBT rating",
    "format": "string"
  },
  "errorCode": {
    "label": "Error code",
    "format": "string"
  }
}
```

## About this Actor

This example demonstrates how to use [Lighthouse Audit API](https://apify.com/conserving_celerytop/lighthouse-audit-api.md) with a specific input configuration. Visit the [Actor detail page](https://apify.com/conserving_celerytop/lighthouse-audit-api.md) to learn more, explore other use cases, and run it yourself.


## How to integrate an Actor?

This Task's input is already configured above. Use it as-is rather than inventing a new one.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For full API examples (JavaScript, Python, CLI, MCP, OpenAPI), see this Task's Actor page: https://apify.com/conserving_celerytop/lighthouse-audit-api.md

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).
