Skip to main content
POST
/
api
/
v2
/
map
Map API - Discover URLs on a website
curl --request POST \
  --url https://api.llmlayer.dev/api/v2/map \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "url": "https://example.com",
  "ignoreSitemap": false,
  "includeSubdomains": false,
  "search": "blog",
  "limit": 5000,
  "timeout": 15000
}
'
{
"links": [
{
"url": "<string>",
"title": "<string>"
}
],
"statusCode": 123,
"cost": 123
}

Authorizations

Authorization
string
header
required

Bearer token authentication using your LLMLayer API key. Include in Authorization header as: Bearer YOUR_LLMLAYER_API_KEY

Body

application/json
url
string<uri>
required

Seed URL to start mapping from

Example:

"https://example.com"

ignoreSitemap
boolean
default:false

If true, ignores sitemap.xml and discovers URLs by crawling

includeSubdomains
boolean
default:false

If true, includes URLs from subdomains

search
string | null

Filter discovered URLs by search string

Example:

"blog"

limit
integer
default:5000

Maximum number of URLs to discover

timeout
integer | null
default:15000

Timeout in milliseconds

Response

List of discovered URLs with titles

List of discovered URLs with titles

statusCode
integer
required

HTTP status code (200 for success)

cost
number | null

Cost in USD ($0.0002 flat fee per map request)