Topic
A topic's Ideas page with its followers and searches.
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
One item, as every single-item endpoint answers: { "data": … }.
data*A topic: an Ideas page.
import { SocialAPI } from "@socialapihq/sdk";const client = new SocialAPI({ apiKey: process.env.SOCIALAPI_API_KEY });const { data } = await client.pinterest.topic({ url: "https://www.pinterest.com/ideas/coffee-shop/939226065359/" });Example Response
{ "data": { "id": "939226065359", "name": "coffee shop", "description": null, "url": "https://www.pinterest.com/ideas/coffee-shop/939226065359/", "posts": null, "views": null, "ext": { "followers": 151044, "searches": 753809, "trendingSearches": [], "related": [ "Cozy Coffee Shop", "Home Cafe", "Cafe Shop" ] } }}