# Expedia 关键词搜索 API (expedia.search)

- Canonical page: [https://everyinfra.com/expedia-api/search](https://everyinfra.com/expedia-api/search?utm_medium=ai_doc&utm_campaign=page_md)
- Endpoint: POST https://api.everyinfra.com/api/v1/social with {"platform": "expedia", "action": "search", "params": {...}}
- Price: $0.001389 per call ($1.39 per 1,000 requests); failed calls and empty results are not charged
- Returns: list, default 24, 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=search

## Parameters

| name | type | required | default | description |
|---|---|---|---|---|
| keyword | not declared | yes | not declared | search 使用酒店目的地；car_rental 使用取车地点或完整 Expedia carsearch URL。租车传完整 URL 时直接使用其中条件，不再应用独立日期参数；不是航班搜索词。 |
| currency | not declared | no | not declared | search 酒店搜索结果价格的展示币种，默认 USD；不是 API 扣费币种。不影响 car_rental 的价格币种。 |
| sort | enum: distance / price_asc / price_desc / 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 | 24 | 这次调用最多返回的条数，整数，1–200；不传按默认值，实际返回可能少于这个数。超过上限会在扣费前返回 422。 |

## Response fields (items in `results`)

| field | meaning |
|---|---|
| hotel_id | 酒店 ID。 |
| name | 名称。用于账号/商品/商家类能力，指该对象本身的名字。 |
| url | 该记录在原平台上的可访问链接。 |
| neighborhood | 所在街区。 |
| region | 所属区域。 |
| rating | 评分。**分制随平台而异**，同一行的 `rating_scale` 给出该平台满分 (多数是 5，Booking/豆瓣/爱奇艺/NAVER 是 10)。跨平台比较前必须先按 rating_scale 换算。直接比数字会得出反的结论。 |
| rating_scale | 上一列 `rating` 的满分。5 表示五星制、10 表示十分制。只在该行有 rating 时出现。 |
| rating_label | 评分的文字档位。 |
| review_count | 评价条数，用于商品/商家类能力。null 表示不公开，不等于 0。 |
| star_rating | 酒店星级，官方硬件评定，**与 hotel_rating 不是一回事**。 |
| price_per_night | 每晚价格。 |
| price_total | 总价：search 是整个入住期的总价，car_rental 是整段租期的总价。 |
| discount_percent | 折扣百分比。 |
| vip_access | 是否为 Expedia VIP Access 酒店（会员专属权益）。 |
| latitude | 纬度。 |
| longitude | 经度。 |
| image_url | 图片链接。多图能力可能返回 image_urls 数组。 |
| provider | 供应商（比价结果里的渠道方）。 |
| platform | 数据来源平台标识，与请求里的 platform 一致（如 xiaohongshu、tiktok）。 |

## 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": "search",
  "params": {
    "keyword": "Paris"
  }
}'
```

```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": "search",
        "params": {
            "keyword": "Paris",
        },
    },
    timeout=120,
)
print(response.status_code)
print(response.json())
```

## Response example

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

```text
{
  "id": "req_…",
  "platform": "expedia",
  "action": "search",
  "results": [
    {
      "hotel_id": "565298",
      "name": "Hotel Des Arts Paris Montmartre",
      "url": "https://www.expedia.com/Paris-Hotels-Hotel-Des-Arts-Paris-Montmartre.h565298.Hotel-Information?chkin=2026-10-26&chkout=2026-10-27&x_pwa=1&rfrr=HSR&pwa_ts=1790415006926&referrerUrl=aHR0cHM6Ly93d3cuZXhwZWRpYS5jb20vSG90ZWwtU2VhcmNo&useRewards=false&rm1=a2&regionId=2734&destination=P…",
      "neighborhood": "Montmartre",
      "region": "Paris, France",
      "rating": 9.8,
      "rating_label": "Exceptional",
      "review_count": 1017,
      "price_per_night": 206,
      "price_total": 246,
      "discount_percent": 9,
      "vip_access": false,
      "image_url": "https://images.trvl-media.com/lodging/1000000/570000/565300/565298/bffb8f88.jpg?impolicy=resizecrop&ra=fit&rw=455&rh=455",
      "provider": "expedia",
      "platform": "expedia",
      "rating_scale": 5
    },
    {
      "hotel_id": "9619719",
      "name": "Hotel de Roubaix",
      "url": "https://www.expedia.com/Paris-Hotels-Hotel-De-Roubaix.h9619719.Hotel-Information?chkin=2026-10-26&chkout=2026-10-27&x_pwa=1&rfrr=HSR&pwa_ts=1790415006928&referrerUrl=aHR0cHM6Ly93d3cuZXhwZWRpYS5jb20vSG90ZWwtU2VhcmNo&useRewards=false&rm1=a2&regionId=2734&destination=Paris%2C+France…",
      "neighborhood": "Paris",
      "region": "Paris, France",
      "rating": 9.4,
      "rating_label": "Exceptional",
      "review_count": 1533,
      "price_per_night": 214,
      "price_total": 243,
      "discount_percent": 10,
      "vip_access": false,
      "image_url": "https://images.trvl-media.com/lodging/10000000/9620000/9619800/9619719/7f5c6c38.jpg?impolicy=resizecrop&ra=fit&rw=455&rh=455",
      "provider": "expedia",
      "platform": "expedia",
      "rating_scale": 5
    }
  ],
  "count": 24,
  "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
