Docs / API reference

POST/v1/map

Map

Discover all URLs on a website by combining sitemap.xml parsing, robots.txt discovery, and link crawling. Returns a flat list of URLs with metadata.

Execution model

Live request

Runtime depends on endpoint, target, pagination, rendering mode, and active plan limits.

Credit weight

Live catalog

Current weights are managed from the Data API Weights admin table and shown on pricing before use.

Parameters

NameTypeRequirementDescription
urlstringRequiredThe website URL to map.
searchstringOptionalFilter URLs matching this search string.
limitnumberOptionalMaximum number of URLs to return.
include_subdomainsbooleanOptionalInclude URLs from subdomains.
use_sitemapbooleanOptionalParse sitemap.xml for URL discovery.
respect_robots_txtbooleanOptionalHonor robots exclusions during rendered discovery.

Response fields

FieldTypeDescription
statusstring"success" or "empty" (with empty_reason) — a zero-link map is reported as empty, and a failed root fetch as failed, rather than a silent empty success.
links[].sourcestringHow each URL was discovered: "sitemap", "robots", or "crawl".

Code example

curl -X POST "https://api.datablue.dev/v1/map" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "url": "https://docs.python.org",
  "limit": 200,
  "include_subdomains": false,
  "respect_robots_txt": true
}'

System responses

200 OK

Request processed successfully.

401 UNAUTHORIZED

Missing or invalid API key.

429 RATE LIMIT

System capacity exceeded.

500 SYSTEM FAILURE

Internal core exception.

Example response
{
  "success": true,
  "total": 187,
  "status": "success",
  "links": [
    {
      "url": "https://docs.python.org/3/",
      "title": "Python 3 Documentation",
      "lastmod": "2026-03-28",
      "source": "sitemap"
    },
    {
      "url": "https://docs.python.org/3/tutorial/index.html",
      "title": "The Python Tutorial",
      "source": "sitemap"
    },
    {
      "url": "https://docs.python.org/3/library/index.html",
      "title": "The Python Standard Library",
      "source": "crawl"
    },
    {
      "url": "https://docs.python.org/3/reference/index.html",
      "title": "The Python Language Reference",
      "source": "robots"
    }
  ]
}