Pinterest Topic pins API
POST
API health
- 24h health
- Normal
- Healthy / normal
- Available
Normal
Last 24 hours
Last 30 days
List the Pins on a Pinterest topic page, up to about 90 in one call, with media, outbound link and engagement.
Send POST https://api.everyinfra.com/api/v1/social with platform set to pinterest and action set to topic_pins. Price $24 per 1,000 requests ($0.024 per call). Failed calls and empty results are not charged. Synchronous. For slow jobs add "mode": "async" to the body, take the job_id and poll.
AI prompt
#Please help me write a data collection script with the EveryInfra Pinterest Topic pins endpoint (pinterest/topic_pins).
How the endpoint works:
- Request: POST https://api.everyinfra.com/api/v1/social with the header Authorization: Bearer <API key>. Read the key from the EVERYINFRA_API_KEY environment variable and never hard-code it.
- In the request body, set platform to pinterest and action to topic_pins, and put the parameters inside params.
- Required parameters:
- topic_id: A numeric topic ID, or a topic page link https://www.pinterest.com/ideas/<name>/<ID>/.
- Returns a list of records. Main fields of each record: id, url, title, text, image_url, 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), comment_count; 58 fields in total, full list at https://api.everyinfra.com/api/v1/social/catalog?platform=pinterest.
- Example request body:
{
"platform": "pinterest",
"action": "topic_pins",
"params": {
"topic_id": "918530398158"
}
}
- Price: $24 per 1,000 requests; failed and empty results are not charged.
- For dozens or hundreds of targets, add "mode": "async" to the body: you get a job_id at once and poll GET https://api.everyinfra.com/api/v1/jobs/{job_id} for the result.
- On 422, fix the request using the suggested parameter names and allowed values in the error; on 429 or 503, wait for Retry-After and try again.
Before writing code, ask me which targets I need, how many, which fields, and what output format I want; then confirm the plan and the rough cost with me.Request parameters
#| Name | In | Type | Required | Default | Description |
|---|---|---|---|---|---|
Authorization | header | string | Yes | - | Bearer followed by your API key. Create it in the console; never put it in a URL or a code repository. |
platform | body | string | Yes | pinterest | Platform identifier, fixed value. |
action | body | string | Yes | topic_pins | Capability identifier, fixed value. |
topic_id | body.params | string | Yes | - | A numeric topic ID, or a topic page link https://www.pinterest.com/ideas/<name>/<ID>/. |
Code samples
#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"
}
}'OpenAPI definition (JSON)Samples read the key from the EVERYINFRA_API_KEY environment variable; copied code never contains your key.
Response example
#No sample response is available for these parameters yet. This preview shows the response shape and fields from the API definition, with … as placeholders; it is not the result of a live call.
json
{ "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": { … }}
Response fields
#Business data is in results. The table lists the fields a record can contain. Values the platform does not show are never made up.
| 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). |
Errors and billing
#- 401
- Missing or invalid key.
- 402
- Insufficient balance. Top up first.
- 422
- Invalid parameter name or value. Fix it using the suggestions in the error. No charge.
- 429
- Per-minute request limit reached. Wait for Retry-After, then try again.
- 503
- Could not complete. The held charge is returned to your balance. If the outcome is unknown, verify it before you retry.
- 200 empty
- No data. No charge.