# Craigslist 关键词搜索 API (craigslist.search)

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

## Parameters

| name | type | required | default | description |
|---|---|---|---|---|
| keyword | not declared | yes | not declared | Craigslist 分类信息搜索词，例如 bicycle；结果类型由 category 决定，同一个词可在出售、租房或职位目录中查找。 |
| category | enum: cars_trucks / community / electronics / events / for_sale / furniture / gigs / housing_apartments_houses / housing_rooms_shares / housing_sublets_temporary / jobs / resumes / services | no | not declared | 分类信息目录：for_sale 出售、cars_trucks 汽车、electronics 电子、furniture 家具、housing_apartments_houses 整租、housing_rooms_shares 合租、housing_sublets_temporary 短租、jobs 职位、gigs 零工、resumes 求职简历、services 服务、community 社区、events 活动。默认 for_sale。 |
| country | enum: anchorage / atlanta / austin / baltimore / boston / calgary / charlotte / chicago / cincinnati / cleveland / columbus / dallas / denver / detroit / edmonton / hartford / honolulu / houston / indianapolis / kansascity / lasvegas / losangeles / miami / milwaukee / minneapolis / montreal / nashville / newhaven / newyork / orlando / ottawa / philadelphia / phoenix / pittsburgh / portland / providence / raleigh / richmond / sacramento / salem / saltlakecity / sanantonio / sandiego / seattle / sfbay / stlouis / tampa / toronto / vancouver / washingtondc | no | not declared | 此平台的 country 实际是城市分站选择，不是 US / CA 国家码；请从本接口列出的 newyork、sfbay、toronto 等城市值中选择。同时提供时它覆盖 region / location 的分站选择。 |
| location | not declared | no | not declared | region 的兼容输入，仅在 region 未提供时使用；同样解释为 Craigslist 城市分站，不是任意街道地址、邮编或经纬度。 |
| max_price | not declared | no | not declared | 当前城市分站与分类中的挂牌价格上限，数值，与 min_price 配合使用；币种和计价周期以该条挂牌信息为准。按整数筛选，带小数时向上取整。 |
| min_price | not declared | no | not declared | 当前城市分站与分类中的挂牌价格下限，数值；不是 API 调用成本。不同分类的价格含义可能不同，例如二手商品售价与住房租金不能直接比较。按整数筛选，带小数时向下取整。 |
| region | not declared | no | not declared | 城市分站短名，例如 newyork、sfbay、toronto。完整分站清单与本接口 country 的城市清单一致；兼容 nyc / la / dc / sanfrancisco 等写法。未识别的输入按 newyork 查询，请核对返回的地点。 |
| sort | enum: newest / price_asc / relevance | no | not declared | 列表排序：newest 为按发布日期，price_asc 为价格从低到高，relevance 为相关度；不传时使用发布日期。不是卖家信誉或成交量排序。 |
| limit | integer (1–200) | no | 20 | 这次调用最多返回的条数，整数，1–200；不传按默认值，实际返回可能少于这个数。超过上限会在扣费前返回 422。 |

## Response fields (items in `results`)

| field | meaning |
|---|---|
| id | 该记录在原平台上的唯一标识。仅在同一平台内唯一，跨平台可能重复。 |
| url | 该记录在原平台上的可访问链接。 |
| title | 标题。平台无标题概念时（如纯文本帖）为 null。 |
| text | 正文内容，已去除 HTML 标签，全文返回、不截断（个别平台的列表结果本身只有摘要，以该平台的字段说明为准）。 |
| price | 价格数值，不含货币符号；币种见 currency。 |
| currency | 价格币种代码（如 CNY、USD）。price 存在但 currency 为 null 时不要假定币种。 |
| category | 分类名称，取值为原平台的分类体系，未做跨平台归一。 |
| location | 地理位置描述，原文透传，格式随平台而异。 |
| posted_at | 发布时间，ISO 8601 格式、UTC 时区（如 2026-08-07T12:34:56+00:00）。平台只给非标准字符串时原样透传，解析前建议做容错。null 表示平台未公开。 |
| lat | 纬度。 |
| lng | 经度。 |
| emails | 联系邮箱。该站帖子本就公开联系方式。 |
| phones | 联系电话。 |
| images | 图片链接列表。 |
| 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": "craigslist",
  "action": "search",
  "params": {
    "keyword": "bicycle"
  }
}'
```

```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": "craigslist",
        "action": "search",
        "params": {
            "keyword": "bicycle",
        },
    },
    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": "craigslist",
  "action": "search",
  "results": [
    {
      "id": "•••",
      "url": "https://www.craigslist.org/view/d/commack-24-speed-bike-hard-lady-cruz/h4HVcd5nzs8KyR3HVN9TZG",
      "title": "24 Speed BIKE HARD LADY CRUZ Ultra Light StepThru Hybrid Disc 14”frame",
      "text": "Selling 24 Speed BIKE HARD LADY CRUZ Ultra Light StepThru Hybrid Bicycle\n700 x 35C tires, 14 inch frame, trigger shifters, Suspension seat, Front Suspension with lockouts, Mechanical DISC Brakes, water bottle holder, Adjustable handle bars for a more comfort fit, under seat compa…",
      "price": 230,
      "currency": "USD",
      "category": "For Sale",
      "location": "Commack/Western Suffolk",
      "posted_at": "2026-09-13T04:19:38-04:00",
      "lat": 40.843,
      "lng": -73.2799,
      "images": [
        "https://images.craigslist.org/00N0N_9Zg27TVO3x4_0jm0ew_600x450.jpg",
        "https://images.craigslist.org/00707_hLl3WR8t1Kp_0jm0ew_600x450.jpg",
        "https://images.craigslist.org/00l0l_9fmzO7RF18k_0jm0ew_600x450.jpg"
      ],
      "platform": "craigslist"
    },
    {
      "id": "•••",
      "url": "https://www.craigslist.org/view/d/commack-24-speed-bike-hard-lady-cruz/hZcuH7RbcmTr6Q1VoiiEYd",
      "title": "24 Speed BIKE HARD LADY CRUZ Ultra Light StepThru Hybrid Disc 14”frame",
      "text": "Selling 24 Speed BIKE HARD LADY CRUZ Ultra Light StepThru Hybrid Bicycle\n700 x 35C tires, 14 inch frame, trigger shifters, Suspension seat, Front Suspension with lockouts, Mechanical DISC Brakes, water bottle holder, Adjustable handle bars for a more comfort fit, under seat compa…",
      "price": 230,
      "currency": "USD",
      "category": "For Sale",
      "location": "Commack/Western Suffolk",
      "posted_at": "2026-09-13T03:44:18-04:00",
      "lat": 40.843,
      "lng": -73.2799,
      "images": [
        "https://images.craigslist.org/00Q0Q_1L0TRDLmTUr_0CI0t2_600x450.jpg",
        "https://images.craigslist.org/00o0o_jzfT4Xvtn1Q_0CI0t2_600x450.jpg",
        "https://images.craigslist.org/00V0V_ehTbYzbjHWi_0CI0t2_600x450.jpg"
      ],
      "platform": "craigslist"
    }
  ],
  "count": 20,
  "billing": {
    "charged": …,
    "charged_usd": …,
    "balance_after_usd": …,
    …
  },
  "quota": { … }
}
```

## Also

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