Skip to content
All docs

Map API

Discover page URLs with POST /v1/map.

POST /v1/map discovers URLs from a site's declared sitemaps and page links. It does not scrape every discovered page. The endpoint requires a key with the map scope.

curl https://api.url2llm.com/v1/map \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json' \
  -d '{"url":"https://example.com","limit":100}'

Request body

Field Type Default Purpose
url string Required Starting page.
limit integer 5000 Maximum URLs, from 1 to 50000.
include_subdomains boolean false Include matching subdomains.
ignore_sitemap boolean false Skip sitemap discovery.
search string Unset Keep URLs containing this substring.

The response contains data.links, an array of objects with url, optional source, and optional title. source identifies where the URL was found, such as a sitemap or page link.

Map is synchronous and billed per call, regardless of the number of URLs returned. Read quote and credits for the current price, then use Scrape API on selected URLs.