Skip to Content

Board Sections

A board's sections with their pin counts.

GET
/v1/pinterest/board/sections

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.

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.boardSections({ id: "796152109065775648" });
Example Response
{  "data": [    {      "id": "5485478297959732390",      "name": "Coffee shared with...",      "url": null,      "coverUrl": null,      "posts": 38,      "ext": {        "slug": "coffee-shared-with"      }    },    {      "id": "5469726460256259048",      "name": "Tea",      "url": null,      "coverUrl": null,      "posts": 9,      "ext": {        "slug": "tea"      }    }  ],  "pagination": {    "nextCursor": null,    "hasMore": false  }}