# 為一組 URL 擷取完整頁面內容。

**API:** Data API

**Endpoint:** `POST /v1/beta/exa/contents`

**Tags:** Exa

取得你已有 URL 的頁面文字與中繼資料。`ids` 為必填，取自 `post_exa_search` 的 `id` 值——這些值就是一般 URL，因此任何 URL 都可用。可切換 `text`、`highlights`、`summary`、`subpages` 與 `livecrawl`。傳回包含 `id`、`title`、`url`、`author` 與 `text` 的 `results[]`，以及一個**依 URL 提供 `status` 與 `source` 的 `statuses[]` 陣列**——請讀取它，因為無法擷取的 URL 會在此回報，而不會拋出例外。快取結果會立即傳回；未命中時會退回即時擷取。若要處理整個網站而非一組 URL，請使用 `post_firecrawl_crawl`。

### 計費參考

- 計量方式：依回報的回應成本計量。
- 參考請求估算：0.002 美元。
- 參考客戶倍率：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
{
  "type": "object",
  "properties": {
    "ids": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "要取得內容的 URL（或 Exa 結果 ID）。",
      "example": [
        "https://example.com/article"
      ]
    },
    "text": {
      "type": "boolean",
      "description": "傳回完整頁面文字。"
    },
    "highlights": {
      "type": "boolean",
      "description": "傳回醒目的相關片段。"
    },
    "summary": {
      "type": "boolean",
      "description": "傳回頁面由 AI 產生的摘要。"
    },
    "subpages": {
      "type": "integer",
      "description": "同時取得的關聯子頁面數量。"
    },
    "livecrawl": {
      "type": "string",
      "enum": [
        "always",
        "fallback",
        "never"
      ],
      "description": "新鮮度策略：一律即時爬取、快取未命中時回退為即時爬取，或永不即時爬取。"
    },
    "stream": {
      "default": false,
      "enum": [
        false
      ],
      "type": "boolean"
    }
  },
  "required": [
    "ids"
  ]
}
```

## Responses

### 200 — 內容擷取成功。

Headers:
- `X-Request-Id` (string) — 聯絡 Felo 支援時需提供的請求識別碼。

**application/json**

Schema: object

```json
{
  "type": "object",
  "properties": {
    "requestId": {
      "type": "string"
    },
    "results": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "title": {
            "type": "string"
          },
          "url": {
            "type": "string"
          },
          "publishedDate": {
            "type": "string"
          },
          "author": {
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "text": {
            "type": "string"
          },
          "highlights": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "summary": {
            "type": "string"
          }
        }
      }
    }
  }
}
```

### 400 — 無法處理該要求。請檢查請求參數。

### 401 — 需要有效的 Felo API 金鑰。

### 402 — 由於未符合計費要求，要求無法繼續。

### 403 — 該帳戶無權執行此操作。

### 429 — 已達到要求或支出上限。

### 502 — 服務無法完成該要求。

### 503 — API 或計費服務暫時無法使用。

### 504 — 服務在處理要求時逾時。

### default — 錯誤回應；上游透傳回應可能採用供應商格式

**application/json**

Schema:

```json
{}
```
