# Pinterest 画板搜索 API (pinterest.board_search)

- Canonical page: [https://everyinfra.com/pinterest-api/board_search](https://everyinfra.com/pinterest-api/board_search?utm_medium=ai_doc&utm_campaign=page_md)
- Endpoint: POST https://api.everyinfra.com/api/v1/social with {"platform": "pinterest", "action": "board_search", "params": {...}}
- Price: $0.024 per call ($24 per 1,000 requests); failed calls and empty results are not charged
- Returns: list, one page of up to 50 per call; the number of rows varies from page to page and a short page is not the end (limit is ignored; pass the top-level next_page_token from the response as page_token for the next page; no next_page_token means the end)
- Pagination: pass next_page_token back as page_token for the next page, other params unchanged; one call per page, tokens last 24 hours
- 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=pinterest&action=board_search

## Parameters

| name | type | required | default | description |
|---|---|---|---|---|
| keyword | not declared | yes | not declared | 搜画板的关键词，最多 100 个字。 |
| page_token | not declared | no | not declared | 翻页令牌：第一页不传；把上一页回包里的 next_page_token 原样传回拿下一页，其余参数和第一页一样。每页算一次调用。 |

## Response fields (items in `results`)

| field | meaning |
|---|---|
| id | 该记录在原平台上的唯一标识。仅在同一平台内唯一，跨平台可能重复。 |
| name | 名称。用于账号/商品/商家类能力，指该对象本身的名字。 |
| url | 该记录在原平台上的可访问链接。 |
| description | 简介或描述，通常比 text 短。 |
| pin_count | Pin 数。 |
| section_count | 画板分区数。 |
| cover_image_url | 封面图。 |
| is_collaborative | 是否为多人协作画板。 |
| owner_username | 所有者用户名。 |
| owner_name | 所有者昵称。 |
| platform | 数据来源平台标识，与请求里的 platform 一致（如 xiaohongshu、tiktok）。 |
| rank | 这一行在榜单或结果里的名次，从 1 开始；榜单口径（按什么排、统计多久）以能力说明为准。 |
| owner_id | 画板所有者的 ID。 |
| owner_avatar_url | 画板所有者的头像。 |
| owner_url | 画板所有者的主页链接。 |
| collaborator_count | 画板协作者人数。 |
| collected_at | 这条数据的抓取时刻（ISO 8601，UTC）。 |

## 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": "pinterest",
  "action": "board_search",
  "params": {
    "keyword": "home decor"
  }
}'
```

```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": "pinterest",
        "action": "board_search",
        "params": {
            "keyword": "home decor",
        },
    },
    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": "pinterest",
  "action": "board_search",
  "results": [
    {
      "id": …,
      "name": …,
      "url": …,
      "description": …,
      "pin_count": …,
      "section_count": …,
      "cover_image_url": …,
      "is_collaborative": …,
      "owner_username": …,
      "owner_name": …,
      "platform": …,
      "rank": …,
      "owner_id": …,
      "owner_avatar_url": …,
      "owner_url": …,
      "collaborator_count": …,
      "collected_at": …
    }
  ],
  "next_page_token": …,
  "pagination": { … },
  "count": …,
  "billing": {
    "charged": …,
    "charged_usd": …,
    "balance_after_usd": …,
    …
  },
  "quota": { … }
}
```

## Also

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