Skip to content
Start in Cloud

Record AI fetch

POST
/api/sites/{id}/ingest/ai-fetch
curl --request POST \
--url https://hitkeep.com/api/sites/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/ingest/ai-fetch \
--header 'Content-Type: application/json' \
--cookie hk_token=<hk_token> \
--data '{ "bytes_served": 1, "content_type": "example", "hostname": "example", "path": "example", "response_ms": 1, "status_code": 1, "user_agent": "example" }'

Accepts a server-side AI crawler fetch record for a site. The user agent must match a known AI bot. Intended for edge or log-forwarded fetch analytics.

id
required
string format: uuid
Media type application/json
object
bytes_served
integer
content_type
string
hostname
string
path
required
string
response_ms
integer
status_code
required
integer
>= 100 <= 599
user_agent
required
string
Example generated
{
"bytes_served": 1,
"content_type": "example",
"hostname": "example",
"path": "example",
"response_ms": 1,
"status_code": 1,
"user_agent": "example"
}

Accepted