Skip to Content

Board Posts

A board's pins, 25 a page.

GET
/v1/pinterest/board/posts

Authorization

apiKey
headerAuthorizationBearer <token>

An API key from the dashboard: Authorization: Bearer sapi_….

Query Parameters

url?string

The board's link.

id?string

The board's id, instead of url.

cursor?string

nextCursor of the previous page.

maxAge?integer

How old a cached answer may be, in seconds; 0 always fetches. Default and most: the endpoint's cache lifetime.

Formatint64
Range0 <= value

Response Body

The answer.

application/json
  1. response

A page of a list, as every list endpoint answers: { "data": [...], "pagination": … }.

data*array<>
pagination*
Example Request
import { SocialAPI } from "@socialapihq/sdk";const client = new SocialAPI({ apiKey: process.env.SOCIALAPI_API_KEY });const { data, pagination } = await client.pinterest.boardPosts({ url: "https://www.pinterest.com/nasa/learn-with-nasa/" });
Example Response
{  "data": [    {      "id": "e1_AfqPShyR32wzp0E0SUfK16l89tXElInPxuubc7QrT55DYWu4xNSL",      "url": "https://www.pinterest.com/pin/e1_AfqPShyR32wzp0E0SUfK16l89tXElInPxuubc7QrT55DYWu4xNSL/",      "text": "When NASA engineers design robots to go to extreme places, they often get inspiration from insects! In this challenge, you'll think about the unique characteristics of insects, like their wings or antennae, and draw a design for a robotic insect that can meet the unique challenges of its environment.",      "createdAt": null,      "author": {        "id": "142567281862381039",        "username": "nasa",        "displayName": "NASA",        "avatarUrl": "https://i.pinimg.com/75x75_RS/37/a1/75/37a175e6d2431425576f0b8f81389394.jpg",        "verified": true,        "url": "https://www.pinterest.com/nasa/"      },      "stats": {        "views": null,        "likes": 357,        "comments": null,        "shares": null,        "saves": 1581,        "engagementRate": null      },      "media": [        {          "kind": "image",          "url": "https://i.pinimg.com/originals/89/b3/fe/89b3fe8e465f05f1ad88ab01b6ff409e.jpg",          "thumbnailUrl": null,          "width": 1000,          "height": 1500,          "durationSeconds": null        }      ],      "hashtags": [],      "mentions": [],      "ext": {        "kind": "image",        "title": "Design a Robotic Insect With NASA!",        "link": "https://www.jpl.nasa.gov/edu/resources/project/design-a-robotic-insect-2/",        "domain": "jpl.nasa.gov",        "board": {          "id": "142567213143159083",          "name": "Learn With NASA",          "url": "https://www.pinterest.com/nasa/learn-with-nasa/"        },        "commentsId": "5397993390826646980",        "openable": false,        "dominantColor": "#3d51a1",        "altText": "When NASA engineers design robots to go to extreme places, they often get inspiration from insects! In this challenge, you'll think about the unique characteristics of insects, like their wings or antennae, and draw a design for a robotic insect that can meet the unique challenges of its environment.",        "commentsDisabled": false      }    },    {      "id": "e1_AfqPShzwtPa3v3lGBz1Je9mRkmi6hgCqSe6QsTbsLUqcDvZ2TxT8",      "url": "https://www.pinterest.com/pin/e1_AfqPShzwtPa3v3lGBz1Je9mRkmi6hgCqSe6QsTbsLUqcDvZ2TxT8/",      "text": "Explore the wonder of space exploration from home. Here you can find out how to make rockets, Mars rovers and Moon landers out of materials you have at home. Watch videos to learn to make volcanos, cloud mobiles and more with subtitles in Spanish.",      "createdAt": null,      "author": {        "id": "142567281862381039",        "username": "nasa",        "displayName": "NASA",        "avatarUrl": "https://i.pinimg.com/75x75_RS/37/a1/75/37a175e6d2431425576f0b8f81389394.jpg",        "verified": true,        "url": "https://www.pinterest.com/nasa/"      },      "stats": {        "views": null,        "likes": 437,        "comments": null,        "shares": null,        "saves": 1768,        "engagementRate": null      },      "media": [        {          "kind": "image",          "url": "https://i.pinimg.com/originals/44/ef/b3/44efb39ef37d62b2bb57b8408d962810.png",          "thumbnailUrl": null,          "width": 1000,          "height": 1500,          "durationSeconds": null        }      ],      "hashtags": [],      "mentions": [],      "ext": {        "kind": "image",        "title": "Learning Space With NASA at Home",        "link": "https://www.nasa.gov/stem-content/learning-space-with-nasa-at-home/",        "domain": "nasa.gov",        "board": {          "id": "142567213143159083",          "name": "Learn With NASA",          "url": "https://www.pinterest.com/nasa/learn-with-nasa/"        },        "commentsId": "5399627297336638381",        "openable": false,        "dominantColor": "#4d3b40",        "altText": "A graphic with a deep blue background to represent space, with stars sprinkled in. In the center of the image are the words \"Learning Space with NASA at Home\" in white lettering with a orange glow around it. Surrounding the words are different icons show how much there is to learn. A cartoon moon is in the bottom right corner, with a rocket to the left of it. Above the rocket is a cartoon astronau…",        "commentsDisabled": false      }    }  ],  "pagination": {    "nextCursor": "Y2JZakk0ZVU1WWQzcE5WRVV4VDBSbmVVMVVXVEpPVkVFd1RsUmpkMHRyWkZKVVEzQTRUa2RTYVZwWFNtaE5WRlp0VG1wSmVWcHRXbXRPUjFKcVdtMVJORmx0UlhsT2VrVjVXbXBhYUU5VVVYbE9Na2t5V1dwamVWcHFaR3hPVkZFd1dYcE9iRTF0V20xYVYxRjZXbFJyZVUweVdtdGFWRmw0V2xoNFQxSldaRGc9fFVIbzVUMkl5Tld4bVJFMTRUVlJWTkU5RVNYaE9hbGt4VFVSUk1VNTZRWEZTTVVaTlMyNTNlazFxV210YVIwVXlUVWRXYkU1dFNURlBSRTB3VG1wb2FsbDZVVEZOYlZKclRWUmthVTVxYUd4Wk1sVjZXbFJSTVU1WFRYaGFS…",    "hasMore": true  }}