/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
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: