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

#
NameInTypeRequiredDefaultDescription
AuthorizationheaderstringYes-Bearer followed by your API key. Create it in the console; never put it in a URL or a code repository.
platformbodystringYespinterestPlatform identifier, fixed value.
actionbodystringYestopic_pinsCapability identifier, fixed value.
topic_idbody.paramsstringYes-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.

FieldMeaning
idThe record's unique ID on the platform. Unique only within one platform; IDs can repeat across platforms.
urlLink to the record on the platform.
titleTitle. null when the platform has no titles (for example text-only posts).
textBody 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_urlImage link. Capabilities with several images may return an image_urls array.
video_urlVideo link.
media_typeMedia type.
external_linkExternal link the Pin points to.
source_domainDomain the content comes from.
reaction_countNumber of emoji reactions.
repin_countNumber of times the Pin was repinned. Repins are Pinterest's core spread metric.
comment_countComments. null means not disclosed, not 0.
share_countShares. null means not disclosed, not 0.
dominant_colorDominant color as a hex value; ready to use in visual analysis.
alt_textImage alt text.
posted_atPublish 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_usernameAuthor's username (@handle), usually usable in URLs.
author_nameAuthor's display name.
board_nameBoard name. Pinterest saves items into boards.
pricePrice as a number without a currency symbol; see currency.
platformSource platform identifier, the same as platform in the request (for example xiaohongshu, tiktok).
rankPosition in this response, from 1 (search, user_posts, boards, board_pins).
author_follower_countAuthor's follower count. null means not disclosed.
image_urlsArray of image links in the platform's display order; absent when there are no images.
image_countNumber of images in this Pin.
widthWidth of the main image, in pixels.
heightHeight of the main image, in pixels.
video_hls_urlHLS playback link of the video (m3u8); absent when the Pin is not a video Pin.
thumbnail_urlThumbnail link, lower resolution than image_url.
duration_secVideo duration in seconds; absent when the Pin is not a video Pin.
duration_secondsDuration in seconds. null for content that is not video or audio.
save_countNumber of times the Pin was saved; not the same number as repin_count.
reactionsReaction counts by emoji type, keyed by Pinterest emoji type ID; they add up to reaction_count.
author_idAuthor's unique ID on the platform.
author_avatar_urlAvatar link of the Pin's author (search, user_posts, pin, board_pins).
author_urlLink to the author's profile on the platform.
author_is_verifiedWhether the poster is a verified account.
hashtagsHashtags in the text, in order of appearance; absent when there are none.
tagsArray of tags. An empty array, not null, when there are none.
is_adWhether the Pin is an ad.
is_repostWhether the Pin was saved from another Pin (not uploaded by its original author).
board_idID of the board the Pin is on.
board_urlLink to the board the Pin is on.
thread_idID of this Pin's comment thread.
is_comments_disabledWhether comments are turned off.
link_titleTitle of the external link's page.
link_site_nameName of the site the external link points to.
has_shop_productWhether a purchasable product is attached.
product_idID of the attached product.
product_nameName of the attached product.
product_urlLink to the attached product.
product_ratingRating of the attached product.
product_review_countNumber of reviews of the attached product.
is_in_stockWhether the attached product is in stock.
tried_countNumber of “Tried it” marks.
creator_idID of the original creator (only on Pins saved from elsewhere; not the same person as the poster).
creator_usernameUsername of the original creator.
creator_nameDisplay name of the original creator.
collected_atTime 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.

Errors

Google Analytics needs consent. Privacy