API & MCP
Run the full EU readiness scan — claims, ad policy, conversion UX and tracking/consent — from your own tools or from an AI assistant. Same engine, rules and citations as the web app.
1. Get a key
- API and MCP access is part of Pro.
- Open Account → API & MCP keys and create a key. It starts with
pa_and is shown once. - Send it as
Authorization: Bearer pa_…on every request.
2. Connect an MCP client
Server URL: https://healthpager.com/mcp — transport: Streamable HTTP. Replace pa_YOUR_API_KEY with your key.
Claude Code
claude mcp add --transport http healthpager https://healthpager.com/mcp \
--header "Authorization: Bearer pa_YOUR_API_KEY"Cursor
{
"mcpServers": {
"healthpager": {
"url": "https://healthpager.com/mcp",
"headers": {
"Authorization": "Bearer pa_YOUR_API_KEY"
}
}
}
}VS Code
{
"servers": {
"healthpager": {
"type": "http",
"url": "https://healthpager.com/mcp",
"headers": {
"Authorization": "Bearer pa_YOUR_API_KEY"
}
}
}
}Claude Desktop and clients without header support
Use the mcp-remote bridge (needs Node.js):
{
"mcpServers": {
"healthpager": {
"command": "npx",
"args": [
"-y",
"mcp-remote",
"https://healthpager.com/mcp",
"--header",
"Authorization:${AUTH_HEADER}"
],
"env": {
"AUTH_HEADER": "Bearer pa_YOUR_API_KEY"
}
}
}
}Try it
Ask your assistant:
“Scan https://example-shop.eu/products/sleep-ring for the NL market and Meta ads, wait for the result, and list the critical findings with fixes.”
Raw test with curl
curl -s https://healthpager.com/mcp \
-H "Authorization: Bearer pa_YOUR_API_KEY" \
-H "Content-Type: application/json" \
-H "Accept: application/json, text/event-stream" \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}'MCP tools
| Tool | What it does |
|---|---|
| start_scan | Queue a scan of one public page (url, market EU/NL/DE, channel google/meta/both/organic). Returns an audit id. |
| get_scan | Status, overall and pillar scores, finding counts, delta. Use wait_seconds (≤150) to wait for the result. |
| get_findings | Findings with rule code, severity, evidence, fix, rewritten copy and legal/policy source. Filter by pillar and min_severity. |
| list_scans | Your most recent scans. |
| rescan | Scan the same page again and get the score delta. |
| list_rules | The versioned rules a scan applies for a market + channel, with citations. |
Typical flow: start_scan → get_scan (wait_seconds: 120) → get_findings.
REST API
Base URL https://healthpager.com. Machine-readable spec: /v1/openapi.json (OpenAPI 3.1).
Start a scan
curl -s -X POST https://healthpager.com/v1/audits \
-H "Authorization: Bearer pa_YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"url":"https://example-shop.eu/sleep-ring","market":"NL","channel":"meta"}'
# → {"id":"<audit-id>", ...}Poll until done, then read findings
curl -s https://healthpager.com/v1/audits/<audit-id> -H "Authorization: Bearer pa_YOUR_API_KEY" # status, scores
curl -s https://healthpager.com/v1/audits/<audit-id>/findings -H "Authorization: Bearer pa_YOUR_API_KEY" # findings
curl -s -o report.pdf https://healthpager.com/v1/audits/<audit-id>/pdf -H "Authorization: Bearer pa_YOUR_API_KEY" # 202 = generating, retry| Method | Path | Purpose |
|---|---|---|
| POST | /v1/audits | Start a scan |
| GET | /v1/audits/{id} | Status + scores |
| GET | /v1/audits/{id}/findings | Findings |
| POST | /v1/audits/{id}/rescan | Re-scan with delta |
| GET | /v1/audits/{id}/history | Score history |
| GET | /v1/audits/{id}/pdf | PDF report |
| GET | /v1/audits/{id}/screenshots/{kind} | desktop | mobile | consent |
| GET | /v1/me/audits | List scans |
| GET | /v1/rules?market=&channel= | Rules in scope |
Limits & errors
- Scans via API/MCP count toward your monthly Pro scan limit.
- About 120 requests per minute per key; scan creation is limited further.
- Errors are JSON:
{"error": "…"}. 401 invalid key · 402 needs Pro · 403 endpoint not available with a key · 404 not found · 429 slow down or limit reached. - In MCP, tool errors come back as a normal result with isError: true and a readable message.
Security
- A key acts as your account for scans and reports. It cannot manage billing, delete the account or create other keys.
- We store only a hash of the key. Lost keys cannot be shown again — revoke and create a new one.
- Do not put keys in client-side code or public repositories.
- We scan public pages only. Results are hosted in the EU.
This is an automated readiness and risk report. It is not legal advice and not regulatory sign-off (no MDR, FDA, notified-body, or Keuringsraad approval). No attorney-client or notified-body relationship is created. Verify every finding with a qualified professional before you act on it.