# 探索網站上的 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
{}
```
