# 发现网站上的 URL。

**API:** Data API

**Endpoint:** `POST /v1/beta/firecrawl/map`

**Tags:** Firecrawl

列出从起始页面可到达的 URL，不抓取任何内容。`url` 和 `limit` 均为必填（limit 为 1 到 100000）。返回 `success`、请求 `id`，以及包含 `url` 和 `title` 的 `links[]`——注意这些是**带标题的对象**，不同于 `post_tavily_map` 返回的纯字符串。可先用它评估站点规模，再决定是否付费爬取，然后用 `post_firecrawl_scrape` 只抓取需要的内容。若想一次拿到内容与结构，请用 `post_firecrawl_crawl`。

### 计费参考

- 计量方式：按结果数量计量。
- 参考请求估算：0.001071 美元。
- 单位成本基准：0.001071 美元。
- 资源单位：`firecrawl_credit`。
- 参考客户倍率：1.0。不得对已结算的客户金额再次应用。
- 成本基准不构成最终客户价格，即使为零也不例外。

仅供参考的元数据，不是账户报价、保证价格或消费上限。资源额度不同于 Felo 额度。最终扣费以 Felo 计费记录为准。

## Base URL

- `https://openapi.felo.ai`

## Authentication

- `FeloBearerAuth` (http bearer, bearer format Felo API Key)
- `FeloApiKey` (apiKey in header `X-API-Key`)

## Request body

Required: **yes**

### application/json

Schema:

```json
{
  "additionalProperties": false,
  "properties": {
    "limit": {
      "maximum": 100000,
      "minimum": 1,
      "type": "integer"
    },
    "url": {
      "format": "https_url",
      "type": "string"
    }
  },
  "required": [
    "limit",
    "url"
  ],
  "type": "object"
}
```

Example:

```json
{
  "limit": 1,
  "url": "https://example.com"
}
```

## Responses

### 200 — Map 成功完成。

Headers:
- `X-Request-Id` (string) — 联系 Felo 支持时需提供的请求标识符。

**application/json**

Schema: object

```json
{
  "type": "object",
  "properties": {
    "success": {
      "type": "boolean",
      "description": "map 成功时为 true。"
    },
    "links": {
      "type": "array",
      "description": "发现的链接。",
      "items": {
        "type": "object",
        "properties": {
          "url": {
            "type": "string",
            "description": "发现的 URL。"
          },
          "title": {
            "type": "string",
            "description": "发现页面的标题（若有）。"
          }
        }
      }
    },
    "creditsUsed": {
      "type": "integer",
      "description": "消耗的 Firecrawl 额度（每个发现的链接 1 个）。"
    }
  }
}
```

### 400 — 无法处理该请求。请检查请求参数。

### 401 — 需要有效的 Felo API 密钥。

### 402 — 由于未满足计费要求，请求无法继续。

### 403 — 该账户无权执行此操作。

### 429 — 已达到请求或支出限额。

### 502 — 服务无法完成该请求。

### 503 — API 或计费服务暂时不可用。

### 504 — 服务在处理请求时超时。

### default — 错误响应；上游透传响应可能采用提供方格式

**application/json**

Schema:

```json
{}
```
