# 为一组 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
{}
```
