Topic Posts
A topic's top pins, about 20.
GET
apiKeyheader
AuthorizationBearer <token>An API key from the dashboard: Authorization: Bearer sapi_….
url?stringThe topic's Ideas page (https://www.pinterest.com/ideas/coffee-shop/939226065359/).
id?stringThe topic's id, instead of url.
maxAge?integerHow old a cached answer may be, in seconds; 0 always fetches. Default and most: the endpoint's cache lifetime.
Format
int64Range
0 <= valueThe answer.
application/json- response
A page of a list, as every list endpoint answers: { "data": [...], "pagination": … }.
data*array<>pagination*import { SocialAPI } from "@socialapihq/sdk";const client = new SocialAPI({ apiKey: process.env.SOCIALAPI_API_KEY });const { data, pagination } = await client.pinterest.topicPosts({ id: "939226065359" });Example Response
{ "data": [ { "id": "e1_AfqPShyA9EPC4atJNOOxtggSFunLC85PdDFz5CRAhYk7L6GCojmB", "url": "https://www.pinterest.com/pin/e1_AfqPShyA9EPC4atJNOOxtggSFunLC85PdDFz5CRAhYk7L6GCojmB/", "text": null, "createdAt": null, "author": null, "stats": { "views": null, "likes": null, "comments": null, "shares": null, "saves": null, "engagementRate": null }, "media": [ { "kind": "image", "url": "https://i.pinimg.com/originals/4d/3f/f2/4d3ff29617ffbe87d39a2a1eaca80e3d.jpg", "thumbnailUrl": null, "width": 2108, "height": 2810, "durationSeconds": null } ], "hashtags": [], "mentions": [], "ext": { "kind": "image", "title": null, "link": null, "domain": null, "board": null, "commentsId": null, "openable": false, "dominantColor": "#67655f", "altText": null, "commentsDisabled": false } }, { "id": "e1_AfqPShyCHtEsGNVkCjwVyfADK6bRJAjxuGBx0e7fo_YQnF9j-2MD", "url": "https://www.pinterest.com/pin/e1_AfqPShyCHtEsGNVkCjwVyfADK6bRJAjxuGBx0e7fo_YQnF9j-2MD/", "text": null, "createdAt": null, "author": null, "stats": { "views": null, "likes": null, "comments": null, "shares": null, "saves": null, "engagementRate": null }, "media": [ { "kind": "image", "url": "https://i.pinimg.com/originals/1d/7f/f6/1d7ff68258e996fc36f893604c1ea111.png", "thumbnailUrl": null, "width": 768, "height": 1376, "durationSeconds": null } ], "hashtags": [], "mentions": [], "ext": { "kind": "image", "title": null, "link": null, "domain": null, "board": null, "commentsId": null, "openable": false, "dominantColor": "#8f857b", "altText": null, "commentsDisabled": false } } ], "pagination": { "nextCursor": null, "hasMore": false }}