Pinterest pin API
One pin: title, description, outbound link, board, pinner, saves, reactions and image or video.
- Cost
- 1 credit
- Cached repeats
- 0 creditssend max_age_days, results kept 30 days
- Failed requests
- 0 credits
- Status
- Betashape may still gain fields
Needs the numeric pin id in the URL; pin.it short links are followed.
You send url.
Request
Send your key in the x-api-key header.
curl -G "https://api.socialscrape.io/v1/pinterest/pin" \
-H "x-api-key: $SOCIALSCRAPE_API_KEY" \
--data-urlencode 'url=https://www.pinterest.com/pin/36662184461578355/'import os
import requests
params = {
"url": "https://www.pinterest.com/pin/36662184461578355/",
}
res = requests.get(
"https://api.socialscrape.io/v1/pinterest/pin",
headers={"x-api-key": os.environ["SOCIALSCRAPE_API_KEY"]},
params=params,
timeout=60,
)
body = res.json()
if body["ok"]:
print(body["data"])
else:
print(body["error"]["code"], body["error"]["message"])const url = new URL("https://api.socialscrape.io/v1/pinterest/pin");
url.search = new URLSearchParams({
url: "https://www.pinterest.com/pin/36662184461578355/",
}).toString();
const res = await fetch(url, {
headers: { "x-api-key": process.env.SOCIALSCRAPE_API_KEY! },
});
const body = await res.json();
if (body.ok) {
console.log(body.data);
} else {
console.error(body.error.code, body.error.message);
}{
"nodes": [
{
"name": "SocialScrape Pinterest pin",
"type": "n8n-nodes-base.httpRequest",
"typeVersion": 4.2,
"position": [
0,
0
],
"parameters": {
"method": "GET",
"url": "https://api.socialscrape.io/v1/pinterest/pin",
"sendQuery": true,
"queryParameters": {
"parameters": [
{
"name": "url",
"value": "https://www.pinterest.com/pin/36662184461578355/"
}
]
},
"sendHeaders": true,
"headerParameters": {
"parameters": [
{
"name": "x-api-key",
"value": "={{ $env.SOCIALSCRAPE_API_KEY }}"
}
]
}
}
}
],
"connections": {}
}Parameters
| Name | Type | Required | Description |
|---|---|---|---|
url | url | yes | Pin URL (pinterest.com/pin/..., pin.it/...). |
Every request also accepts trim, raw and max_age_days.
Response
Sample from a recorded response, shortened. Values are public data, not yours.
{
"ok": true,
"credits_charged": 1,
"credits_remaining": 4999,
"cached": false,
"cached_at": null,
"request_id": "req_ce80ce4673e587d1c5c74834",
"data": {
"object": "post",
"platform": "pinterest",
"id": "36662184461578355",
"url": "https://www.pinterest.com/pin/36662184461578355/",
"type": "pin",
"author": {
"id": "36662321874996715",
"handle": "cc1025",
"name": "Crystal Catlett",
"url": "https://www.pinterest.com/cc1025/",
"avatar_url": "https://i.pinimg.com/75x75_RS/51/76/82/5176824c31aaeec633f0f09bf1ca12e4.jpg",
"verified": false
},
"title": null,
"text": null,
"published_at": "2025-06-09T04:04:22Z",
"duration_seconds": null,
"language": null,
"hashtags": null,
"mentions": null,
"stats": {
"views": null,
"likes": 539,
"comments": 0,
"shares": 0,
"saves": 4215,
"dislikes": null
},
"media": {
"thumbnail_url": "https://i.pinimg.com/236x/71/5c/5d/715c5d48feb038e16f48a28e6f8ca1f3.jpg",
"video_url": null,
"audio_url": null,
"image_urls": [
"https://i.pinimg.com/originals/71/5c/5d/715c5d48feb038e16f48a28e6f8ca1f3.jpg"
],
"width": 826,
"height": 1200
},
"song": null,
"location": null,
"is_pinned": null,
"is_sponsored": false,
"extra": {
"board": {
"id": "36662253155645170",
"name": "Awwwww! :0)",
"url": "https://www.pinterest.com/cc1025/awwwww-0/"
},
"domain": "Uploaded by user",
"dominant_color": "#7d6b58",
"done_count": 1,
"is_repin": true,
"is_video": false
}
},
"cursor": null,
"has_more": null
}Fields
One Post in data.
A field the platform does not give is null, never made up. Extra platform details are in extra.
| Field | Type | Always | Notes |
|---|---|---|---|
object | "post" | ||
platform | Platform | yes | |
id | string | yes | |
url | string or null | ||
type | "video" or "short" or "reel" or "image" or "carousel" or "story" or "live" or "clip" or "text" or "link" or "tweet" or "pin" or "community_post" or "episode" or "unknown" | ||
author | Author or null | ||
title | string or null | ||
text | string or null | ||
published_at | string (ISO 8601 date-time) or null | ||
duration_seconds | number or null | ||
language | string or null | ||
hashtags | string[] or null | ||
mentions | string[] or null | ||
stats | Stats |
Show the other 6 fields
Full field list in the reference for this endpoint and the data models. Errors are listed under Errors.
Questions
Which errors can it return?
invalid_params (do not retry), unsupported_url (do not retry), not_found (do not retry). Account and platform errors from the errors list can also happen. A failure always costs 0 credits.
Is there an SDK call for it?
The preview Python client has client.pinterest.pin(...) and the TypeScript client client.pinterest.pin(). Both return the same envelope as the HTTP API. The packages are not published yet; plain HTTP works today in any language.
Can an AI agent call it?
Yes. The MCP server reaches every built endpoint, with the same prices.