API
Start scans from CI, read scores and full reports, follow tracked sites, and send pages to search engines. A small REST API with JSON responses and one header for authentication.
Everything here is also described in an OpenAPI 3.1 file, which tools such as Postman, code generators and AI agents can read directly. To use analyser.dev from Claude, Cursor or VS Code instead, see the MCP server.
Quick start
- In the app, open Team settings → API keys and create a key. Free accounts get 1 key, Pro 2 and Business 10.
- Send it in the
X-API-Keyheader. Start a scan:
curl -X POST https://analyser.dev/api/v1/scans \
-H "X-API-Key: $ANALYSER_API_KEY" \
-H "Content-Type: application/json" \
-d '{"url": "https://example.com/pricing"}'The response contains data.scan.id. Poll GET /scans/{id} every few seconds until status is done (about a minute), then read scores or fetch the full report from /scans/{id}/report.
Basics
- Base URL:
https://analyser.dev/api/v1 - Authentication:
X-API-Key: ak_…. A key belongs to one team and has admin rights on it; revoke it any time in the app. Keep it in your CI’s secret store, not in code. - Responses are JSON wrapped in
{"data": …}. Errors come as{"error": {"message": "…"}}with a matching HTTP status. - Limits: API scans share your plan’s scan limits. Over the limit you get
429with aRetry-Afterheader anderror.codeofRATE_LIMITEDorUPGRADE_FOR_MORE. Re-scanning a URL scanned in the last few minutes returns that scan for free. - Scans check mobile and desktop by default.
scoresandmetricsare mobile (what Google indexes); desktop results are underdesktop. - Only public pages can be scanned: no private IPs, localhost or intranet hosts.
Example: fail a deploy when scores drop
Run after each deploy (GitHub Actions, GitLab CI, a shell step). It exits non-zero when performance or SEO falls below your thresholds, and prints a link to the report.
#!/usr/bin/env bash
# Fails when performance or SEO drops below the thresholds. Needs curl and jq.
set -euo pipefail
API=https://analyser.dev/api/v1
URL="https://example.com/"
MIN_PERF=80 MIN_SEO=90
id=$(curl -sf -X POST "$API/scans" -H "X-API-Key: $ANALYSER_API_KEY" \
-H "Content-Type: application/json" -d "{\"url\": \"$URL\"}" | jq -r .data.scan.id)
for i in $(seq 1 60); do
scan=$(curl -sf "$API/scans/$id" -H "X-API-Key: $ANALYSER_API_KEY" | jq .data.scan)
status=$(jq -r .status <<<"$scan")
[ "$status" = done ] && break
[ "$status" = failed ] && { echo "scan failed: $(jq -r .error <<<"$scan")"; exit 1; }
sleep 5
done
perf=$(jq .scores.performance <<<"$scan"); seo=$(jq .scores.seo <<<"$scan")
echo "performance $perf, seo $seo: https://analyser.dev/r/$id"
[ "$perf" -ge "$MIN_PERF" ] && [ "$seo" -ge "$MIN_SEO" ]Scans
Scan any public URL. A scan takes about a minute and checks mobile and desktop. Start one, poll it until status is done or failed, then read the scores or the full report.
POST/scans
Start a scan
Queues a scan of a public URL for your team. If the same URL was scanned in the last few minutes, that scan is returned (cached: true) and doesn't count against limits.
JSON body
urlrequired | string | e.g. https://example.com/pricing |
device | "both" | "mobile" | "desktop" | Default both. |
Returns: ScanResponse
curl -X POST https://analyser.dev/api/v1/scans \
-H "X-API-Key: $ANALYSER_API_KEY" \
-H "Content-Type: application/json" \
-d '{"url": "https://example.com/pricing"}'GET/scans/{id}
Get a scan
Status, scores and headline metrics. Poll every few seconds until status is done or failed.
Parameters
idrequired | path · string |
Returns: ScanResponse
curl https://analyser.dev/api/v1/scans/scn_y3t4kdcfz4oasqmcpjsj -H "X-API-Key: $ANALYSER_API_KEY"GET/scans/{id}/report
Get the full report
Every finding with its evidence and fix, per category, plus details such as the request waterfall, AI-crawler access and structured data. Returns 409 until the scan is done. Top-level keys include scores, metrics, findings (each with id, category, severity, title, message, fix and evidence), top_fixes, and per-category details under performance, seo and geo.
Parameters
idrequired | path · string |
Returns: an object
GET/teams/{teamId}/scans
List your team's scans
Parameters
teamIdrequired | path · string | From GET /teams. |
page_id | query · string | |
q | query · string | Filter by URL substring. |
before | query · string | For paging: created_at of the last scan you have. |
limit | query · integer | Default 50. |
Returns: array of Scan
Team
An API key belongs to one team and acts with admin rights on it.
GET/teams
Get your team
With an API key, returns the key's team: use its id in the paths below.
Returns: array of Team
curl https://analyser.dev/api/v1/teams -H "X-API-Key: $ANALYSER_API_KEY"Sites and tracked pages
Sites and tracked pages are on paid plans. Tracked pages are scanned on a schedule; you can also scan one now.
GET/teams/{teamId}/sites
List sites
Each site with its latest homepage scores, page count, open alerts and indexing setup.
Parameters
teamIdrequired | path · string | From GET /teams. |
Returns: array of Site
GET/teams/{teamId}/sites/{siteId}
Get a site
Parameters
teamIdrequired | path · string | From GET /teams. |
siteIdrequired | path · string |
Returns: an object
GET/teams/{teamId}/sites/{siteId}/pages
List tracked pages
Each page with its latest finished scan per device.
Parameters
teamIdrequired | path · string | From GET /teams. |
siteIdrequired | path · string |
Returns: array of Page
POST/teams/{teamId}/sites/{siteId}/pages
Track a page
Parameters
teamIdrequired | path · string | From GET /teams. |
siteIdrequired | path · string |
JSON body
urlrequired | string | Must be on the site's origin. |
frequency | "hourly" | "daily" | "weekly" | Plan-limited; default daily. |
devices | array | Default ["mobile","desktop"]. |
Returns: Page
POST/teams/{teamId}/sites/{siteId}/pages/{pageId}/scan
Scan a tracked page now
Counts against the same limits as other scans. Returns the queued scan(s).
Parameters
teamIdrequired | path · string | From GET /teams. |
siteIdrequired | path · string | |
pageIdrequired | path · string |
Returns: array of Scan
GET/teams/{teamId}/sites/{siteId}/pages/{pageId}/history
Score and metric history
Parameters
teamIdrequired | path · string | From GET /teams. |
siteIdrequired | path · string | |
pageIdrequired | path · string | |
device | query · "mobile" | "desktop" | Default mobile. |
days | query · integer | Up to your plan's history. Default 30. |
Returns: array of HistoryPoint
Alerts
GET/teams/{teamId}/alerts
List alerts
Parameters
teamIdrequired | path · string | From GET /teams. |
status | query · "open" | "resolved" | |
site_id | query · string | |
limit | query · integer | Default 100. |
Returns: array of Alert
Indexing
Send pages to search engines. IndexNow needs the site's key file verified; Search Console needs a linked property (both set up in the app).
POST/teams/{teamId}/sites/{siteId}/indexnow/submit
Submit URLs to IndexNow
Sends the given URLs (or, with no body, all tracked pages) to Bing, Yandex, Naver and Seznam.
Parameters
teamIdrequired | path · string | From GET /teams. |
siteIdrequired | path · string |
JSON body
urls | array | URLs on the site; optional. |
Returns: an object
POST/teams/{teamId}/sites/{siteId}/gsc/sitemaps
Resubmit the sitemap to Search Console
Parameters
teamIdrequired | path · string | From GET /teams. |
siteIdrequired | path · string |
JSON body
sitemap_url | string | Default: the sitemap auto-indexing found, else /sitemap.xml. |
Returns: an object
GET/teams/{teamId}/sites/{siteId}/indexing
Auto-indexing status
Daily sitemap watch, recent new and updated pages, and where they were submitted.
Parameters
teamIdrequired | path · string | From GET /teams. |
siteIdrequired | path · string |
Returns: an object
Objects
Scan
Fields
id | string | |
team_id | string | |
page_id | string | Set when the scan belongs to a tracked page. |
url | string | |
final_url | string | After redirects. |
device | "both" | "mobile" | "desktop" | |
status | "queued" | "running" | "done" | "failed" | |
stage | string | Progress while running, e.g. "lighthouse". |
error | string | |
shared | boolean | Whether the report is public at https://analyser.dev/r/{id}. |
scores | object | 0–100 per category; null when not scored. |
metrics | object | Lab metrics from the scan (mobile unless stated); field_* come from Chrome UX Report when available. |
desktop | object | For device "both": desktop performance, accessibility and metrics. |
fail_count | integer | |
warn_count | integer | |
created_at | string | |
finished_at | string |
ScanResponse
Fields
scan | Scan | |
view | "full" | "summary" | |
cached | boolean | A very recent scan of the same URL was reused. |
queue_position | integer |
Team
Fields
id | string | |
name | string | |
plan | "free" | "pro" | "business" |
Site
Fields
id | string | |
origin | string | |
name | string | |
verified_at | string | |
gsc_property | string | Linked Search Console property, or empty. |
indexnow_verified_at | string | |
page_count | integer | |
open_alerts | integer | |
latest_scores | object | 0–100 per category; null when not scored. |
last_scan_at | string |
Page
Fields
id | string | |
site_id | string | |
url | string | |
frequency | "hourly" | "daily" | "weekly" | |
devices | array | |
active | boolean | |
next_run_at | string |
HistoryPoint
Fields
scan_id | string | |
at | string | |
scores | object | 0–100 per category; null when not scored. |
metrics | object | Lab metrics from the scan (mobile unless stated); field_* come from Chrome UX Report when available. |
fail_count | integer |
Alert
Fields
id | string | |
site_id | string | |
page_id | string | |
kind | string | |
title | string | |
detail | string | |
status | "open" | "resolved" | |
opened_at | string | |
resolved_at | string |
Questions or something missing? Email support@analyser.dev.