# Facebook 市集商品详情 API (facebook.marketplace_item)

- Canonical page: https://everyinfra.com/facebook-api/marketplace_item
- Endpoint: POST /api/v1/social with {"platform": "facebook", "action": "marketplace_item", "params": {...}}
- Price: $0.000958 per call ($0.96 per 1,000 requests); failed 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=facebook&action=marketplace_item

## Parameters

| name | type | required | default | description |
|---|---|---|---|---|
| url | not declared | yes | not declared | Marketplace 商品链接（https://www.facebook.com/marketplace/item/<数字>/）或纯数字商品 ID（marketplace 结果里的 id）。 |

## Response fields (items in `results`)

| field | meaning |
|---|---|
| id | 该记录在原平台上的唯一标识。仅在同一平台内唯一，跨平台可能重复。 |
| url | 该记录在原平台上的可访问链接。 |
| title | 标题。平台无标题概念时（如纯文本帖）为 null。 |
| text | 正文内容，已去除 HTML 标签，全文返回、不截断（个别平台的列表结果本身只有摘要，以该平台的字段说明为准）。 |
| price | 价格数值，不含货币符号；币种见 currency。 |
| price_text | 票价说明原文（events_search）；免费或没写时没有这个字段。 |
| original_price_text | 划线原价原文（marketplace_item），卖家降过价才有。 |
| currency | 价格币种代码（如 CNY、USD）。price 存在但 currency 为 null 时不要假定币种。 |
| condition | 商品成色（Marketplace 用）。 |
| attributes | 商品属性（marketplace_item）：name、value，如 Condition = Used - Good、Bicycle Type = Mountain Bike。 |
| location | 地理位置描述，原文透传，格式随平台而异。 |
| latitude | 商品所在位置纬度（marketplace_item，Facebook 给的大致位置）。 |
| longitude | 商品所在位置经度（marketplace_item）。 |
| posted_at | 发布时间，ISO 8601 格式、UTC 时区（如 2026-08-07T12:34:56+00:00）。平台只给非标准字符串时原样透传，解析前建议做容错。null 表示平台未公开。 |
| is_sold | 是否已售出（marketplace_item）。 |
| is_pending | 是否交易中（marketplace_item）。 |
| is_shipping_offered | 卖家是否提供邮寄（marketplace_item）。 |
| delivery_types | 交付方式（marketplace_item）：IN_PERSON 当面交易、SHIPPING 邮寄等。 |
| category_id | Marketplace 商品类目 ID（marketplace_item）。 |
| image_urls | 图片链接数组，按平台展示顺序；没有图片时不出现这个字段。 |
| seller_id | 卖家的 Facebook 标识（marketplace_item）。 |
| seller_name | 卖家显示名（marketplace_item）。 |
| seller_rating | 卖家评分（marketplace_item，满分 5）；没有评价时没有这个字段。 |
| seller_rating_count | 卖家收到的评价数（marketplace_item）。 |
| seller_joined_at | 卖家加入 Facebook 的时间（marketplace_item；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": "facebook",
  "action": "marketplace_item",
  "params": {
    "url": "https://www.facebook.com/marketplace/item/1656586118821988/"
  }
}'
```

```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": "facebook",
        "action": "marketplace_item",
        "params": {
            "url": "https://www.facebook.com/marketplace/item/1656586118821988/",
        },
    },
    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": "facebook",
  "action": "marketplace_item",
  "results": {
    "id": …,
    "url": …,
    "title": …,
    "text": …,
    "price": …,
    "price_text": …,
    "original_price_text": …,
    "currency": …,
    "condition": …,
    "attributes": …,
    "location": …,
    "latitude": …,
    "longitude": …,
    "posted_at": …,
    "is_sold": …,
    "is_pending": …,
    "is_shipping_offered": …,
    "delivery_types": …,
    "category_id": …,
    "image_urls": …,
    "seller_id": …,
    "seller_name": …,
    "seller_rating": …,
    "seller_rating_count": …,
    "seller_joined_at": …,
    "platform": …
  },
  "billing": {
    "charged": …,
    "charged_usd": …,
    "balance_after_usd": …,
    …
  },
  "quota": { … }
}
```

## Also

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