POST

API health

24h health
Normal
  • Healthy / normal
  • Available
Normal

Last 24 hours

Last 30 days

Get up to the 50 newest Pins on a Pinterest board 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 board_recent_pins. Price $1.39 per 1,000 requests ($0.001389 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 Board recent pins endpoint (pinterest/board_recent_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 board_recent_pins, and put the parameters inside params.
- Required parameters:
  - url: A board link, https://www.pinterest.com/<username>/<board>/; a relative path works too. Returns up to the 50 newest Pins, in one call.
- Returns a list of records. Main fields of each record: id, url, text, image_url, 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, share_count, dominant_color (Dominant color as a hex value); 51 fields in total, full list at https://api.everyinfra.com/api/v1/social/catalog?platform=pinterest.
- Example request body:
{
  "platform": "pinterest",
  "action": "board_recent_pins",
  "params": {
    "url": "https://www.pinterest.com/pinterest/official-news/"
  }
}
- Price: $1.39 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.
actionbodystringYesboard_recent_pinsCapability identifier, fixed value.
urlbody.paramsstringYes-A board link, https://www.pinterest.com/<username>/<board>/; a relative path works too. Returns up to the 50 newest Pins, in one call.

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": "board_recent_pins",
  "params": {
    "url": "https://www.pinterest.com/pinterest/official-news/"
  }
}'

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": "board_recent_pins",  "results": [    {      "id": …,      "url": …,      "text": …,      "image_url": …,      "media_type": …,      "external_link": …,      "source_domain": …,      "reaction_count": …,      "repin_count": …,      "comment_count": …,      "share_count": …,      "dominant_color": …,      "alt_text": …,      "author_username": …,      "author_name": …,      "board_name": …,      "price": …,      "platform": …,      "rank": …,      "author_follower_count": …,      "image_urls": …,      "image_count": …,      "width": …,      "height": …,      "thumbnail_url": …,      "save_count": …,      "reactions": …,      "author_id": …,      "author_avatar_url": …,      "author_url": …,      "author_is_verified": …,      "hashtags": …,      "tags": …,      "is_ad": …,      "is_repost": …,      "board_id": …,      "board_url": …,      "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.
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.
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.
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.
thumbnail_urlThumbnail link, lower resolution than image_url.
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.
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