API reference

Crawler hits API

Report AI and search crawler requests from your server with POST /api/v1/crawl, one hit or up to 100 at a time: the fields, an example and the response.

POST https://supranalytics.app/api/v1/crawl

Records requests from AI and search crawlers. See AI & search crawlers for why and how.

Body

One hit, or an array of up to 100:

FieldTypeDescription
user_agentstring, requiredThe request's User-Agent (also accepted as ua).
pathstringThe page requested: a path or a full URL (also accepted as url). Defaults to /.
tsnumber or stringWhen it happened, within the last 7 days. Defaults to now.
curl -X POST https://supranalytics.app/api/v1/crawl \
  -H "Authorization: Bearer pk_YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '[{"user_agent": "Mozilla/5.0 (compatible; GPTBot/1.2)", "path": "/pricing"}, {"user_agent": "ChatGPT-User/1.0", "path": "/docs"}]'

Response

{ "ok": true, "accepted": 2, "ignored": 0 }

Unknown user agents and static files (scripts, styles, images, fonts, media, archives) count as ignored.

AI agent or LLM? Read this page as Markdown