inbound. page. audit
Audit a published page for performance and accessibility with Lighthouse.
2 credits. Per audit.
Example prompt
Send this to your AI app when Heelo is connected:
Run Lighthouse three times on my early-access landing page
Input fields
| Field | Type | Description |
|---|---|---|
page_urlRequired | string | URL of a page you published with inbound.page.publish |
runs | integer | How many Lighthouse runs (1-5) |
preset | string | desktop | mobile (mobile is Lighthouse's default form factor) |
Output fields
The fields in data when status is success.
| Field | Type |
|---|---|
page_url | string |
preset | string |
lighthouse_version | string |
runs | array of object |
median_performance | number |
median_accessibility | number |
both_at_least_90 | boolean |
answer | string |
Code
The call with the input fields that the tool needs. Set HEELO_API_KEY to your API key.
import os
import requests
response = requests.post(
"https://toolsprimitives.uk/v1/tools/inbound.page.audit/invoke",
headers={"Authorization": f"Bearer {os.environ['HEELO_API_KEY']}"},
json={"input": {
"page_url": "https://example.com",
}},
timeout=120,
)
response.raise_for_status()
print(response.json())// Node.js 18 or newer, in an ES module.
const response = await fetch("https://toolsprimitives.uk/v1/tools/inbound.page.audit/invoke", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.HEELO_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
input: {
"page_url": "https://example.com"
},
}),
signal: AbortSignal.timeout(120_000),
});
if (!response.ok) throw new Error(`HTTP ${response.status}`);
console.log(await response.json());