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:
| Field | Type | Description |
|---|---|---|
user_agent | string, required | The request's User-Agent (also accepted as ua). |
path | string | The page requested: a path or a full URL (also accepted as url). Defaults to /. |
ts | number or string | When 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