Call it
curl https://api.peume.com/v1/call/google-run-lighthouse-audit \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"url": "your url"
}
}'const res = await fetch("https://api.peume.com/v1/call/google-run-lighthouse-audit", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"url": "your url"
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/google-run-lighthouse-audit",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"url": "your url"
}
},
)
print(res.json()["output"])Answer: {"id": "run_…", "status": "completed", "cost_usd": …, "output": {…}}. Long jobs answer 202 with a run id to read later. From an AI agent, connect the MCP server and ask for this by name: google-run-lighthouse-audit.
Parameters
urlRequiredstringPage URL to fetch, including the scheme.
for_mobilebooleanApplies mobile emulation (default false)
categoriesarrayCategories of Lighthouse audits (values: seo, performance, best_practices, accessibility)
auditsarrayLighthouse audits
versionstringLighthouse version
language_namestringLighthouse language name (default English)
language_codestringLighthouse language code (default en)
custom_user_agentstringCustom user agent
browser_screen_widthintegerBrowser screen width
browser_screen_heightintegerBrowser screen height
browser_screen_scale_factornumberBrowser screen scale factor
browser_network_throttling_methodstringBrowser network throttling method
browser_cpu_throttling_multipliernumberBrowser CPU throttling multiplier
browser_network_throttlingstringBrowser network throttling (values: no_throttling, fast_4g, slow_4g, regular_3g, pc)
