The Pinterest APIfor apps and AI agents
Public data from the platforms you work with, through one API.
No scrapers or proxies to build and maintain.
import { SocialAPI } from "@socialapihq/sdk";
const client = new SocialAPI({ apiKey: process.env.SOCIALAPI_API_KEY });
const { data } = await client.pinterest.profile({ handle: "nasa" });
// {
// "data": {
// "username": "nasa",
// "displayName": "NASA",
// "verified": true,
// "followers": 556819,
// "following": 5,
// "posts": 10555,
// …
// }
// }import os
from socialapihq import SocialAPI
client = SocialAPI(api_key=os.environ["SOCIALAPI_API_KEY"])
data = client.pinterest.profile(handle="nasa").data
print(data.display_name, data.followers)
# {
# "data": {
# "username": "nasa",
# "displayName": "NASA",
# "verified": true,
# "followers": 556819,
# "following": 5,
# "posts": 10555,
# …
# }
# }curl -G https://api.socialapi.sh/v1/pinterest/profile \
-H "Authorization: Bearer $SOCIALAPI_API_KEY" \
--data-urlencode "handle=nasa"
# {
# "data": {
# "username": "nasa",
# "displayName": "NASA",
# "verified": true,
# "followers": 556819,
# "following": 5,
# "posts": 10555,
# …
# }
# }