# Craigslist 条目详情 API (craigslist.posting_detail)

- Canonical page: [https://everyinfra.com/craigslist-api/posting_detail](https://everyinfra.com/craigslist-api/posting_detail?utm_medium=ai_doc&utm_campaign=page_md)
- Endpoint: POST https://api.everyinfra.com/api/v1/social with {"platform": "craigslist", "action": "posting_detail", "params": {...}}
- Price: $0.000556 per call ($0.56 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=craigslist&action=posting_detail

## Parameters

| name | type | required | default | description |
|---|---|---|---|---|
| url | not declared | yes | not declared | 要读的 Craigslist 条目：条目链接（https://www.craigslist.org/view/d/<标题>/<22 位编号>，或老写法 https://<城市>.craigslist.org/…/<数字>.html，就是 search 每行的 url），或条目的 22 位编号。别的写法在扣费前被拒。条目删了或过期了返回空结果、不扣费。 |

## Response fields (items in `results`)

| field | meaning |
|---|---|
| id | 该记录在原平台上的唯一标识。仅在同一平台内唯一，跨平台可能重复。 |
| uuid | 条目的 22 位编号（posting_detail），条目链接最后一段就是它；可以原样传给 posting_detail 的 url。 |
| url | 该记录在原平台上的可访问链接。 |
| title | 标题。平台无标题概念时（如纯文本帖）为 null。 |
| text | 正文内容，已去除 HTML 标签，全文返回、不截断（个别平台的列表结果本身只有摘要，以该平台的字段说明为准）。 |
| price | 价格数值，不含货币符号；币种见 currency。 |
| currency | 价格币种代码（如 CNY、USD）。price 存在但 currency 为 null 时不要假定币种。 |
| price_label | 页面上显示的价格原文，如 $1,400（posting_detail）。 |
| category | 分类：posting_detail、categories 里是三个字母的分类代码（如 bik、apa）；search 里是分类名，有时也是这种代码。 |
| category_id | 分类的数字编号（posting_detail、categories）。 |
| category_name | 分类的名字，如 bicycles - by owner（posting_detail）。 |
| section | 条目所在的大类，如 for sale、housing、jobs（posting_detail）。 |
| posted_at | 发布时间，ISO 8601 格式、UTC 时区（如 2026-08-07T12:34:56+00:00）。平台只给非标准字符串时原样透传，解析前建议做容错。null 表示平台未公开。 |
| edited_at | 条目最后一次修改的时间（posting_detail），ISO 8601、UTC。 |
| lat | 纬度。 |
| lng | 经度。 |
| city | 城市分站的主机名，如 newyork、sfbay、london（posting_detail 里是条目所在的分站，areas 里是这个分站）。 |
| subarea | 城市分站下的子区代码，如 newyork 的 mnh（posting_detail）；没分子区的分站没有。 |
| location | 地理位置描述，原文透传，格式随平台而异。 |
| neighborhood | 发帖人填的街区（posting_detail），如 Inwood / Wash Hts；没填的没有。 |
| address | 详细地址，原文透传。 |
| images | 图片链接列表。 |
| image_count | 条目的图片张数（posting_detail），即 images 的条数。 |
| attributes | 发帖人按分类填的属性（posting_detail），如品牌、车况、卧室数、薪资：[{name, label, value}]，name 是平台的属性名，label 是页面上显示的名字，value 是填的值。 |
| has_contact_info | 条目有没有留联系方式（posting_detail）；联系方式平台要验证才显示，这里不给。 |
| is_repost | 是不是同一人重发的旧条目（posting_detail）；是的话 original_posting_id 是原来那条的编号。 |
| original_posting_id | 重发前那一条的编号（posting_detail），is_repost 为 true 时才有。 |
| notices | 平台挂在条目上的提示（posting_detail），原文；没有时没有这个字段。 |
| company_name | 招聘条目的公司名（posting_detail）。 |
| job_title | 招聘条目的职位名（posting_detail）。 |
| salary_label | 招聘条目的薪资原文（posting_detail），如 $114000 to $228000 per year。 |
| bedroom_count | 卧室数（posting_detail 的租房、售房条目），开间是 0。 |
| bathrooms | 卫浴数（posting_detail 的租房、售房条目）。 |
| area_sqft | 面积，平方英尺（posting_detail 的租房、售房条目）。 |
| area_label | 页面上显示的面积原文（posting_detail）。 |
| collected_at | 这条数据的抓取时刻（ISO 8601，UTC）。 |
| 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": "posting_detail",
  "params": {
    "url": "https://www.craigslist.org/view/d/new-york-1978-raleigh-competition-gs/vTTJq95heQdC4p2GeTGeMM"
  }
}'
```

```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": "posting_detail",
        "params": {
            "url": "https://www.craigslist.org/view/d/new-york-1978-raleigh-competition-gs/vTTJq95heQdC4p2GeTGeMM",
        },
    },
    timeout=120,
)
print(response.status_code)
print(response.json())
```

## Response example

No real sample for these example parameters yet: structure only, every value is a placeholder (…).

```text
{
  "id": "req_…",
  "platform": "craigslist",
  "action": "posting_detail",
  "results": {
    "id": …,
    "uuid": …,
    "url": …,
    "title": …,
    "text": …,
    "price": …,
    "currency": …,
    "price_label": …,
    "category": …,
    "category_id": …,
    "category_name": …,
    "section": …,
    "posted_at": …,
    "edited_at": …,
    "lat": …,
    "lng": …,
    "city": …,
    "subarea": …,
    "location": …,
    "neighborhood": …,
    "address": …,
    "images": …,
    "image_count": …,
    "attributes": …,
    "has_contact_info": …,
    "is_repost": …,
    "original_posting_id": …,
    "notices": …,
    "company_name": …,
    "job_title": …,
    "salary_label": …,
    "bedroom_count": …,
    "bathrooms": …,
    "area_sqft": …,
    "area_label": …,
    "collected_at": …,
    "platform": …
  },
  "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
