Skip to content

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

  1. In the app, open Team settings → API keys and create a key. Free accounts get 1 key, Pro 2 and Business 10.
  2. Send it in the X-API-Key header. 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 429 with a Retry-After header and error.code of RATE_LIMITED or UPGRADE_FOR_MORE. Re-scanning a URL scanned in the last few minutes returns that scan for free.
  • Scans check mobile and desktop by default. scores and metrics are mobile (what Google indexes); desktop results are under desktop.
  • 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

urlrequiredstringe.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

idrequiredpath · 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

idrequiredpath · string

Returns: an object

GET/teams/{teamId}/scans

List your team's scans

Parameters

teamIdrequiredpath · stringFrom GET /teams.
page_idquery · string
qquery · stringFilter by URL substring.
beforequery · stringFor paging: created_at of the last scan you have.
limitquery · integerDefault 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

teamIdrequiredpath · stringFrom GET /teams.

Returns: array of Site

GET/teams/{teamId}/sites/{siteId}

Get a site

Parameters

teamIdrequiredpath · stringFrom GET /teams.
siteIdrequiredpath · string

Returns: an object

GET/teams/{teamId}/sites/{siteId}/pages

List tracked pages

Each page with its latest finished scan per device.

Parameters

teamIdrequiredpath · stringFrom GET /teams.
siteIdrequiredpath · string

Returns: array of Page

POST/teams/{teamId}/sites/{siteId}/pages

Track a page

Parameters

teamIdrequiredpath · stringFrom GET /teams.
siteIdrequiredpath · string

JSON body

urlrequiredstringMust be on the site's origin.
frequency"hourly" | "daily" | "weekly"Plan-limited; default daily.
devicesarrayDefault ["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

teamIdrequiredpath · stringFrom GET /teams.
siteIdrequiredpath · string
pageIdrequiredpath · string

Returns: array of Scan

GET/teams/{teamId}/sites/{siteId}/pages/{pageId}/history

Score and metric history

Parameters

teamIdrequiredpath · stringFrom GET /teams.
siteIdrequiredpath · string
pageIdrequiredpath · string
devicequery · "mobile" | "desktop"Default mobile.
daysquery · integerUp to your plan's history. Default 30.

Returns: array of HistoryPoint

Alerts

GET/teams/{teamId}/alerts

List alerts

Parameters

teamIdrequiredpath · stringFrom GET /teams.
statusquery · "open" | "resolved"
site_idquery · string
limitquery · integerDefault 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

teamIdrequiredpath · stringFrom GET /teams.
siteIdrequiredpath · string

JSON body

urlsarrayURLs on the site; optional.

Returns: an object

POST/teams/{teamId}/sites/{siteId}/gsc/sitemaps

Resubmit the sitemap to Search Console

Parameters

teamIdrequiredpath · stringFrom GET /teams.
siteIdrequiredpath · string

JSON body

sitemap_urlstringDefault: 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

teamIdrequiredpath · stringFrom GET /teams.
siteIdrequiredpath · string

Returns: an object

Objects

Scan

Fields

idstring
team_idstring
page_idstringSet when the scan belongs to a tracked page.
urlstring
final_urlstringAfter redirects.
device"both" | "mobile" | "desktop"
status"queued" | "running" | "done" | "failed"
stagestringProgress while running, e.g. "lighthouse".
errorstring
sharedbooleanWhether the report is public at https://analyser.dev/r/{id}.
scoresobject0–100 per category; null when not scored.
metricsobjectLab metrics from the scan (mobile unless stated); field_* come from Chrome UX Report when available.
desktopobjectFor device "both": desktop performance, accessibility and metrics.
fail_countinteger
warn_countinteger
created_atstring
finished_atstring

ScanResponse

Fields

scanScan
view"full" | "summary"
cachedbooleanA very recent scan of the same URL was reused.
queue_positioninteger

Team

Fields

idstring
namestring
plan"free" | "pro" | "business"

Site

Fields

idstring
originstring
namestring
verified_atstring
gsc_propertystringLinked Search Console property, or empty.
indexnow_verified_atstring
page_countinteger
open_alertsinteger
latest_scoresobject0–100 per category; null when not scored.
last_scan_atstring

Page

Fields

idstring
site_idstring
urlstring
frequency"hourly" | "daily" | "weekly"
devicesarray
activeboolean
next_run_atstring

HistoryPoint

Fields

scan_idstring
atstring
scoresobject0–100 per category; null when not scored.
metricsobjectLab metrics from the scan (mobile unless stated); field_* come from Chrome UX Report when available.
fail_countinteger

Alert

Fields

idstring
site_idstring
page_idstring
kindstring
titlestring
detailstring
status"open" | "resolved"
opened_atstring
resolved_atstring

Questions or something missing? Email support@analyser.dev.