# OLX 巴西站 商品详情 API (olx.product_detail)

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

## Parameters

| name | type | required | default | description |
|---|---|---|---|---|
| url | not declared | yes | not declared | OLX 巴西站（olx.com.br）商品页链接，末尾是商品编号，如 https://sp.olx.com.br/sao-paulo-e-regiao/celulares/iphone-15-128gb-1234567890。 |

## Response fields (items in `results`)

| field | meaning |
|---|---|
| id | 商品编号，就是链接末尾那串数字。 |
| title | 商品标题。 |
| url | 商品页链接。 |
| description | 卖家写的商品描述，换行照原样保留。 |
| price | 售价，整数，单位见 currency；卖家没标价时没有这一项。 |
| currency | 售价的币种，巴西雷亚尔是 BRL。 |
| category | 所在分类，按页面原文（葡萄牙语）。 |
| parent_category | 上一级分类，按页面原文（葡萄牙语）。 |
| condition | 商品状况，按页面原文（如 Usado - Excelente）。 |
| attributes | 商品属性列表，每项 name、value，按页面原文（如 Marca、Modelo、Condição）。 |
| images | 商品图片链接，按页面顺序；没上传图片的商品没有这一项。 |
| posted_at | 发布时间，ISO 8601，UTC。 |
| seller_name | 卖家在 OLX 上显示的名字。 |
| seller_id | 卖家编号。 |
| seller_type | 卖家类型：private 是个人卖家，professional 是商家。 |
| city | 所在城市。 |
| neighborhood | 所在街区。 |
| state | 所在州的两位字母缩写，如 SP、RJ。 |
| country | 国家代码，OLX 巴西站都是 BR。 |
| 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": "olx",
  "action": "product_detail",
  "params": {
    "url": "https://go.olx.com.br/grande-goiania-e-anapolis/celulares/iphone-15-pro-max-white-titanium-1331424006"
  }
}'
```

```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": "olx",
        "action": "product_detail",
        "params": {
            "url": "https://go.olx.com.br/grande-goiania-e-anapolis/celulares/iphone-15-pro-max-white-titanium-1331424006",
        },
    },
    timeout=120,
)
print(response.status_code)
print(response.json())
```

## Response example

Real response to the example request above, captured 2026-11-22T11:46:38Z. `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": "olx",
  "action": "product_detail",
  "results": {
    "id": "•••",
    "title": "iPhone 15 pro max white titanium",
    "url": "https://go.olx.com.br/grande-goiania-e-anapolis/celulares/iphone-15-pro-max-white-titanium-1331424006",
    "description": "Confidence Importados, aparelhos novos e seminovos com garantia!\nWhatsapp ••• Guilherme",
    "category": "Celulares e Smartphones",
    "parent_category": "Celulares e Telefonia",
    "condition": "Usado - Excelente",
    "attributes": [
      {
        "name": "Categoria",
        "value": "Celulares e Smartphones"
      },
      {
        "name": "Marca",
        "value": "APPLE"
      },
      {
        "name": "Modelo",
        "value": "IPHONE 15 PRO MAX"
      }
    ],
    "images": [
      "https://img.olx.com.br/images/25/254425433939404.jpg"
    ],
    "posted_at": "2026-11-19T13:06:49+00:00",
    "seller_name": "U•••e",
    "seller_id": "•••",
    "seller_type": "professional",
    "city": "Goiânia",
    "neighborhood": "Setor Campinas",
    "state": "GO",
    "country": "BR",
    "platform": "olx"
  },
  "billing": {
    "charged": …,
    "charged_usd": …,
    "balance_after_usd": …,
    …
  },
  "quota": { … }
}
```

## Also

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