---
title: "POST /lighthouse"
method: POST
path: "/lighthouse"
tags: ["lighthouse"]
---

# POST /lighthouse

`POST /lighthouse`

Run Lighthouse audit on a website

## Request body

- LighthouseDto
  - `url` string, required — Target URL
  - `device` 'desktop' | 'mobile' — Device type to emulate. Defaults to desktop.
  - `followRedirect` boolean — Whether to follow redirects when checking site status
  - `proxyCountry` string — Proxy country code to route the request
  - `parameters` string[] — Extra Lighthouse CLI parameters

## Response `200`

Successfully ran Lighthouse audit

- LighthouseResponseDto
  - `timestamp` number, required — Timestamp of the request in milliseconds
  - `apiStatus` 'success' | 'failure', required — API status message
  - `apiCode` number, required — API status code
  - `meta` LighthouseMetaDto, required
    - `url` string, required — Target URL
    - `device` 'desktop' | 'mobile', required — Device type used
    - `followRedirect` boolean, required — Whether redirects were followed
    - `redirectedURL` string, required — Final URL after redirection (if any)
    - `proxyCountry` string — Proxy country used, if any
    - `test` TestMetaDto, required
      - `id` string, required — Unique test identifier
  - `data` string, required — URL to the Lighthouse report

## Other responses

- `400` — Bad request (e.g. invalid URL or parameters)
- `500` — Internal server error while running Lighthouse audit

---

[API](https://skmtc.net/geekflare/apis/geekflare-api.md) · [All operations](https://skmtc.net/geekflare/apis/geekflare-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/geekflare/geekflare-api/versions/936993afc936/schema)
