YepAPI

Command Palette

Search for a command to run...

POST/v1/seo/onpage/lighthouse

Lighthouse API

Full Google Lighthouse audit via API — performance, accessibility, best practices, and SEO scores with actionable diagnostics. From $0.05/call.

Trigger a Google Lighthouse audit for any URL and get back performance, accessibility, best practices, and SEO scores along with detailed diagnostics. No browser needed — fully server-side.

Try it live

Fill in the fields and hit Run to see a real response.

POST/v1/seo/onpage/lighthouse
Response
Example response — hit "Send Request" to see a live result
{
  "ok": true,
  "data": {
    "url": "https://example.com",
    "scores": {
      "performance": 92,
      "accessibility": 98,
      "bestPractices": 95,
      "seo": 100
    },
    "coreWebVitals": {
      "lcp": 1.8,
      "fid": 12,
      "cls": 0.05
    },
    "diagnostics": [
      {
        "id": "render-blocking-resources",
        "title": "Eliminate render-blocking resources",
        "score": 0.7
      }
    ]
  }
}

Features

Performance, accessibility, best practices, and SEO scores

Each audit returns the four Lighthouse category scores (e.g. performance 92, seo 100) as numbers, so you can track and threshold each dimension in code.

Core Web Vitals (LCP, FID, CLS) measurements

The coreWebVitals object returns LCP, FID, and CLS values directly, the exact field metrics Google uses for ranking — no manual parsing of a report needed.

Detailed audit diagnostics and recommendations

The diagnostics array lists individual checks like render-blocking resources with their own scores, so your tool can surface the specific fixes that move the numbers.

Server-side execution — no browser required

Lighthouse runs fully on YepAPI's infrastructure, so you trigger audits from a serverless function or cron job without spinning up headless Chrome yourself.

Mobile and desktop device emulation

Audits can run under mobile or desktop emulation, letting you measure the mobile experience Google indexes against your desktop baseline.

Use cases

Performance Monitoring

Schedule Lighthouse audits across your site to track Core Web Vitals and catch performance regressions before they impact rankings.

Accessibility Compliance

Automate accessibility checks across all pages to ensure WCAG compliance and identify issues programmatically.

Quick start

Copy this snippet and start making calls.

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://example.com"
  }),
});
const data = await res.json();
console.log(data);

The Lighthouse API for developers — performance, accessibility & Core Web Vitals scores, server-side

The Lighthouse API runs a full Google Lighthouse audit for any URL on YepAPI's servers and returns performance, accessibility, best-practices, and SEO scores plus Core Web Vitals and diagnostics. You get the audit without running headless Chrome anywhere yourself.

It is the performance pillar of YepAPI's on-page suite. Use it alongside the On-Page Instant and Content Parsing endpoints — one key — to cover speed, structure, and content quality from the same integration.

What is a Lighthouse API?

A Lighthouse API runs Google's open-source Lighthouse audit programmatically and returns the results as data. For a URL you get a scores object with performance, accessibility, bestPractices, and seo values, a coreWebVitals object with LCP, FID, and CLS, and a diagnostics array of individual checks. The key benefit is that it executes server-side — no headless browser to install, manage, or scale on your end. YepAPI serves it at /v1/seo/onpage/lighthouse: post a URL, optionally choose mobile or desktop emulation, and receive the full audit as JSON ready to threshold or chart.

Build your own performance monitoring tool

Build a CI gate that runs Lighthouse on a preview URL after each deploy and fails the build if the performance score drops below a threshold or LCP regresses. Schedule audits across your key pages to chart Core Web Vitals over time and catch slow creep before it hits rankings. The diagnostics array lets you show developers the specific culprits — render-blocking resources, unused JavaScript — rather than just a falling number. Because it is server-side, all of this runs from a cron job with no browser to maintain.

Lighthouse API pricing — $0.05/call

Each Lighthouse audit is a flat $0.05 — it is the heaviest on-page call because it fully renders the page, but there is no row add-on or subscription. Auditing 100 pages costs $5. Google's free PageSpeed API enforces heavy rate limits that break batch monitoring, and enterprise suites charge $0.15 per equivalent call; here you get reliable, scriptable Lighthouse runs at a nickel each.

Monitor Core Web Vitals at scale

Loop your priority URLs through the endpoint on a schedule, storing the coreWebVitals object each run to build LCP, FID, and CLS trend lines per page. Because the API emulates mobile, you measure the experience Google actually indexes. Alert when any vital crosses its "good" threshold so you fix regressions before they cost rankings — and use the diagnostics to point straight at the offending resource, not just the symptom.

Try the Lighthouse API free

Get $5 of free credit with no credit card — that funds around a hundred Lighthouse audits. Run it against a few of your pages, confirm the scores and Core Web Vitals line up with what you see in DevTools, and wire the server-side audit into your CI or cron before paying.

Start making API calls in 30 seconds

$5 free credit on signup. No credit card required. Pay per call.

What developers say

Switched from SerpAPI and cut our SERP costs by 80%. Same data quality, way simpler billing.

Marcus T.

SEO Platform Founder

One API key for AI models, SERP data, and web scraping. Saved us from managing 4 separate providers.

Priya S.

Full-Stack Developer

The $5 free credit let us prototype our entire rank tracking feature before committing. No other API does that.

Jake R.

Indie Hacker

Frequently asked questions

Trigger a Google Lighthouse audit for any URL and get back performance, accessibility, best practices, and SEO scores along with detailed diagnostics. No browser needed — fully server-side.

Each API call costs $0.05. No monthly minimums or subscriptions — you only pay for what you use.

Sign up for a free API key, then send a POST request to /v1/seo/onpage/lighthouse. Check the code example above for a ready-to-use snippet in JavaScript, cURL, or Python.

YepAPI bundles SEO, AI, and web scraping APIs under one key with no monthly minimums. You get lower per-call pricing, a unified dashboard, and one billing account instead of managing multiple providers.

Ready to integrate?

Get your API key and start making calls in 30 seconds. $5 free credit on signup — no credit card required.

More seo apis endpoints