# Pinterest Topic pins API (pinterest.topic_pins)

- Canonical page: [https://everyinfra.com/en/pinterest-api/topic_pins](https://everyinfra.com/en/pinterest-api/topic_pins?utm_medium=ai_doc&utm_campaign=page_md)
- Endpoint: POST https://api.everyinfra.com/api/v1/social with {"platform": "pinterest", "action": "topic_pins", "params": {...}}
- Price: $0.024 per call ($24 per 1,000 requests); failed calls and empty results are not charged
- Returns: list, one page of 100 per target, no next_page_token (to read further, page one target at a time with the single-target action; limit is ignored)
- 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=topic_pins

## Parameters

| name | type | required | default | description |
|---|---|---|---|---|
| topic_id | not declared | yes | not declared | A numeric topic ID, or a topic page link https://www.pinterest.com/ideas/<name>/<ID>/. |

## Response fields (items in `results`)

| field | meaning |
|---|---|
| id | The record's unique ID on the platform. Unique only within one platform; IDs can repeat across platforms. |
| url | Link to the record on the platform. |
| title | Title. null when the platform has no titles (for example text-only posts). |
| text | Body text with HTML removed, returned in full and never cut short (on a few platforms the list results themselves carry only an excerpt; the platform's field notes say so). |
| image_url | Image link. Capabilities with several images may return an image_urls array. |
| video_url | Video link. |
| media_type | Media type. |
| external_link | External link the Pin points to. |
| source_domain | Domain the content comes from. |
| reaction_count | Number of emoji reactions. |
| repin_count | Number of times the Pin was repinned. Repins are Pinterest's core spread metric. |
| comment_count | Comments. null means not disclosed, not 0. |
| share_count | Shares. null means not disclosed, not 0. |
| dominant_color | Dominant color as a hex value; ready to use in visual analysis. |
| alt_text | Image alt text. |
| posted_at | Publish time in ISO 8601, UTC (for example 2026-08-07T12:34:56+00:00). Non-standard strings from the platform are passed through as is, so parse defensively. null means the platform does not disclose it. |
| author_username | Author's username (@handle), usually usable in URLs. |
| author_name | Author's display name. |
| board_name | Board name. Pinterest saves items into boards. |
| price | Price as a number without a currency symbol; see currency. |
| platform | Source platform identifier, the same as platform in the request (for example xiaohongshu, tiktok). |
| rank | Position in this response, from 1 (search, user_posts, boards, board_pins). |
| author_follower_count | Author's follower count. null means not disclosed. |
| image_urls | Array of image links in the platform's display order; absent when there are no images. |
| image_count | Number of images in this Pin. |
| width | Width of the main image, in pixels. |
| height | Height of the main image, in pixels. |
| video_hls_url | HLS playback link of the video (m3u8); absent when the Pin is not a video Pin. |
| thumbnail_url | Thumbnail link, lower resolution than image_url. |
| duration_sec | Video duration in seconds; absent when the Pin is not a video Pin. |
| duration_seconds | Duration in seconds. null for content that is not video or audio. |
| save_count | Number of times the Pin was saved; not the same number as repin_count. |
| reactions | Reaction counts by emoji type, keyed by Pinterest emoji type ID; they add up to reaction_count. |
| author_id | Author's unique ID on the platform. |
| author_avatar_url | Avatar link of the Pin's author (search, user_posts, pin, board_pins). |
| author_url | Link to the author's profile on the platform. |
| author_is_verified | Whether the poster is a verified account. |
| hashtags | Hashtags in the text, in order of appearance; absent when there are none. |
| tags | Array of tags. An empty array, not null, when there are none. |
| is_ad | Whether the Pin is an ad. |
| is_repost | Whether the Pin was saved from another Pin (not uploaded by its original author). |
| board_id | ID of the board the Pin is on. |
| board_url | Link to the board the Pin is on. |
| thread_id | ID of this Pin's comment thread. |
| is_comments_disabled | Whether comments are turned off. |
| link_title | Title of the external link's page. |
| link_site_name | Name of the site the external link points to. |
| has_shop_product | Whether a purchasable product is attached. |
| product_id | ID of the attached product. |
| product_name | Name of the attached product. |
| product_url | Link to the attached product. |
| product_rating | Rating of the attached product. |
| product_review_count | Number of reviews of the attached product. |
| is_in_stock | Whether the attached product is in stock. |
| tried_count | Number of “Tried it” marks. |
| creator_id | ID of the original creator (only on Pins saved from elsewhere; not the same person as the poster). |
| creator_username | Username of the original creator. |
| creator_name | Display name of the original creator. |
| collected_at | Time this record was collected (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": "topic_pins",
  "params": {
    "topic_id": "918530398158"
  }
}'
```

```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": "topic_pins",
        "params": {
            "topic_id": "918530398158",
        },
    },
    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": "topic_pins",
  "results": [
    {
      "id": …,
      "url": …,
      "title": …,
      "text": …,
      "image_url": …,
      "video_url": …,
      "media_type": …,
      "external_link": …,
      "source_domain": …,
      "reaction_count": …,
      "repin_count": …,
      "comment_count": …,
      "share_count": …,
      "dominant_color": …,
      "alt_text": …,
      "posted_at": …,
      "author_username": …,
      "author_name": …,
      "board_name": …,
      "price": …,
      "platform": …,
      "rank": …,
      "author_follower_count": …,
      "image_urls": …,
      "image_count": …,
      "width": …,
      "height": …,
      "video_hls_url": …,
      "thumbnail_url": …,
      "duration_sec": …,
      "duration_seconds": …,
      "save_count": …,
      "reactions": …,
      "author_id": …,
      "author_avatar_url": …,
      "author_url": …,
      "author_is_verified": …,
      "hashtags": …,
      "tags": …,
      "is_ad": …,
      "is_repost": …,
      "board_id": …,
      "board_url": …,
      "thread_id": …,
      "is_comments_disabled": …,
      "link_title": …,
      "link_site_name": …,
      "has_shop_product": …,
      "product_id": …,
      "product_name": …,
      "product_url": …,
      "product_rating": …,
      "product_review_count": …,
      "is_in_stock": …,
      "tried_count": …,
      "creator_id": …,
      "creator_username": …,
      "creator_name": …,
      "collected_at": …
    }
  ],
  "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
