Introducing /map
The easiest way to go from a single url to a map of the entire website. This is extremely useful for:- When you need to prompt the end-user to choose which links to scrape
- Need to quickly know the links on a website
- Need to scrape pages of a website that are related to a specific topic (use the
searchparameter) - Only need to scrape specific pages of a website
Try it in the Playground
Test mapping in the interactive playground — no code required.
Mapping
/map endpoint
Used to map a URL and get urls of the website. This returns most links present on the website. URLs are primarily discovered from the website’s sitemap, supplemented with SERP (search engine) results and previously crawled pages to improve coverage. You can control sitemap behavior with thesitemap parameter.
Installation
Usage
Each map request consumes 1 credit per call, regardless of the number of URLs returned. For example, setting
limit to 100,000 still uses 1 credit.Response
SDKs will return the data object directly. cURL will return the payload exactly as shown below.Map with search
Map withsearch param allows you to search for specific urls inside a website.
cURL
Location and Language
Specify country and preferred languages to get relevant content based on your target location and language preferences, similar to the scrape endpoint.How it works
When you specify the location settings, Firecrawl will use an appropriate proxy if available and emulate the corresponding language and timezone settings. By default, the location is set to ‘US’ if not specified.Usage
To use the location and language settings, include thelocation object in your request body with the following properties:
country: ISO 3166-1 alpha-2 country code (e.g., ‘US’, ‘AU’, ‘DE’, ‘JP’). Defaults to ‘US’.languages: An array of preferred languages and locales for the request in order of priority. Defaults to the language of the specified location.
Considerations
This endpoint prioritizes speed, so it may not capture all website links. It primarily relies on the website’s sitemap, supplemented by cached crawl data and search engine results. For a more thorough and up-to-date list of URLs, consider using the /crawl endpoint instead.Are you an AI agent that needs a Firecrawl API key? See firecrawl.dev/agent-onboarding/SKILL.md for automated onboarding instructions.

