Lighthouse API

SEO API documentation for REST and MCP, generated from the implemented API contract.

API selector
Website & On-Page SEO

API overview

Page Lighthouse Laboratory Evidence. Bounded Lighthouse laboratory facts with explicit missing evidence. One submit and at most six fixed reads. Missing values are not zero. Prices and publication are unapproved. Owner-only historical results are retained seven days.

Try this API
Endpoint
/api/skill-api/v1/skills/page-lighthouse/run
MCP method
nexscope_page_lighthouse

Authentication

All run endpoints require a user API key. Send it as a bearer token in the Authorization header.

Authorization: Bearer nk_xxxxxxxxxxxxxxxxx
Missing or invalid API keys return an authentication error. Manage keys from .
POST/api/skill-api/v1/skills/page-lighthouse/run

Run an API

Send a JSON request body using the parameters described below.

Slugpage-lighthouse
HeadersAuthorization: Bearer nk_...
Content-Type: application/json
Request bodyAPI-specific JSON object.
Response bodyComplete HTTP envelope, including code and data.

Status codes

CodeDescription
200API executed successfully. Body is the direct response payload.
400Request JSON or required API parameters are invalid.
401API key is missing, invalid, or cannot be matched to a user.
5xxAPI execution or upstream service failed.

Example request

curl -X POST https://api.nexscope.ai/api/skill-api/v1/skills/page-lighthouse/run \
  -H "Authorization: Bearer nk_xxxxxxxxxxxxxxxxx" \
  -H "Content-Type: application/json" \
  -d '{   "device": "DESKTOP",   "url": "example" }'
All categories/ Website & On-Page SEO
POST/api/skill-api/v1/skills/page-lighthouse/run

Run this API

Send a JSON request to execute this API and receive the documented response payload.

Endpoint

MethodPOST
Path/api/skill-api/v1/skills/page-lighthouse/run
AuthBearer API key
Content-Typeapplication/json

Request body

NameTypeRequiredDescription
devicestringoptional
Device value used by this API operation.
Allowed: DESKTOP, MOBILE
Default: DESKTOP
urlstringrequired
Url value used by this API operation.
Maximum length: 2048

Request example

{
  "device": "DESKTOP",
  "url": "example"
}

Response body

NameTypeRequiredDescription
codeintegerrequired
0 is a successful envelope; inspect data.status separately.
Allowed: 0, 42008, 42009
coststringrequired
Elapsed processing milliseconds; not price. -1 for non-web context.
dataobjectrequired
Data value used by this API operation.
data.callIdstring | nulloptional
Call id value used by this API operation.
data.completedAtinteger | nulloptional
Completed at value used by this API operation.
data.coverageobjectoptional
Coverage value used by this API operation.
data.coverage.missingarrayoptional
Missing value used by this API operation.
data.coverage.missing[]objectrequired
Item in data coverage missing.
data.coverage.missing[].fieldstringoptional
Field value used by this API operation.
data.coverage.missing[].reasonstringoptional
Reason value used by this API operation.
data.coverage.statusstringoptional
Status value used by this API operation.
data.requestedAtinteger | nulloptional
Requested at value used by this API operation.
data.resultobject | nullrequired
Result value used by this API operation.
data.result.coverageobjectrequired
Coverage value used by this API operation.
data.result.coverage.invalidItemCountintegerrequired
Invalid item count value used by this API operation.
Minimum: 0
data.result.coverage.limitintegerrequired
Limit value used by this API operation.
Constant: 1
data.result.coverage.maxCrawlPagesinteger | nullrequired
Max crawl pages value used by this API operation.
Minimum: 0
data.result.coverage.offsetintegerrequired
Offset value used by this API operation.
Constant: 0
data.result.coverage.pagesCrawledinteger | nullrequired
Pages crawled value used by this API operation.
Minimum: 0
data.result.coverage.providerTotalinteger | nullrequired
Provider total value used by this API operation.
Minimum: 0
data.result.coverage.returnedCountintegerrequired
Returned count value used by this API operation.
Minimum: 0
Maximum: 1
data.result.coverage.sampledbooleanrequired
Sampled value used by this API operation.
Constant: true
data.result.coverage.stopReasonstring | nullrequired
Stop reason value used by this API operation.
data.result.coverage.truncatedbooleanrequired
Truncated value used by this API operation.
data.result.itemsarrayrequired
Items value used by this API operation.
Maximum items: 1
data.result.items[]objectrequired
Item in data result items.
data.result.items[].categoriesobjectrequired
Categories value used by this API operation.
data.result.items[].categories.accessibilitynumber | nullrequired
Accessibility value used by this API operation.
Minimum: 0
Maximum: 1
data.result.items[].categories.bestPracticesnumber | nullrequired
Best practices value used by this API operation.
Minimum: 0
Maximum: 1
data.result.items[].categories.performancenumber | nullrequired
Performance value used by this API operation.
Minimum: 0
Maximum: 1
data.result.items[].categories.seonumber | nullrequired
Seo value used by this API operation.
Minimum: 0
Maximum: 1
data.result.items[].devicestringrequired
Device value used by this API operation.
Allowed: DESKTOP, MOBILE
data.result.items[].fetchTimeinteger | nullrequired
Fetch time value used by this API operation.
Minimum: 0
data.result.items[].finalUrlstring | nullrequired
Final url value used by this API operation.
data.result.items[].lighthouseVersionstring | nullrequired
Lighthouse version value used by this API operation.
data.result.items[].metricsobjectrequired
Metrics value used by this API operation.
data.result.items[].metrics.cumulativeLayoutShiftnumber | nullrequired
Cumulative layout shift value used by this API operation.
Minimum: 0
data.result.items[].metrics.firstContentfulPaintMsnumber | nullrequired
First contentful paint ms value used by this API operation.
Minimum: 0
data.result.items[].metrics.largestContentfulPaintMsnumber | nullrequired
Largest contentful paint ms value used by this API operation.
Minimum: 0
data.result.items[].metrics.speedIndexMsnumber | nullrequired
Speed index ms value used by this API operation.
Minimum: 0
data.result.items[].metrics.totalBlockingTimeMsnumber | nullrequired
Total blocking time ms value used by this API operation.
Minimum: 0
data.result.items[].requestedUrlstringrequired
Requested url value used by this API operation.
data.result.missingFieldsarrayrequired
Missing fields value used by this API operation.
data.result.missingFields[]objectrequired
Item in data result missingFields.
data.result.missingFields[].fieldstringrequired
Field value used by this API operation.
data.result.missingFields[].reasonstringrequired
Reason value used by this API operation.
Allowed: UPSTREAM_FIELD_MISSING, UPSTREAM_FIELD_INVALID, DUPLICATE_UPSTREAM_ITEM, UPSTREAM_ITEM_MISSING
data.result.sourceobjectrequired
Source value used by this API operation.
data.result.source.candidateIdstringrequired
Candidate id value used by this API operation.
Constant: MD-PW-15
data.result.source.collectedAtinteger | nullrequired
Collected at value used by this API operation.
Minimum: 0
data.result.source.observationKindstringrequired
Observation kind value used by this API operation.
Constant: LAB_RUN
data.result.source.productstringrequired
Product value used by this API operation.
Constant: on_page
data.result.source.providerstringrequired
Provider value used by this API operation.
Constant: DATAFORSEO
data.result.source.queriedAtintegerrequired
Queried at value used by this API operation.
Minimum: 0
data.result.source.sourceCallIdstring | nullrequired
Source call id value used by this API operation.
data.result.source.sourcePlanVersionstring | nullrequired
Source plan version value used by this API operation.
data.result.source.sourceSchemaVersionstring | nullrequired
Source schema version value used by this API operation.
data.result.warningsarrayrequired
Warnings value used by this API operation.
data.result.warnings[]stringrequired
Item in data result warnings.
data.schemaVersionstring | nulloptional
Schema version value used by this API operation.
data.sourcestring | nulloptional
Source value used by this API operation.
data.statusstringoptional
Status value used by this API operation.
Allowed: SUCCESS, PARTIAL, EMPTY, PROCESSING, UNKNOWN, FAILED
data.usageobjectoptional
Usage value used by this API operation.
data.usage.billingStatusstringoptional
Billing status value used by this API operation.
data.usage.chargedCreditsinteger | nulloptional
Charged credits value used by this API operation.
data.usage.providerCostStatusstringoptional
Provider cost status value used by this API operation.
data.usage.providerCostUsdstring | nulloptional
Provider cost usd value used by this API operation.
data.usage.providerRequestsintegeroptional
Provider requests value used by this API operation.
msgstring | nullrequired
Msg value used by this API operation.
timestringrequired
yyyy-MM-dd HH:mm:ss
traceIdstring | nullrequired
Trace id value used by this API operation.
tsstringrequired
Epoch milliseconds; global long serializer.

Response example

Example response envelope from the documented SEO API contract.

{
  "code": 0,
  "cost": "-1",
  "data": {
    "callId": "synthetic-call",
    "completedAt": null,
    "coverage": {
      "missing": [
        {
          "field": "synthetic",
          "reason": "UPSTREAM_FIELD_MISSING"
        }
      ],
      "status": "PARTIAL"
    },
    "requestedAt": 123,
    "result": {
      "coverage": {
        "invalidItemCount": 1,
        "limit": 1,
        "maxCrawlPages": 1,
        "offset": 1,
        "pagesCrawled": 9007199254740992,
        "providerTotal": 9007199254740992,
        "returnedCount": 1,
        "sampled": false,
        "stopReason": "synthetic",
        "truncated": false
      },
      "items": [
        {
          "categories": {
            "accessibility": 1.25,
            "bestPractices": 1.25,
            "performance": 1.25,
            "seo": 1.25
          },
          "device": "DESKTOP",
          "fetchTime": 9007199254740992,
          "finalUrl": "synthetic",
          "lighthouseVersion": "synthetic",
          "metrics": {
            "cumulativeLayoutShift": 1.25,
            "firstContentfulPaintMs": 1.25,
            "largestContentfulPaintMs": 1.25,
            "speedIndexMs": 1.25,
            "totalBlockingTimeMs": 1.25
          },
          "requestedUrl": "synthetic"
        }
      ],
      "missingFields": [
        {
          "field": "synthetic",
          "reason": "synthetic"
        }
      ],
      "source": {
        "candidateId": "synthetic",
        "collectedAt": 9007199254740992,
        "observationKind": "synthetic",
        "product": "synthetic",
        "provider": "synthetic",
        "queriedAt": 9007199254740992,
        "sourceCallId": "synthetic",
        "sourcePlanVersion": "synthetic",
        "sourceSchemaVersion": "synthetic"
      },
      "warnings": [
        "synthetic"
      ]
    },
    "schemaVersion": "synthetic",
    "source": "synthetic",
    "status": "PARTIAL",
    "usage": {
      "billingStatus": "UNAPPROVED",
      "chargedCredits": 0,
      "providerCostStatus": "UNAPPROVED",
      "providerCostUsd": null,
      "providerRequests": 0
    }
  },
  "msg": null,
  "time": "2026-01-01 00:00:00",
  "traceId": null,
  "ts": "9007199254740993"
}

Responses

CodeDescription
200API executed successfully. Body is the direct response payload.
400Request JSON or required API parameters are invalid.
401API key is missing, invalid, or cannot be matched to a user.
5xxAPI execution or upstream service failed.

Data source, freshness, and limitations

Source, freshness, coverage, rate limits, and estimation notes are not specified in this API definition unless they appear in the request or response field documentation above. Do not assume official marketplace data or real-time freshness when it is not explicitly documented.

MCP

Use the MCP endpoint when an agent needs to discover and call API tools with JSON-RPC.

GET /api/skill-api/v1/mcp
POST /api/skill-api/v1/mcp
Authorization: Bearer nk_xxxxxxxxxxxxxxxxx
Content-Type: application/json

Call a tool

{
  "jsonrpc": "2.0",
  "id": "tool-call-1",
  "method": "tools/call",
  "params": {
    "name": "nexscope_page_lighthouse",
    "arguments": {
      "device": "DESKTOP",
      "url": "example"
    }
  }
}

Online test

Execute the current API with your API key and JSON payload.

Try it

Send a real request with the same contract shown in the reference.

Endpoint
/api/skill-api/v1/skills/page-lighthouse/run
Task result endpoint
https://api.nexscope.ai/api/skill-api/v1/skills/page-lighthouse/tasks/{taskId}
MCP method
nexscope_page_lighthouse
cURL
curl -X POST \
  https://api.nexscope.ai/api/skill-api/v1/skills/page-lighthouse/run \
  -H "Authorization: Bearer nk-..." \
  -H "Content-Type: application/json" \
  -d '{ "device": "DESKTOP", "url": "example" }'
Response
No response yet. Run the request to see the response here.
Task result

Results are checked automatically after Run API. You can also enter a task ID and check it manually; completed resources use Nexscope URLs and show actual charged credits.

Result response
No task result yet. Query the task to see the generated output here.