Skip to Content

Topic

A topic's Ideas page with its followers and searches.

GET
/v1/pinterest/topic

Authorization

apiKey
headerAuthorizationBearer <token>

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

Query Parameters

url?string

The topic's Ideas page (https://www.pinterest.com/ideas/coffee-shop/939226065359/).

id?string

The topic'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

One item, as every single-item endpoint answers: { "data": … }.

data*

A topic: an Ideas page.

Example Request
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"      ]    }  }}