curl --request POST \
--url https://api.spidra.io/api/map \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"url": "https://docs.python.org/3/",
"search": "asyncio",
"limit": 20
}
'{
"status": "success",
"links": [
{
"url": "https://docs.python.org/3/library/asyncio.html",
"title": "asyncio"
},
{
"url": "https://docs.python.org/3/library/asyncio-threading.html",
"title": "asyncio and free-threaded Python"
},
{
"url": "https://docs.python.org/3/howto/a-conceptual-overview-of-asyncio.html",
"title": "A conceptual overview of asyncio"
},
"..."
],
"total": 21,
"scanned": 595,
"sources": {
"sitemap": 7,
"pages": 588
},
"creditsUsed": 1,
"durationMs": 9552
}Map
Map
Lists a website’s page URLs without scraping them, optionally ranked by how well they match a search. It answers in the same request, so there’s no job to poll. Guide: Map.
URLs come from the site’s sitemaps and from the links on its pages. Without search, current pages come before older versions and translations. With search, only matching URLs come back, best matches first. A map that takes longer than 45 seconds fails with 502.
Every call is recorded in your map logs.
Credits: 1 per call. A map that finds no URLs, or fails, costs nothing.
Rate limits: 60 requests a minute.
POST
/
map
curl --request POST \
--url https://api.spidra.io/api/map \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"url": "https://docs.python.org/3/",
"search": "asyncio",
"limit": 20
}
'{
"status": "success",
"links": [
{
"url": "https://docs.python.org/3/library/asyncio.html",
"title": "asyncio"
},
{
"url": "https://docs.python.org/3/library/asyncio-threading.html",
"title": "asyncio and free-threaded Python"
},
{
"url": "https://docs.python.org/3/howto/a-conceptual-overview-of-asyncio.html",
"title": "A conceptual overview of asyncio"
},
"..."
],
"total": 21,
"scanned": 595,
"sources": {
"sitemap": 7,
"pages": 588
},
"creditsUsed": 1,
"durationMs": 9552
}Authorizations
BearerAuthApiKeyAuth
Body
application/json
Response
The map finished. links is empty, with a message saying why, when no URLs were found. You aren't charged then.
Was this page helpful?

