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.

Python
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 params

The 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, and US. Other codes are not currently supported."
  • locale, limit (1 to 50, default 10) and bookmark for the next page.

Each result is a summarised pin: id, title, description, link, alt_text and media. If Pinterest has given your app access:

Python
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.

Python
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:

JSON
{
  "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.
  • likeCount is the only count on a pin. Save, comment and share counts are not included.
  • domain is 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. isVideo marks 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 wantUse
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 analyticsThe official API
The pins anyone sees for a term, from a script, with like counts and boardsAn 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.

Every source

YouTube

Instagram

Websites

TikTok

Facebook

Google

Threads

LinkedIn

App stores

Steam

X

Airbnb

Real estate

Keywords

Job boards

Eventbrite

Shopify stores

Public tenders

All guides