Docs menu

Pinterest topic pins

Beta GET /v1/pinterest/topic

GET /v1/pinterest/topic

Pins for an ideas topic. parent is the topic with its search_count and related refinements (first page only: they come from the ideas page).

  • 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_days to reuse them for free.
  • Timeout: A request still running after about 25 seconds answers 202 with a job to poll (Batch and jobs).

Parameters#

NameTypeRequiredDescription
urlURLyesTopic URL (pinterest.com/ideas/<topic>/<id>/). Accepted hosts: pinterest.com, pin.it, pinterest.co.uk, pinterest.ca, pinterest.com.au, pinterest.de, pinterest.fr.

Every request also accepts:

  • cursor: the cursor from the previous page (Pagination).
  • trim: true for a smaller response without null fields and extra.
  • raw: true to also get the platform's original object as raw.
  • 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/topic" \
  -H "x-api-key: $SOCIALSCRAPE_API_KEY" \
  --data-urlencode "url=https://www.pinterest.com/ideas/how-to-stop-leash-pulling/894604313079/"
Python
import os
import requests

params = {
    "url": "https://www.pinterest.com/ideas/how-to-stop-leash-pulling/894604313079/",
}
res = requests.get(
    "https://api.socialscrape.io/v1/pinterest/topic",
    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/topic");
url.search = new URLSearchParams({
  "url": "https://www.pinterest.com/ideas/how-to-stop-leash-pulling/894604313079/"
}).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 topic pins",
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.2,
      "position": [
        0,
        0
      ],
      "parameters": {
        "method": "GET",
        "url": "https://api.socialscrape.io/v1/pinterest/topic",
        "sendQuery": true,
        "queryParameters": {
          "parameters": [
            {
              "name": "url",
              "value": "https://www.pinterest.com/ideas/how-to-stop-leash-pulling/894604313079/"
            }
          ]
        },
        "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_1b68e1a2370feee91d9bb77e",
  "data": {
    "object": "list",
    "items": [
      {
        "object": "post",
        "platform": "pinterest",
        "id": "e1_AfqPShzEpo1_wY8uuOmNbflNGOtzqgTv7-FDd98NRSlXAFTkDJiw",
        "url": "https://www.pinterest.com/pin/e1_AfqPShzEpo1_wY8uuOmNbflNGOtzqgTv7-FDd98NRSlXAFTkDJiw/",
        "type": "pin",
        "author": {
          "id": "942378428185917982",
          "handle": "doggytastic",
          "name": "DOGGYTASTIC",
          "url": "https://www.pinterest.com/doggytastic/",
          "avatar_url": "https://i.pinimg.com/140x140_RS/4f/6c/bb/4f6cbb0b080113d0deee783b6d1c2db4.jpg",
          "verified": false
        },
        "title": "How To Stop Your Dog From Pulling On The Leash? Effective Training Tips",
        "text": "How To Stop Your Dog From Pulling On The Leash? Discover effective leash training techniques to enjoy calm and enjoyable walks with your dog. Say goodbye to pulling and hello to pleasant strolls together. \n\nClick through to master the art o...",
        "published_at": "2024-07-03T09:00:18Z",
        "duration_seconds": null,
        "language": null,
        "hashtags": null,
        "mentions": null,
        "stats": {
          "views": null,
          "likes": 2,
          "comments": null,
          "shares": null,
          "saves": null,
          "dislikes": null
        },
        "media": {
          "thumbnail_url": "https://i.pinimg.com/236x/ef/40/9a/ef409a3294a09dd1362e1f146db74b21.jpg",
          "video_url": null,
          "audio_url": null,
          "image_urls": [
            "https://i.pinimg.com/originals/ef/40/9a/ef409a3294a09dd1362e1f146db74b21.jpg"
          ],
          "width": 800,
          "height": 1200
        },
        "song": null,
        "location": null,
        "is_pinned": null,
        "is_sponsored": false,
        "extra": {
          "alt_text": "a woman walking her dog with the words how to stop your dog from pulling on the leash",
          "board": {
            "id": "942378359467204545",
            "name": "Dog Training Advice & Obedience Tips",
            "url": "https://www.pinterest.com/doggytastic/dog-training-advice-obedience-tips/"
          },
          "domain": "doggytastic.com",
          "dominant_color": "#6a706e",
          "keywords": [
            "Dog Walking Training",
            "Dog Leash Training Tips",
            "How To Leash Train A Dog"
          ],
          "link": "https://www.doggytastic.com/how-to-stop-your-dog-from-pulling-on-the-leash/"
        }
      },
      {
        "object": "post",
        "platform": "pinterest",
        "id": "e1_AfqPShwwtRtsIGEAnEL2IzS42taJiLNBEDJgsAePnZMIo_JHDF9O",
        "url": "https://www.pinterest.com/pin/e1_AfqPShwwtRtsIGEAnEL2IzS42taJiLNBEDJgsAePnZMIo_JHDF9O/",
        "type": "pin",
        "author": {
          "id": "396035498390324686",
          "handle": "ShaysHappyPlace",
          "name": "My Happy Place",
          "url": "https://www.pinterest.com/ShaysHappyPlace/",
          "avatar_url": "https://i.pinimg.com/140x140_RS/95/2f/fe/952ffe7c63d57ce04f44788526e4882d.jpg",
          "verified": false
        },
        "title": "7 Training Tips to Stop a Dog Pulling on a Harness",
        "text": "Dog pulling on leash even when you're using a harness? Here are six tips to stop leash pulling using positive training techniques #dogs #dogtraining #dogtips #dogtrainingtips #positivereinforcement",
        "published_at": "2020-08-06T03:20:53Z",
        "duration_seconds": null,
        "language": null,
        "hashtags": null,
        "mentions": null,
        "stats": {
          "views": null,
          "likes": 3,
          "comments": null,
          "shares": null,
          "saves": null,
          "dislikes": null
        },
        "media": {
          "thumbnail_url": "https://i.pinimg.com/236x/ae/8d/d3/ae8dd3b3c70309a6eed1347f7116df88.jpg",
          "video_url": null,
          "audio_url": null,
          "image_urls": [
            "https://i.pinimg.com/originals/ae/8d/d3/ae8dd3b3c70309a6eed1347f7116df88.jpg"
          ],
          "width": 550,
          "height": 1300
        },
        "song": null,
        "location": null,
        "is_pinned": null,
        "is_sponsored": false,
        "extra": {
          "alt_text": "two dogs on leashes with the title 6 training tips for harnessing",
          "board": {
            "id": "396035429670941588",
            "name": "Woof!",
            "url": "https://www.pinterest.com/ShaysHappyPlace/woof/"
          },
          "domain": "thedogclinic.com",
          "dominant_color": "#967d8e",
          "keywords": [
            "Socializing Dogs",
            "Dog Commands",
            "Dog Behavior Problems"
          ],
          "link": "https://www.thedogclinic.com/harness-pulling-tips"
        }
      }
    ],
    "cursor": "Y2JVSG81V2sxcmNHRlpWM1J5VFVad1YxWlVSbGhXTVVreVZUSnpOVlV4U1hsVlZFcFhVbXh3VkZZeWMzaGphelZWVjIxb2JHRjZWbEpXVjNScllXMVdSMVZ1VW1wU2JrSnpWV3hvVTJWV1pISlhhM1JYVm10V05sVldVbE5YUmxwMFZXeFNXbFpGUmpSVmJGcExWbFpLYzJOR1pFNVdNMDR6Vm10ak1XUXhVblJXYmtwT1Zt...",
    "has_more": true,
    "parent": {
      "object": "collection",
      "platform": "pinterest",
      "id": "894604313079",
      "url": "https://www.pinterest.com/ideas/how-to-stop-leash-pulling/894604313079/",
      "kind": "topic",
      "title": "how to stop leash pulling",
      "description": null,
      "owner": null,
      "item_count": null,
      "cover_url": "https://i.pinimg.com/originals/4a/37/01/4a37015f1235a9b6434aaa8ae42a61bb.jpg",
      "updated_at": "2026-10-30T00:10:58Z",
      "extra": {
        "refinements": [
          {
            "label": "Dog",
            "name": "Dog Leash",
            "url": "https://www.pinterest.com/ideas/dog-leash/920936006020/"
          },
          {
            "label": "Holder",
            "name": "Dog Leash Holder",
            "url": "https://www.pinterest.com/ideas/dog-leash-holder/893453821037/"
          },
          {
            "label": "Cat",
            "name": "Cat Leash",
            "url": "https://www.pinterest.com/ideas/cat-leash/927222536363/"
          }
        ],
        "search_count": 29
      }
    }
  },
  "cursor": "Y2JVSG81V2sxcmNHRlpWM1J5VFVad1YxWlVSbGhXTVVreVZUSnpOVlV4U1hsVlZFcFhVbXh3VkZZeWMzaGphelZWVjIxb2JHRjZWbEpXVjNScllXMVdSMVZ1VW1wU2JrSnpWV3hvVTJWV1pISlhhM1JYVm10V05sVldVbE5YUmxwMFZXeFNXbFpGUmpSVmJGcExWbFpLYzJOR1pFNVdNMDR6Vm10ak1XUXhVblJXYmtwT1Zt...",
  "has_more": true
}

Response#

A list of Post objects in data.items, with data.cursor and data.has_more.

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.

CodeHTTPRetryMeaning
invalid_params400noA parameter is missing, unknown or has the wrong type.
unsupported_url400noThe URL is not one this endpoint accepts (wrong platform or form).
not_found404noThe 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.