# Expedia 评价 API (expedia.reviews)

- Canonical page: [https://everyinfra.com/expedia-api/reviews](https://everyinfra.com/expedia-api/reviews?utm_medium=ai_doc&utm_campaign=page_md)
- Endpoint: POST https://api.everyinfra.com/api/v1/social with {"platform": "expedia", "action": "reviews", "params": {...}}
- Price: $0.001389 per call ($1.39 per 1,000 requests); failed calls and empty results are not charged
- Returns: list, default 20, max 200 per call
- Mode: sync; add "mode": "async" for slow tasks

## Health

- Live health (24h percent, hourly and daily trends): https://api.everyinfra.com/api/v1/social/availability?platform=expedia&action=reviews

## Parameters

| name | type | required | default | description |
|---|---|---|---|---|
| url | not declared | yes | not declared | Expedia 或兼容 Hotels.com 的单个酒店页面链接，用于 profile 资料或 reviews 点评；不是搜索列表页。租车查询 URL 应放在 car_rental 的 keyword。 |
| reviews_from | not declared | no | not declared | reviews 的点评起始日期兼容输入，建议 YYYY-MM-DD；since 同时提供时优先 since。不是酒店入住日期。 |
| since | not declared | no | not declared | reviews 的点评时间下界，建议 YYYY-MM-DD，优先于 reviews_from；不用于限定酒店开业时间或租车日期。 |
| sort | enum: most_helpful / newest / relevance / top_rated | no | not declared | 排序方式因 action 而异：search 支持 distance、price_asc、price_desc、top_rated；reviews 支持 newest、relevance、top_rated、most_helpful。 |
| limit | integer (1–200) | no | 20 | 这次调用最多返回的条数，整数，1–200；不传按默认值，实际返回可能少于这个数。超过上限会在扣费前返回 422。 |

## Response fields (items in `results`)

| field | meaning |
|---|---|
| id | 该记录在原平台上的唯一标识。仅在同一平台内唯一，跨平台可能重复。 |
| text | 正文内容，已去除 HTML 标签，全文返回、不截断（个别平台的列表结果本身只有摘要，以该平台的字段说明为准）。 |
| title | 标题。平台无标题概念时（如纯文本帖）为 null。 |
| rating | 评分。**分制随平台而异**，同一行的 `rating_scale` 给出该平台满分 (多数是 5，Booking/豆瓣/爱奇艺/NAVER 是 10)。跨平台比较前必须先按 rating_scale 换算。直接比数字会得出反的结论。 |
| rating_scale | 上一列 `rating` 的满分。5 表示五星制、10 表示十分制。只在该行有 rating 时出现。 |
| rating_label | 评分的文字档位。 |
| posted_at | 发布时间，ISO 8601 格式、UTC 时区（如 2026-08-07T12:34:56+00:00）。平台只给非标准字符串时原样透传，解析前建议做容错。null 表示平台未公开。 |
| stay_date | 点评人入住的时间。 |
| author_name | 作者昵称（显示名）。 |
| trip_type | 出行类型（商务/休闲/家庭）。 |
| stay_duration | 住宿晚数。 |
| traveled_with | 同行人类型（伴侣/家人/朋友/独行）。 |
| verified | 是否为已验证入住的点评。未验证的可信度低。 |
| language | 内容语言代码（如 zh、en），由平台判定，可能不准。 |
| hotel_id | 酒店 ID。 |
| hotel_name | 酒店名称。 |
| hotel_url | 酒店页链接。 |
| hotel_rating | 住客点评均分。 |
| platform | 数据来源平台标识，与请求里的 platform 一致（如 xiaohongshu、tiktok）。 |
| liked | 点评者勾选的「喜欢」标签（如位置、干净程度）；没有时不出现这个字段。 |
| disliked | 点评者勾选的「不喜欢」标签；没有时不出现这个字段。 |
| image_urls | 图片链接数组，按平台展示顺序；没有图片时不出现这个字段。 |
| owner_response | 商家对这条评价的公开回复，含正文（text）、回复人（author_name）和回复时间（posted_at）；没有回复时不出现这个字段。 |

## Example

```bash
curl -X POST 'https://api.everyinfra.com/api/v1/social' \
  -H "Authorization: Bearer $EVERYINFRA_API_KEY" \
  -H 'Content-Type: application/json' \
  --data-raw '{
  "platform": "expedia",
  "action": "reviews",
  "params": {
    "url": "https://www.expedia.com/Tokyo-Hotels-Park-Hyatt-Tokyo.h20264.Hotel-Information"
  }
}'
```

```python
import os
import requests

response = requests.post(
    "https://api.everyinfra.com/api/v1/social",
    headers={"Authorization": f"Bearer {os.environ['EVERYINFRA_API_KEY']}"},
    json={
        "platform": "expedia",
        "action": "reviews",
        "params": {
            "url": "https://www.expedia.com/Tokyo-Hotels-Park-Hyatt-Tokyo.h20264.Hotel-Information",
        },
    },
    timeout=120,
)
print(response.status_code)
print(response.json())
```

## Response example

Real response to the example request above, captured 2026-10-24T18:28:34Z. `results` and `count` are real with personal information (names, handles, avatars, profile links, contact details) removed; the list keeps the first 2 of 20. `id`, `billing` and `quota` differ on every call, so only their shape is shown.

```text
{
  "id": "req_…",
  "platform": "expedia",
  "action": "reviews",
  "results": [
    {
      "id": "70294428",
      "text": "Nice little motel with great location.",
      "title": "Nice little motel.",
      "rating": 8,
      "rating_label": "Good",
      "posted_at": "2014-05-08T00:00:00+00:00",
      "author_name": "•••",
      "trip_type": "",
      "traveled_with": "Traveled with family",
      "verified": true,
      "language": "en_US",
      "hotel_id": "20264",
      "hotel_name": "Channel Inn",
      "hotel_url": "https://www.expedia.com/Tokyo-Hotels-Park-Hyatt-Tokyo.h20264.Hotel-Information",
      "hotel_rating": 6.6,
      "platform": "expedia",
      "rating_scale": 5
    },
    {
      "id": "70225987",
      "text": "Very smelly older gentalmen at front desk very bad attitude .",
      "title": "Poor condition",
      "rating": 2,
      "rating_label": "Terrible",
      "posted_at": "2014-05-06T00:00:00+00:00",
      "author_name": "•••",
      "trip_type": "",
      "traveled_with": "Traveled with partner",
      "verified": true,
      "language": "en_US",
      "hotel_id": "20264",
      "hotel_name": "Channel Inn",
      "hotel_url": "https://www.expedia.com/Tokyo-Hotels-Park-Hyatt-Tokyo.h20264.Hotel-Information",
      "hotel_rating": 6.6,
      "platform": "expedia",
      "disliked": [
        "cleanliness",
        "staff & service",
        "property conditions & facilities"
      ],
      "rating_scale": 5
    }
  ],
  "count": 20,
  "billing": {
    "charged": …,
    "charged_usd": …,
    "balance_after_usd": …,
    …
  },
  "quota": { … }
}
```

## Also

- Capability catalog (no key): https://api.everyinfra.com/api/v1/social/catalog?platform=expedia
- OpenAPI: https://everyinfra.com/openapi.json · Agents guide: https://everyinfra.com/agents.md
