How to search Pinterest pins by keyword in Python
Checked on 2026-11-24.
Pinterest's official API v5 has two pin searches. GET /v5/search/pins searches only the pins of the account your token belongs to. GET /v5/search/partner/pins returns the top pins for a search term, but Pinterest marks it as a beta that is "not available to all apps". For the pins Pinterest shows anyone for a keyword, you need that beta granted, or a service that reads Pinterest's public search.
Before any call: an app and a token
Pinterest's getting-started guide asks for a Pinterest business account with a verified email address, acceptance of the developer terms, and a request form for your app: "Application requests are reviewed by Pinterest." An approved app gets Trial access, "best for exploring our API features". For a product with users Pinterest recommends Standard access, which takes a second review with a video of your app's OAuth flow.
Calls carry an OAuth access token. The rate limits page gives Trial access 1,000 requests a day for all API requests, and Standard access 100 requests per second per user per app. Both searches below are in the org_read category: 1,000 requests a day per app on Trial, 1,000 a minute per user per app on Standard.
1. Search your own pins: /v5/search/pins
In the OpenAPI description that Pinterest publishes for API v5 (version 5.32.0 on 24 November 2026), this endpoint is "Search user's Pins". It searches the pins of the "operation user_account", which by default "is the token user_account". Its query parameter "Can contain pin description keywords or comma-separated pin IDs", and the scopes listed for it are boards:read, boards:read_secret, pins:read and pins:read_secret.
import os
import requests
headers = {"Authorization": "Bearer " + os.environ["PINTEREST_ACCESS_TOKEN"]}
res = requests.get(
"https://api.pinterest.com/v5/search/pins",
params={"query": "living room"},
headers=headers,
timeout=30,
)
res.raise_for_status()
page = res.json()
for pin in page["items"]:
print(pin["id"], pin.get("title"), pin.get("link"))
# The next page: the same request with "bookmark": page["bookmark"] in paramsThe answer holds items, full Pin objects with fields such as title, description, link, board_id, created_at and media, and a bookmark for the next page.
Where it stops: at your own account. It finds what the token's account has saved, or, with Business Access, the account that owns an ad account you name in ad_account_id. It does not search Pinterest. Reading other people's pins by id has narrowed as well: the access tiers page warns that an app registered on or after 14 September 2026 "may receive HTTP 403 PINNER_DATA_ACCESS_DENIED error when you request a board or Pin without Pinterest's authorization for non-business users".
2. The top pins for a term: /v5/search/partner/pins
This is the endpoint that answers the question, and its reference begins: "This endpoint is currently in beta and not available to all apps." Its description reads "Get the top 10 Pins by a given search term."
term(required): the search term.country_code(required): "Supported values:AU,CA,GB,IE,NZ, andUS. Other codes are not currently supported."locale,limit(1 to 50, default 10) andbookmarkfor the next page.
Each result is a summarised pin: id, title, description, link, alt_text and media. If Pinterest has given your app access:
res = requests.get(
"https://api.pinterest.com/v5/search/partner/pins",
params={"term": "minimalist home decor", "country_code": "US", "limit": 25},
headers=headers,
timeout=30,
)
res.raise_for_status()
for pin in res.json()["items"]:
print(pin["id"], pin.get("title"), pin.get("link"))Where it stops: at access. Pinterest's page on beta and restricted features describes a beta that is not open to every developer as "available to specific invited developers and organizations. In some cases, we also grant access by request", and says that calling one without access is "likely to receive an error response". You ask your Pinterest representative, or the Help Center under "Request Access to Beta or Restricted Features", with your app ID ready. Even with access, a summarised pin has no like or save count, no board and no account, and only six countries are supported.
3. Any term, without an app: an HTTP API
The Pipefetch search endpoint returns the pins Pinterest's public search shows for a term, read without logging in at the moment of your request. There is no Pinterest app, token or review: one Pipefetch key.
import os
import requests
res = requests.get(
"https://pipefetch.com/v1/pinterest/search",
params={"q": "minimalist home decor", "limit": 20},
headers={"x-api-key": os.environ["PIPEFETCH_API_KEY"]},
timeout=90,
)
if res.status_code == 404:
print("Pinterest returned no pins for this search") # not charged
else:
res.raise_for_status()
for pin in res.json()["data"]["pins"]:
board = pin["board"]["name"] if pin["board"] else None
print(pin["likeCount"], pin["title"], pin["domain"], board, pin["url"])Part of one pin from the answer saved for that search:
{
"title": "Looking for Simple Elegance? Build Your Dream Minimalist Home Here — Click to Shop!",
"imageUrl": "https://i.pinimg.com/originals/d1/86/f1/d186f1a5783ce69a5fa6ee8c2af61a96.png",
"dominantColor": "#a1805e",
"isVideo": false,
"domain": "amazon.com",
"likeCount": 15,
"createdAt": "2026-10-31T00:33:17.000Z",
"board": { "name": "Budget Home Decor Ideas / Living Room Inspiration" },
"annotations": ["Modern Home Decor", "Light Wood Living Room", "Simple Living Room Ideas"]
}Each pin also has its address on Pinterest, its description, a 236-pixel-wide thumbnail with its width and height, and the account that saved it with its follower count. annotations are the search phrases Pinterest attaches to the image, which work as related keywords; some pins have none. A search costs 1 credit whatever the limit, and most take 2 to 9 seconds. A search with no pins answers 404 no_results and costs nothing. A new account has 100 free credits and needs no card.
Where it stops:
- Up to 20 pins per search, in the order Pinterest ranks them, and no further pages.
likeCountis the only count on a pin. Save, comment and share counts are not included.domainis the website a pin links to, and null for an image uploaded without a link. The link itself is not included.- Pins only: boards and accounts cannot be searched.
isVideomarks a video pin; the video is not returned. - It is not an official Pinterest API, and Pipefetch is not affiliated with Pinterest.
Which one should you use?
| You want | Use |
|---|---|
| To search your own pins, or those of an ad account you manage | /v5/search/pins |
| Top pins for a term inside a product Pinterest has let into the beta | /v5/search/partner/pins |
| To create pins, manage boards or read your own analytics | The official API |
| The pins anyone sees for a term, from a script, with like counts and boards | An HTTP API such as Pipefetch |
What Pinterest's terms say
Pinterest's Terms of Service, effective 12 November 2026, say: "In using Pinterest, you agree not to scrape, collect, search, copy or otherwise access data or content from Pinterest in unauthorized ways, such as by using automated means (without our express prior permission)". That sentence is about reading pinterest.com by program, whether with a script of your own or through a service such as this one. The routes Pinterest itself offers are the API and its beta programs. Every pin also names the account that saved it, which is personal data when the account is a person's. Read the terms and weigh them for your own use.
Try it with 100 free credits. No card needed. No scraper to build or maintain. Get an API key or read the docs.
APIs used in this guide
Guides for other sources
Every source
YouTube
- How to get a YouTube transcript in Python
- How to get a YouTube transcript in Node.js
- YouTube API quota exceeded: what the error means and how to fix it
- How to find a YouTube channel ID from a handle or URL
- How to download YouTube subtitles as SRT or VTT
- youtube-transcript-api RequestBlocked or IpBlocked: why it happens and how to fix it
- How to get YouTube comments in Python
- How to search YouTube from Python
- How to list a YouTube channel's videos in Python
- How to summarize a YouTube video with an LLM in Python
- How to get YouTube transcripts and video stats in Google Sheets
- How to get YouTube video views and likes in Python
- How to get YouTube transcripts in n8n, Make and Zapier
- LangChain YoutubeLoader fails on a server: why, and a loader that works
- How to get a YouTube channel's subscriber count in Python
- How to give Claude or Cursor access to YouTube (MCP server)
- How to get YouTube comments in Node.js
- How to analyze YouTube comments with an LLM in Python
- How to list a YouTube channel's Shorts in Python
- How to search YouTube from JavaScript
- How to get an Instagram follower count in Python
- Instagram Basic Display API alternatives: what to use after the shutdown
- Instaloader 401 Unauthorized, 429 and "Login required": what to do
- How to calculate an Instagram engagement rate in Python
- How to get an Instagram follower count in Node.js
- How to get Instagram follower counts in Google Sheets
- How to get Instagram Reel views in Python
Websites
- Clearbit Logo API alternatives: get a company logo from its domain
- How to extract email addresses from a website in Python
- How to turn a web page into Markdown in Python
- How to detect what a website is built with, in Python
- How to get the contact emails and phone numbers of websites in Google Sheets
- How to build a LangChain tool that reads web pages and searches Google
- How to turn a web page into Markdown in JavaScript for RAG
- How to extract social media links from a website in Python
- How to get a website's favicon in Python
- How to check robots.txt in Python before you fetch a page
TikTok
- How to get a TikTok video's views and likes in Python
- How to get the comments of a TikTok video in Python
- How to get a TikTok follower count in Python
- TikTok Research API: who can get access, and what to do if you cannot
- How to get TikTok video views, likes and shares in Node.js
- How to get TikTok views, likes and follower counts in Google Sheets
- How to get a Facebook Page's posts without app review
- Is there a Facebook Marketplace API?
- Facebook Groups API alternatives after its removal in 2024
- How to get a Facebook Page's follower count and contact details in Python
- How to get Google search results in Python
- pytrends 429 TooManyRequestsError: what it means and what to do
- How to get Google Trends data in Python
- Why is Wyoming first in Google Trends?
- How to get Google search results in Node.js
- How to get Google search results into Google Sheets
- How to give an LLM live Google results with tool calling
Threads
- How to get LinkedIn company data in Python
- How to search LinkedIn jobs from Python
- How to get a LinkedIn company page's latest posts in Python