# Etsy 商品详情 API (etsy.product_detail)

- Canonical page: [https://everyinfra.com/etsy-api/product_detail](https://everyinfra.com/etsy-api/product_detail?utm_medium=ai_doc&utm_campaign=page_md)
- Endpoint: POST https://api.everyinfra.com/api/v1/social with {"platform": "etsy", "action": "product_detail", "params": {...}}
- Price: $0.001389 per call ($1.39 per 1,000 requests); failed calls and empty results are not charged
- Returns: single object
- Mode: sync; add "mode": "async" for slow tasks

Etsy 商品详情按商品链接 `url` 读一件商品：名称、描述全文 `text`、价格和原价、币种、库存数量、评分和评价数、店铺 ID、规格变体和标签。它回答「这件商品卖多少、有没有折扣、还剩多少货、口碑怎样」，适合监测手作品类的竞品价格，或者给商品库补全。

`url` 要用 /listing/<ID>/ 形式的完整单品链接，读的是商品，不是店铺或用户账号。和商品资料那一页读的是同一个链接：这一页有库存、评分、标签和原价；商品资料有材质、分类、店铺年限、发货国家和评价亮点，两页可以配合着读。

## Health

- Live health (24h percent, hourly and daily trends): https://api.everyinfra.com/api/v1/social/availability?platform=etsy&action=product_detail

## Parameters

| name | type | required | default | description |
|---|---|---|---|---|
| url | not declared | yes | not declared | profile / product_detail 使用 Etsy 单品的 /listing/<ID>/ 完整链接；这里的 profile 是商品资料，不是用户账号。 |

## Response fields (items in `results`)

| field | meaning |
|---|---|
| id | 该记录在原平台上的唯一标识。仅在同一平台内唯一，跨平台可能重复。 |
| url | 该记录在原平台上的可访问链接。 |
| name | 名称。用于账号/商品/商家类能力，指该对象本身的名字。 |
| text | 正文内容，已去除 HTML 标签，全文返回、不截断（个别平台的列表结果本身只有摘要，以该平台的字段说明为准）。 |
| price | 价格数值，不含货币符号；币种见 currency。 |
| original_price | 原价，与 price 对比可算折扣。 |
| currency | 价格币种代码（如 CNY、USD）。price 存在但 currency 为 null 时不要假定币种。 |
| in_stock_quantity | 库存数量。 |
| rating | 评分。**分制随平台而异**，同一行的 `rating_scale` 给出该平台满分 (多数是 5，Booking/豆瓣/爱奇艺/NAVER 是 10)。跨平台比较前必须先按 rating_scale 换算。直接比数字会得出反的结论。 |
| rating_scale | 上一列 `rating` 的满分。5 表示五星制、10 表示十分制。只在该行有 rating 时出现。 |
| review_count | 评价条数，用于商品/商家类能力。null 表示不公开，不等于 0。 |
| shop_id | 店铺 ID。 |
| variants | 规格变体。 |
| tags | 标签数组。无标签时为空数组，不是 null。 |
| 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": "etsy",
  "action": "product_detail",
  "params": {
    "url": "https://www.etsy.com/listing/1710567856/its-okay-to-make-some-mistakes-shirt"
  }
}'
```

```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": "etsy",
        "action": "product_detail",
        "params": {
            "url": "https://www.etsy.com/listing/1710567856/its-okay-to-make-some-mistakes-shirt",
        },
    },
    timeout=120,
)
print(response.status_code)
print(response.json())
```

## Response example

Real response to the example request above, captured 2026-10-24T18:28:34Z. `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": "etsy",
  "action": "product_detail",
  "results": {
    "id": "1710567856",
    "url": "https://www.etsy.com/listing/1710567856/its-okay-to-make-some-mistakes-shirt",
    "name": "It's Okay To Make Some Mistakes Shirt ,Mental Health Shirt ,Motivational Shirt, Mental Health Matters, Motivational Shirt ,It's Okay To",
    "text": "",
    "price": "",
    "currency": "USD",
    "in_stock_quantity": 946,
    "shop_id": "35055979",
    "image_url": [
      "https://i.etsystatic.com/35055979/r/il/cfd7dd/5962184626/il_fullxfull.5962184626_auti.jpg",
      "https://i.etsystatic.com/35055979/r/il/afd660/6010243165/il_fullxfull.6010243165_looh.jpg",
      "https://i.etsystatic.com/35055979/r/il/0b3ab3/6010246289/il_fullxfull.6010246289_493g.jpg"
    ],
    "platform": "etsy"
  },
  "billing": {
    "charged": …,
    "charged_usd": …,
    "balance_after_usd": …,
    …
  },
  "quota": { … }
}
```

## FAQ

### `url` 填什么链接？

填 Etsy 单品的完整链接，路径里要有 /listing/<ID>/，示例就是这种形式。店铺主页和用户页都不行。

### 折扣怎么算？

拿 `original_price` 和 `price` 对比。`price` 不含货币符号，币种看 `currency`，它为 null 时不要假定币种。币种不同的商品不要直接比数字，先统一币种。

### `tags` 为空和 `review_count` 为 null 有什么区别？

`tags` 没有标签时是空数组，不是 null，判断「没有标签」看长度。`review_count` 为 null 表示不公开，不等于 0。评分 `rating` 要对着同一行的 `rating_scale` 读，只有该行有评分时才会出现 `rating_scale`。

## Also

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