Map
Discover URLs on a site
Crawl a site's sitemap and links to enumerate every reachable URL.
# 1) Submit the map job -> returns { "jobId": "..." }
JOB_ID=$(curl -s -X POST https://api.anakin.io/v1/map \
-H "X-API-Key: $ANAKIN_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"url": "https://example.com",
"includeSubdomains": true,
"includeExternalLinks": true,
"limit": 100,
"depth": 2,
"limitPerLevel": 100,
"useBrowser": true
}' | jq -r '.jobId')
# 2) Poll until discovery finishes
for i in $(seq 1 60); do
RESP=$(curl -s https://api.anakin.io/v1/map/$JOB_ID -H "X-API-Key: $ANAKIN_API_KEY")
STATUS=$(echo "$RESP" | jq -r '.status')
[ "$STATUS" = "completed" ] || [ "$STATUS" = "failed" ] && break
sleep 2
done
echo "$RESP" | jq '.links'POST /v1/map → poll GET /v1/map/{id}