# Shopee Trending searches API (shopee.trending_searches)

- Canonical page: [https://everyinfra.com/en/shopee-api/trending_searches](https://everyinfra.com/en/shopee-api/trending_searches?utm_medium=ai_doc&utm_campaign=page_md)
- Endpoint: POST https://api.everyinfra.com/api/v1/social with {"platform": "shopee", "action": "trending_searches", "params": {...}}
- Price: $0.000556 per call ($0.56 per 1,000 requests); failed calls and empty results are not charged
- Returns: list
- 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=shopee&action=trending_searches

## Parameters

| name | type | required | default | description |
|---|---|---|---|---|
| country | not declared | no | not declared | Sets the region code and takes precedence over `region` and URL inference. For `search`, `profile`, `shop` and `shop_info`, defaults to `id` (Indonesia) when unspecified; `shop_info` reads it from the domain when you pass a shop link. Configured domain detection includes `sg`, `my`, `th`, `ph`, `vn`, `br`, `tw`, `mx`, `co`, and `cl`, though a recognized domain does not guarantee data for every region. `shop_info`, `product_specs` and `reviews` accept only `tw`, `vn`, `sg`, `my`, `ph`, `th`, `id`, `br` and `mx`, and `shop_info` and `reviews` reject any other value before you are charged. `product_detail`, `product_specs` and `reviews` usually read the region from the product URL, and a product is only found in its own market. `categories`, `trending_searches` and `search_suggest` cover Singapore only and accept only `sg`; other values are rejected before you are charged. |
| limit | integer (1–) | no | not declared | The most rows to return in this call, an integer of 1 or more. The default applies when you leave it out, and a call can return fewer rows. |

## Response fields (items in `results`)

| field | meaning |
|---|---|
| keyword | The keyword. |
| rank | Position in this response, from 1. |
| image_url | Image link. Capabilities with several images may return an image_urls array. |
| collected_at | When this record was collected (ISO 8601, UTC). |
| platform | Source platform identifier, the same as platform in the request (for example 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": "shopee",
  "action": "trending_searches",
  "params": {}
}'
```

```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": "shopee",
        "action": "trending_searches",
        "params": {},
    },
    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": "shopee",
  "action": "trending_searches",
  "results": [
    {
      "keyword": …,
      "rank": …,
      "image_url": …,
      "collected_at": …,
      "platform": …
    }
  ],
  "count": …,
  "billing": {
    "charged": …,
    "charged_usd": …,
    "balance_after_usd": …,
    …
  },
  "quota": { … }
}
```

## Also

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