GET Get Map Result

Poll for map job status and retrieve discovered URLs

GEThttps://api.anakin.io/v1/map/{id}

Retrieve the status and results of a map job. Use this to poll for completion after submitting a map request.


Path Parameters

ParameterTypeDescription
id requiredstringThe job ID returned from the submit endpoint

Response

200 OK
{
  "id": "job_abc123xyz",
  "status": "completed",
  "url": "https://example.com",
  "links": [
    "https://example.com/about",
    "https://example.com/blog",
    "https://example.com/blog/post-1",
    "https://example.com/contact",
    "https://example.com/pricing"
  ],
  "totalLinks": 5,
  "externalLinks": [
    "https://partner-site.com/page"
  ],
  "totalExternalLinks": 1,
  "createdAt": "2024-01-01T12:00:00Z",
  "completedAt": "2024-01-01T12:00:03Z",
  "durationMs": 3000
}

Response Fields

FieldTypeDescription
statusstringpending, processing, completed, or failed
urlstringThe original URL submitted for discovery
linksstring[]Discovered same-domain URLs (includes subdomains when includeSubdomains was set). Only present when completed.
totalLinksnumberTotal count of same-domain URLs discovered.
externalLinksstring[]Discovered URLs on other domains (subdomains count as external unless includeSubdomains was set). Present when includeExternalLinks was set — but internal links fill limit first, so external links are only returned when internal links didn't already reach the cap.
totalExternalLinksnumberTotal count of external URLs discovered.
errorstringError message. Only present when failed.
durationMsnumberProcessing time in milliseconds.

Code Examples

curl -X GET https://api.anakin.io/v1/map/job_abc123xyz \
  -H "X-API-Key: your_api_key"

For polling patterns, see the Polling Jobs reference.