/v1/maps endpoint you can get all the URLs on a website. This is useful for content discovery, site structure analysis (e.g., SEO), or deciding which URLs you want to scrape next.
- Get all URLs on a website (including sitemaps and discovered links)
- Use special patterns to include/exclude paths (e.g.
/blog/**) - Paginate large responses with
cursor(up to 10MB per response) - Limit volume with
top_n
Quick reference for AI agents
Quick reference for AI agents
- Endpoint:
POST https://api.olostep.com/v1/maps(auth:Authorization: Bearer <YOUR_API_KEY>) - Required:
url - Common options:
include_urls/exclude_urls(glob patterns such as/blog/**),top_n,search_query,include_subdomain,cursor - Returns:
id,urls,urls_count,cursor(present when more URLs remain) - Sync or async: Sync — URLs are in the response (up to about 120 s on complex sites). To paginate, send the same request again with the returned
cursoruntil it is absent. - Get results later:
GET /v1/maps/{map_id} - SDK / CLI:
client.maps.create(url=...)(Python) ·client.maps.create({ url })(Node) ·olostep map <url> - Use instead: you need page content, not just URLs → Crawl, or map first and send the URLs to Batches
Installation
Usage
Send a POST request with the websiteurl. Optionally pass include_urls, exclude_urls (glob patterns), and top_n.
cursor parameter which can be used for pagination and getting the subsequent URLs. For more details refer to the API Reference
This endpoint is particularly useful when you need to:
- Discover all content pages on a website
- Analyze site structure and hierarchy
- Prepare URLs for batch processing
- Decide which specific URLs to scrape
include_urls and exclude_urls.
Example
Let’s say that from www.brex.com you want to extract all the urls that have the paths after/product/ e.g https://www.brex.com/product/api/no-code but also include www.brex.com/product.
You can use the following code:
Conclusion
The maps endpoint is a powerful tool for content discovery and site analysis. It provides a comprehensive list of URLs on a website, enabling you to extract content from specific pages or analyze the site structure. This endpoint is particularly useful for SEO professionals, content marketers, AI agents who need to analyze website content or structure.Storage
Stored files for a map are kept for 7 days by default. Pass astorage object on POST /v1/maps to keep them longer, or indefinitely. The setting covers the map result and the pages scraped while discovering URLs.
Omitting
storage, or sending storage without expires_in, uses 7d. Both the create response and GET /v1/maps/{map_id} include the value in effect:
cURL
400: