# Expedia 租车报价 API (expedia.car_rental)

- Canonical page: [https://everyinfra.com/expedia-api/car_rental](https://everyinfra.com/expedia-api/car_rental?utm_medium=ai_doc&utm_campaign=page_md)
- Endpoint: POST https://api.everyinfra.com/api/v1/social with {"platform": "expedia", "action": "car_rental", "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 100 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=car_rental

## Parameters

| name | type | required | default | description |
|---|---|---|---|---|
| keyword | not declared | yes | not declared | search 使用酒店目的地；car_rental 使用取车地点或完整 Expedia carsearch URL。租车传完整 URL 时直接使用其中条件，不再应用独立日期参数；不是航班搜索词。 |
| check_in | not declared | no | not declared | car_rental 的取车日期兼容名，只有 pick_up_date 未提供时读取；此处不是酒店入住筛选。 |
| check_out | not declared | no | not declared | car_rental 的还车日期兼容名，只有 drop_off_date 未提供时读取；此处不是酒店退房筛选。 |
| drop_off_date | not declared | no | not declared | car_rental 还车日期，YYYY-MM-DD。提供取车日期而未提供还车日期时，按同一天处理；请显式给出晚于取车的日期。未提供取车日期时，默认日期对会覆盖单独填写的还车日期。 |
| pick_up_date | not declared | no | not declared | car_rental 取车日期，YYYY-MM-DD，优先于 check_in。取车日期缺省时使用当天后 30 天取车、再过 2 天还车；构造查询的取还车时间固定为 10:30 AM，不能据此假定任意时段报价。 |
| limit | integer (1–100) | no | 20 | 这次调用最多返回的条数，整数，1–100；不传按默认值，实际返回可能少于这个数。超过上限会在扣费前返回 422。 |

## Response fields (items in `results`)

| field | meaning |
|---|---|
| id | 该记录在原平台上的唯一标识。仅在同一平台内唯一，跨平台可能重复。 |
| url | 该记录在原平台上的可访问链接。 |
| title | 标题。平台无标题概念时（如纯文本帖）为 null。 |
| vehicle_category | 车辆类别（租车能力用）。 |
| vendor_name | 租车/服务供应商名称。 |
| price | 价格数值，不含货币符号；币种见 currency。 |
| price_total | 总价：search 是整个入住期的总价，car_rental 是整段租期的总价。 |
| rating | 评分。**分制随平台而异**，同一行的 `rating_scale` 给出该平台满分 (多数是 5，Booking/豆瓣/爱奇艺/NAVER 是 10)。跨平台比较前必须先按 rating_scale 换算。直接比数字会得出反的结论。 |
| rating_scale | 上一列 `rating` 的满分。5 表示五星制、10 表示十分制。只在该行有 rating 时出现。 |
| rating_label | 评分的文字档位。 |
| attributes | 车辆属性标签（car_rental），按页面原文。 |
| pick_up_location | 取车地点。 |
| drop_off_location | 还车地点。 |
| pick_up_date | 取车日期。 |
| drop_off_date | 还车日期。 |
| pick_up_time | 取车时间。 |
| drop_off_time | 还车时间。 |
| image_url | 图片链接。多图能力可能返回 image_urls 数组。 |
| 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": "car_rental",
  "params": {
    "keyword": "Las Vegas, Nevada, United States of America"
  }
}'
```

```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": "car_rental",
        "params": {
            "keyword": "Las Vegas, Nevada, United States of America",
        },
    },
    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 20. `id`, `billing` and `quota` differ on every call, so only their shape is shown.

```text
{
  "id": "req_…",
  "platform": "expedia",
  "action": "car_rental",
  "results": [
    {
      "id": "77193515-90b3-4ceb-b090-f357684d8d18",
      "url": "https://www.expedia.com/carsearch/details?date1=10%2F26%2F2026&date2=10%2F28%2F2026&time1=1030AM&time2=1030AM&dpln=178276&locn=Las+Vegas%2C+Nevada%2C+United+States+of+America&loc2=Las+Vegas%2C+Nevada%2C+United+States+of+America&piid=AQh3XDzUb4Yaw4cMGaeYnjj7avjCnI7in9MF41jMKsvomJa…",
      "title": "Jeep Wrangler 4-Door or similar",
      "vehicle_category": "Standard Open Air All-Terrain",
      "vendor_name": "Payless",
      "price": "$99.99",
      "price_total": "$281.62",
      "rating": 0,
      "attributes": [
        "5",
        "4 Doors",
        "Air Conditioning"
      ],
      "pick_up_location": "Las Vegas, Nevada, United States of America",
      "drop_off_location": "Las Vegas, Nevada, United States of America",
      "pick_up_date": "2026-10-26",
      "drop_off_date": "2026-10-28",
      "pick_up_time": "1030AM",
      "drop_off_time": "1030AM",
      "image_url": "https://mediaim.expedia.com/cars/38/49564138-aed7-4f64-952b-8a534df5fec5.jpg?impolicy=resizecrop&ra=fit&rh=165&rw=165",
      "platform": "expedia",
      "rating_scale": 5
    },
    {
      "id": "77193515-90b3-4ceb-b090-f357684d8d18",
      "url": "https://www.expedia.com/carsearch/details?date1=10%2F26%2F2026&date2=10%2F28%2F2026&time1=1030AM&time2=1030AM&dpln=178276&locn=Las+Vegas%2C+Nevada%2C+United+States+of+America&loc2=Las+Vegas%2C+Nevada%2C+United+States+of+America&piid=AQh3XDzUb4Yaw4cMGaeYnjj7avjCnI7in9MF41jMKsvomJa…",
      "title": "Ford Explorer or similar",
      "vehicle_category": "Standard Elite SUV",
      "vendor_name": "Payless",
      "price": "$104.99",
      "price_total": "$294.86",
      "rating": 0,
      "attributes": [
        "7",
        "4 Doors",
        "Air Conditioning"
      ],
      "pick_up_location": "Las Vegas, Nevada, United States of America",
      "drop_off_location": "Las Vegas, Nevada, United States of America",
      "pick_up_date": "2026-10-26",
      "drop_off_date": "2026-10-28",
      "pick_up_time": "1030AM",
      "drop_off_time": "1030AM",
      "image_url": "https://mediaim.expedia.com/cars/38/be4b065b-ef1b-47ef-bbac-3c241f26b4e5.jpg?impolicy=resizecrop&ra=fit&rh=165&rw=165",
      "platform": "expedia",
      "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
