YepAPI
On-Page & Lighthouse

Lighthouse Audit

Run a Google Lighthouse audit — performance, accessibility, SEO, and Core Web Vitals.

POST/v1/seo/onpage/lighthouse
$0.05/call

Usage

const res = await fetch('https://api.yepapi.com/v1/seo/onpage/lighthouse', {
  method: 'POST',
  headers: {
    'x-api-key': 'YOUR_API_KEY',
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
    "url": "https://vercel.com"
  }),
});
const { data } = await res.json();
console.log(data);
curl -X POST https://api.yepapi.com/v1/seo/onpage/lighthouse \
  -H "x-api-key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"url":"https://vercel.com"}'

Request Body

ParameterTypeRequiredDescriptionDefault
urlstringYesFull URL to audit

Response

{
  "ok": true,
  "data": {
    "accessibilityScore": 0.96,
    "bestPracticesScore": 0.96,
    "cumulativeLayoutShift": 0.0,
    "firstContentfulPaint": 379.582,
    "largestContentfulPaint": 739.582,
    "performanceScore": 1.0,
    "seoScore": 1.0,
    "speedIndex": 517.72,
    "totalBlockingTime": 0.0,
    "url": ""
  }
}

Response Fields

FieldTypeDescription
okbooleanWhether the request succeeded
data.performanceScorenumberLighthouse performance score (0-1)
data.accessibilityScorenumberLighthouse accessibility score (0-1)
data.bestPracticesScorenumberLighthouse best practices score (0-1)
data.seoScorenumberLighthouse SEO score (0-1)
data.firstContentfulPaintnumberFirst Contentful Paint in milliseconds (FCP)
data.largestContentfulPaintnumberLargest Contentful Paint in milliseconds (LCP)
data.cumulativeLayoutShiftnumberCumulative Layout Shift score (CLS)
data.speedIndexnumberSpeed Index in milliseconds
data.totalBlockingTimenumberTotal Blocking Time in milliseconds (TBT)
data.urlstringThe URL that was audited
Under the Hood

Full Lighthouse audit. Scores and Core Web Vitals in one call.

On this page