# Expedia 主页或对象详情 API (expedia.profile)

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

## Parameters

| name | type | required | default | description |
|---|---|---|---|---|
| url | not declared | yes | not declared | Expedia 或兼容 Hotels.com 的单个酒店页面链接，用于 profile 资料或 reviews 点评；不是搜索列表页。租车查询 URL 应放在 car_rental 的 keyword。 |

## Response fields (items in `results`)

| field | meaning |
|---|---|
| hotel_id | 酒店 ID。 |
| hotel_name | 酒店名称。 |
| hotel_url | 酒店页链接。 |
| 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 不是一回事**。 |
| property_type | platform-native meaning |
| address | 详细地址，原文透传。 |
| latitude | 纬度。 |
| longitude | 经度。 |
| provider | 供应商（比价结果里的渠道方）。 |
| category_ratings | platform-native meaning |
| languages | platform-native meaning |
| review_summary | platform-native meaning |
| 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": "profile",
  "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": "profile",
        "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-09-26T08:56:04Z. `results` and `count` are real with personal information (names, handles, avatars, profile links, contact details) removed. `id`, `billing` and `quota` differ on every call, so only their shape is shown.

```text
{
  "id": "req_…",
  "platform": "expedia",
  "action": "profile",
  "results": {
    "hotel_id": "20264",
    "hotel_name": "Channel Inn",
    "hotel_url": "https://www.expedia.com/Tokyo-Hotels-Park-Hyatt-Tokyo.h20264.Hotel-Information",
    "rating": 6.6,
    "review_count": 1000,
    "address": {
      "street": "650 Water St Sw",
      "city": "Washington",
      "region": "DC",
      "postal_code": "20024",
      "country": "USA"
    },
    "latitude": 38.87778,
    "longitude": -77.02241,
    "provider": "expedia",
    "category_ratings": [
      {
        "label": "Cleanliness",
        "percent": 70
      },
      {
        "label": "Staff & service",
        "percent": 65
      },
      {
        "label": "Property conditions & facilities",
        "percent": 57
      }
    ],
    "platform": "expedia",
    "rating_scale": 5
  },
  "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
