Pinterest pin
Beta GET /v1/pinterest/pin
GET /v1/pinterest/pin
One pin: title, description, outbound link, board, pinner, saves, reactions and image or video. Needs the numeric pin id in the URL; pin.it short links are followed.
- Cost: 1 credit
- Status: Beta. Built and tested against recorded responses; the shape may still gain fields.
- Cache: Results are kept up to 30 days; send
max_age_daysto reuse them for free. - Timeout: A request still running after about 25 seconds answers
202with a job to poll (Batch and jobs).
Parameters#
| Name | Type | Required | Description |
|---|---|---|---|
url | URL | yes | Pin URL (pinterest.com/pin/..., pin.it/...). Accepted hosts: pinterest.com, pin.it, pinterest.co.uk, pinterest.ca, pinterest.com.au, pinterest.de, pinterest.fr. |
Every request also accepts:
trim:truefor a smaller response withoutnullfields andextra.raw:trueto also get the platform's original object asraw.max_age_days: accept a cached result up to this many days old, for 0 credits (Caching).
Example request#
Set your key in the environment first (see Authentication).
curl
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/"Python
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,
)
body = res.json()
if body["ok"]:
print(body["data"])
else:
print(body["error"]["code"], body["error"]["message"])TypeScript
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);
}n8n
{
"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": {}
}Example response#
This is a sample from a recorded response, lists and long text are shortened. Status 200.
{
"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,
"keywords": [
"Little Brown Fluffy Puppy",
"Adorable Puppies Fluffy",
"Small Fluffy Brown Puppy"
],
"origin_pinner": "Chloe_hi15",
"saves_total": 4215,
"seo_title": "Adorable Cavapoo Dog in Car | Toy poodles red, Toy poodles for sale near me, Adorable puppies fluffy"
}
},
"cursor": null,
"has_more": null
}Response#
A Post object in data.
See Data models for every field. The envelope around data is described in Responses.
Errors#
Failures are free: credits_charged is 0. Branch on error.code, never on the message.
| Code | HTTP | Retry | Meaning |
|---|---|---|---|
invalid_params | 400 | no | A parameter is missing, unknown or has the wrong type. |
unsupported_url | 400 | no | The URL is not one this endpoint accepts (wrong platform or form). |
not_found | 404 | no | The platform says this profile, post or item does not exist. |
Every request can also fail with the account and platform errors listed on the Errors page.
Example error:
{
"ok": false,
"error": {
"code": "not_found",
"message": "The platform says this profile, post or item does not exist.",
"retryable": false
},
"credits_charged": 0,
"request_id": "req_4eac3811305355500e14e02b"
}Related endpoints#
- Pinterest pin search (
GET /v1/pinterest/search) - Pinterest user boards (
GET /v1/pinterest/profile/boards) - Pinterest board pins (
GET /v1/pinterest/board) - Pinterest topic pins (
GET /v1/pinterest/topic)