# Etsy 关键词搜索 API (etsy.search)

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

## Parameters

| name | type | required | default | description |
|---|---|---|---|---|
| keyword | not declared | yes | not declared | Etsy 商品搜索词，例如 ceramic mug。用于检索商品标题/列表，不是店铺名精确查询；店铺资料或评论使用 shop。 |
| currency | enum: aud / brl / cad / chf / dkk / eur / gbp / hkd / inr / jpy / mxn / nok / nzd / sek / sgd / usd | no | not declared | 搜索结果的商品价格币种，默认 USD，支持当前接口列出的币种代码。min_price 按此币种解释，不改变 API 调用扣费币种。 |
| exclude_keywords | not declared | no | not declared | 排除商品标题词，传字符串数组，例如 ["digital", "download"]；标题包含任一词时排除，忽略大小写。不是排除卖家或扫描完整商品描述的保证。 |
| min_price | not declared | no | not declared | 商品搜索最低价格，非负数值，单位为 currency 所选币种；不是最小起订量、运费上限或调用预算。 |
| sort | enum: newest / price_asc / price_desc / relevance | no | not declared | 商品搜索排序：relevance 综合相关度（默认）、price_asc 价格升序、price_desc 价格降序、newest 最近上架；兼容旧值 most_relevant / lowest_price / highest_price / recently_listed。不是店铺评论时间排序。 |
| limit | integer (1–50) | no | 20 | 这次调用最多返回的条数，整数，1–50；不传按默认值，实际返回可能少于这个数。超过上限会在扣费前返回 422。 |

## Response fields (items in `results`)

| field | meaning |
|---|---|
| listing_id | 商品 ID。 |
| title | 标题。平台无标题概念时（如纯文本帖）为 null。 |
| url | 该记录在原平台上的可访问链接。 |
| price | 价格数值，不含货币符号；币种见 currency。 |
| list_price | 标价。 |
| currency | 价格币种代码（如 CNY、USD）。price 存在但 currency 为 null 时不要假定币种。 |
| rating | 评分。**分制随平台而异**，同一行的 `rating_scale` 给出该平台满分 (多数是 5，Booking/豆瓣/爱奇艺/NAVER 是 10)。跨平台比较前必须先按 rating_scale 换算。直接比数字会得出反的结论。 |
| rating_scale | 上一列 `rating` 的满分。5 表示五星制、10 表示十分制。只在该行有 rating 时出现。 |
| shop_id | 店铺 ID。 |
| shop_name | 店铺名。 |
| shop_rating | 店铺评分。 |
| shop_review_count | 店铺评价数。 |
| on_sale | 是否在促销。 |
| free_shipping | 是否包邮。 |
| is_digital | 是否为数字商品（下载类，无需物流）。 |
| 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": "search",
  "params": {
    "keyword": "ceramic mug"
  }
}'
```

```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": "search",
        "params": {
            "keyword": "ceramic mug",
        },
    },
    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": "etsy",
  "action": "search",
  "results": [
    {
      "listing_id": "•••",
      "title": "The Libby Travel Mug hand thrown ceramic mug cup Pottery Travel Mug Cup with attached lid fits in cup holder",
      "url": "https://www.etsy.com/listing/1510223855/the-libby-travel-mug-hand-thrown-ceramic",
      "price": "34.99",
      "currency": "USD",
      "rating": 5,
      "shop_id": "8740835",
      "shop_name": "StonehousePotteryOH",
      "on_sale": false,
      "free_shipping": false,
      "is_digital": false,
      "image_url": "https://i.etsystatic.com/8740835/r/il/d4f720/7239142492/il_fullxfull.7239142492_oym6.jpg",
      "platform": "etsy",
      "rating_scale": 5
    },
    {
      "listing_id": "•••",
      "title": "Personalized Engraved Mug – Custom Photo, Text or Logo Ceramic Coffee Cup, 12.8 oz",
      "url": "https://www.etsy.com/listing/4515619135/personalized-engraved-mug-custom-photo",
      "price": "11.14",
      "list_price": "14.85",
      "currency": "USD",
      "rating": 5,
      "shop_id": "65820773",
      "shop_name": "PCraftHandle",
      "on_sale": true,
      "free_shipping": false,
      "is_digital": false,
      "image_url": "https://i.etsystatic.com/65820773/r/il/c96314/8092105956/il_fullxfull.8092105956_4yao.jpg",
      "platform": "etsy",
      "rating_scale": 5
    }
  ],
  "count": 20,
  "billing": {
    "charged": …,
    "charged_usd": …,
    "balance_after_usd": …,
    …
  },
  "quota": { … }
}
```

## 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
