# 流量与互动

**API:** Data API

**Endpoint:** `GET /v1/beta/similarweb/website/traffic-engagement`

**Tags:** Website Analytics

流量与互动。响应采用 SimilarWeb v5 信封结构（meta + data）。日期约束：start_date 至 end_date 的区间必须覆盖 1 至 120 个月度分桶。

### 计费参考

- 计量方式：套餐资源单位。
- 参考请求估算：0.075 美元。
- 单位成本基准：0.075 美元。
- 资源单位：`similarweb_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`)

## Parameters

| Name | In | Required | Type | Description |
| --- | --- | --- | --- | --- |
| `country` | query | no | string, enum: "ww", default: "ww" |  |
| `domain` | query | yes | string |  |
| `end_date` | query | yes | string |  |
| `granularity` | query | no | string, enum: "monthly", default: "monthly" |  |
| `main_domain_only` | query | no | boolean, default: true |  |
| `metrics` | query | yes | string |  |
| `mtd` | query | no | boolean |  |
| `start_date` | query | yes | string |  |
| `web_source` | query | no | string, enum: "desktop", "mobile_web", "total" |  |

## Responses

### 200 — SimilarWeb v5 信封结构（meta + data）。

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

**application/json**

Schema: object

```json
{
  "type": "object",
  "properties": {
    "meta": {
      "$ref": "#/components/schemas/ResponseE0D24A93E9A2_SimilarWebMeta"
    },
    "data": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "date": {
            "type": "string"
          },
          "visits": {
            "type": [
              "number",
              "null"
            ],
            "format": "double",
            "description": "网站访问次数的估计值"
          },
          "bounce_rate": {
            "type": [
              "number",
              "null"
            ],
            "format": "double",
            "description": "只浏览网站单个页面的访问占比"
          },
          "average_visit_duration": {
            "type": [
              "number",
              "null"
            ],
            "format": "double",
            "description": "网站平均停留时间（秒）"
          },
          "pages_per_visit": {
            "type": [
              "number",
              "null"
            ],
            "format": "double",
            "description": "每次访问的平均页面浏览数"
          },
          "page_views": {
            "type": [
              "number",
              "null"
            ],
            "format": "double",
            "description": "网站页面浏览量的估计值"
          },
          "unique_visitors": {
            "type": [
              "number",
              "null"
            ],
            "format": "double",
            "description": "网站独立访客数量的估计值（不跨设备去重）"
          },
          "new_users": {
            "type": [
              "number",
              "null"
            ],
            "format": "double",
            "description": "网站新用户数量的估计值"
          },
          "returning_users": {
            "type": [
              "number",
              "null"
            ],
            "format": "double",
            "description": "网站回访用户数量的估计值"
          }
        }
      }
    }
  }
}
```

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

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

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

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

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

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

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

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

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

**application/json**

Schema:

```json
{}
```

## Schema definitions

### ResponseE0D24A93E9A2_SimilarWebMeta

`#/components/schemas/ResponseE0D24A93E9A2_SimilarWebMeta`

```json
{
  "type": "object",
  "description": "SimilarWeb v5 响应信封元数据。",
  "properties": {
    "status": {
      "type": "string",
      "description": "上游状态；调用成功时为 'success'。",
      "example": "success"
    },
    "last_updated": {
      "type": "string",
      "description": "上游可用的最新数据点日期（YYYY-MM-DD）。",
      "example": "2026-06-30"
    },
    "request": {
      "type": "object",
      "description": "规范化的上游请求的完整回显（按接收到的参数）。"
    },
    "query": {
      "type": "object",
      "description": "适用时回显分页/排序参数（limit、offset、asc、sort）。"
    }
  },
  "required": [
    "status"
  ]
}
```
