> For the complete documentation index, see [llms.txt](https://agpt.co/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://agpt.co/docs/integrations/block-integrations/map.md).

# Firecrawl Map

Blocks for mapping website structure and discovering all links using Firecrawl.

## Firecrawl Map Website

### What it is

Firecrawl maps a website to extract all the links.

### How it works

This block uses Firecrawl's mapping API to discover all links on a website without extracting full content. It quickly scans the site structure and returns a comprehensive list of URLs found.

The block is useful for understanding site architecture before performing targeted scraping or for building site maps. Results include both the raw list of links and structured results with titles and descriptions.

### Inputs

| Input | Description            | Type | Required |
| ----- | ---------------------- | ---- | -------- |
| url   | The website url to map | str  | Yes      |

### Outputs

| Output  | Description                                             | Type                   |
| ------- | ------------------------------------------------------- | ---------------------- |
| error   | Error message if the map failed                         | str                    |
| links   | List of URLs found on the website                       | List\[str]             |
| results | List of search results with url, title, and description | List\[Dict\[str, Any]] |

### Possible use case

**Site Audit**: Map all pages on a website to identify broken links, orphan pages, or SEO issues.

**Crawl Planning**: Discover site structure before deciding which pages to scrape in detail.

**Content Discovery**: Find all blog posts, product pages, or documentation entries on a site.

***


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://agpt.co/docs/integrations/block-integrations/map.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
