Google Lighthouse API
Automate website performance auditing using the Google Lighthouse. Retrieve Core Web Vitals, Accessibility scores, and SEO metrics to monitor site health and improve search rankings.
Key Features
- 99.9% Uptime
- Headless Chrome
- Anti-Bot Bypass
Response Example
{
"timestamp": 1768929689876,
"apiStatus": "success",
"apiCode": 200,
"meta": {
"url": "https://geekflare.com/ai/",
"device": "desktop",
"followRedirect": false,
"test": {
"id": "4975d22f-8a9c-42c3-a5a9-4d9b7072f5ab"
}
},
"data": "https://cdn.geekflare.com/tests/lighthouse/32pFjXVUY06VIAUw.json"
}
Integrate Lighthouse API into your workflow
Python
NodeJS
Go
PHP
Java
Ruby
cURL
import requests
url = "https://api.geekflare.com/lighthouse"
payload = {"url": "https://example.com", "device": "desktop"}
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)
Why Geekflare Lighthouse API
Core Web Vitals
Get field data for LCP, CLS, and INP to ensure you pass Google's ranking signals.
Multi-Device Simulation
Run audits on Mobile or Desktop viewports.
Comprehensive Audits
Run checks across Performance, Accessibility, Best Practices, SEO, and PWA categories.
Multi-Format Reporting
Get structured JSON to integrate metrics into your applications, or generate a ready-to-view HTML report.
No Infra Headaches
Running Lighthouse requires managing headless browsers and heavy server resources.
Customizable Audit Scope
Check specific categories or individual audits to get precise data without parsing the full report.
Lighthouse API pricing
- Free: $0/mo, 500 Credits/mo, Audit ~10 pages, 1 Request per second
- Starter: $9/mo, 5K Credits/mo, Audit ~500 pages, 5 Requests per second
- Growth (Most Popular): $49/mo, 100K Credits/mo, Audit ~10K pages, 25 Requests per second
- Business: $249/mo, 1M Credits/mo, Audit ~100K pages, 50 Requests per second
View Full Pricing
Get Free API Key
Other Geekflare API services
- Site Load Time API: Get a quick TTFB and load time check without the full Lighthouse overhead.
- Broken Link Checker API: Ensure the pages you are auditing don't have dead links hurting your SEO.
- Screenshot API: Capture high-quality PNG, JPG, or WebP screenshots of any website programmatically.
- Meta Scraping API: Extract title, description, images, Schema.org and Open Graph metadata from any URL.
- URL Redirection Checker API: Trace the full path of URL redirects and analyze HTTP status codes.
Frequently Asked Questions
What is the difference between this and running Lighthouse in Chrome?
Running it in Chrome is manual and depends on your local computer's speed and internet. Our API runs it on cloud servers, allowing you to automate thousands of checks with comparable environments.Can I choose between Mobile and Desktop?
Yes. You can specify thedeviceparameter to switch between Mobile and Desktop (default) emulation to see how scores differ.How can a pagespeed API help improve website performance?
A pagespeed api provides programmatic access to detailed metrics like Core Web Vitals and load times. By functioning as a comprehensive website audit api, it allows developers to pinpoint performance bottlenecks such as unoptimized images or render-blocking scripts and implement data-driven fixes before they impact the end user.Can Lighthouse API be used for website automation tasks?
Yes, our Lighthouse API is highly effective for website automation. You can integrate it directly into your CI/CD pipelines to automatically trigger audits on every code commit. This ensures performance, accessibility, and SEO standards are strictly enforced alongside your regular API Testing and deployment.What are the benefits of using a performance testing API for websites?
Using a performance testing api delivers consistent data at scale without manual intervention. It enables development and QA teams to run repeatable audits across hundreds of URLs simultaneously, catching regressions early and ensuring your application consistently meets industry benchmarks.How does a website monitoring API help track performance issues?
Continuous website monitoring allows teams to track historical data and spot performance regressions over time. By scheduling regular Lighthouse API calls, you can establish baseline metrics, track trends, and trigger alerts the moment a recent code change degrades your site's speed.Is Lighthouse API suitable for large-scale website monitoring?
Yes, Geekflare infrastructure is built for scale. Whether you are tracking a handful of landing pages or running daily website monitoring across thousands of URLs, our API supports concurrent processing to deliver Lighthouse insights reliably.How much does a Lighthouse audit cost?
Because Lighthouse audits are resource-intensive tasks, they consume 10 credits per request.Why are my scores different from PageSpeed Insights?
Scores can vary based on network conditions and server load at the exact moment of testing.
Ready to audit your website?
Join thousands of site owners using Geekflare API to automate Lighthouse audits.