Skip to Content

Url

How many times a web page was saved to Pinterest.

GET
/v1/pinterest/url

Authorization

apiKey
headerAuthorizationBearer <token>

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

Query Parameters

url*string

The page's address (https://www.nasa.gov/).

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*

How often an outside page was saved to Pinterest.

Example Request
import { SocialAPI } from "@socialapihq/sdk";const client = new SocialAPI({ apiKey: process.env.SOCIALAPI_API_KEY });const { data } = await client.pinterest.url({ url: "https://www.nasa.gov/" });
Example Response
{  "data": {    "url": "https://www.nasa.gov/",    "saves": 29625  }}