  [Home](https://scrapfly.io/)/[Scrapers](https://scrapfly.io/scrapers)/**Pinterest**

Pins · search results · boards

# // Pinterest Scraper API

Get public Pinterest data as clean JSON: pin details, keyword search results and board details. Scrapfly loads the page from the country you choose, so you send a URL and read the data.

- **Clone it and run it.** An open-source Pinterest search scraper that pages through keyword results, tested against live Pinterest every night.
- **One request per pin.** A public pin page carries its title, image, save count, board and source link in its meta tags, so a single request without a browser returns them.
 
 [Get free API key](https://scrapfly.io/register) [View GitHub scraper](https://github.com/scrapfly/scrapfly-scrapers/tree/main/pinterest-scraper) [Read the API docs](https://scrapfly.io/docs/scrape-api/getting-started) 

**$0.10 to $3.00 per 1,000 pages** on the Pro plan: 1 to 30 credits a page, depending on whether the page needs a browser and residential proxies, at $0.10 per 1,000 credits.

1,000 free credits. No credit card required.

 [  ](https://scrapeway.com/web-scraping-api/scrapfly) [  ](https://www.capterra.com/p/212653/Scrapfly/reviews/)  

 4.8/5 from 248 reviews 

 

 

 

 

 Pinterest pages · illustration

  

 

 Pin JSON**Output**

```
{
  <span class="c-str">"pin_id"</span>: <span class="c-str">"142567144444540246"</span>,
  <span class="c-str">"saves"</span>: <span class="c-num">17</span>,
  <span class="c-str">"board"</span>: <span class="c-str">"nasa/mars"</span>,
  <span class="c-str">"pinner"</span>: <span class="c-str">"nasa"</span>,
  <span class="c-str">"source"</span>: <span class="c-str">"www.nasa.gov"</span>,
  <span class="c-str">"image"</span>: <span class="c-str">"736x413"</span>,
  <span class="c-str">"updated"</span>: <span class="c-str">"2022-06-27"</span>
}
```

Printed by the Python request below[See the request ↓](#implementation)

   

  

What you can scrape from Pinterest

Four kinds of public Pinterest data you can scrape with Scrapfly.

 

## // Scrape Pinterest pins

A public pin page gives the pin's title and description, its image with width and height, the save count, the link to the source page, the board it was saved to and the pinner's profile. It all comes from one request for the pin URL.

- og:title
- og:image
- pinterestapp:repins
- pinterestapp:source
- pinterestapp:pinboard

  

## // Scrape Pinterest search results

Search for a keyword and get each result with its title and description where the pinner wrote one, the image URL, the board and pinner, the source site and link, whether it is a product pin, and when it was created. Results arrive a page at a time, and the open-source scraper follows them page by page.

- search/pins
- BaseSearchResource
- bookmark
- is\_product

  

## // Scrape Pinterest boards

A public board page gives the board's name, its owner, the number of pins, the follower count and the date it was created. The details sit in the page JSON, so one request returns them without a browser.

- BoardResource
- pin\_count
- follower\_count
- created\_at

  

## // Pin images and alt text

Search results give each pin's image as an original-size URL and a 236 px thumbnail, with the alt text Pinterest writes to describe the picture. Pin pages give a 736 px image URL with its dimensions.

- orig
- 236x
- auto\_alt\_text
- og:image:width

  

 

  

Reliability

## // Read Pinterest the way the page builds it

Pinterest's web pages are an app around data. Pins put their details in meta tags, boards put theirs in a JSON script tag, and search results arrive in background calls after the page loads. Read those, not the visible layout, and store each record with the time you collected it.

 `og:title`

A pin's meta tags hold its title, description, image, save count, source link, board and pinner. Pinterest appends related search phrases to them: after a vertical bar in the title, and at the end of the description. Split them off before you store the text.

 

 `BaseSearchResource`

With `render_js`, Scrapfly records the page's background calls under `browser_data.xhr_call`. Search results are in the `BaseSearchResource` responses, and each one carries a bookmark that requests the next page.

 

 `__PWS_INITIAL_PROPS__`

Board pages ship this JSON script tag with the board's details: name, owner, pin count, follower count and creation date. Parse it directly, no browser needed.

 

 

 

  

Choose your tools

## // Scrapfly products for Pinterest scraping

Start with the Web Scraping API. Add structured extraction, screenshots or a browser session as your workflow needs them, or start from the open-source scraper. One API key covers all four products.

 

### Web Scraping API for Pinterest pages

Send a Pinterest pin or board URL on datacenter proxies in the country you choose, and get the page back with the pin's meta tags or the board's JSON inside, without a browser.

For search, add `render_js` and the Unblocker with residential proxies, then read the search calls Pinterest makes after the page loads.

```
GET /scrape?url=https://www.pinterest.com/pin/142567144444540246/&proxy_pool=public_datacenter_pool&country=US
```

 [Explore Web Scraping API →](https://scrapfly.io/products/web-scraping-api)  

### Data Extraction API for Pinterest pins

Render a Pinterest pin page and add `extraction_model=social_media_post` to get the pin back as JSON, with no parser to write.

It returns the title, the image URL with its description, the pinner's name, username and profile link, the source link and the posting date.

```
GET /scrape?url=https://www.pinterest.com/pin/142567144444540246/&proxy_pool=public_residential_pool&country=US&render_js=true&rendering_wait=5000&extraction_model=social_media_post
```

 [Explore Data Extraction API →](https://scrapfly.io/products/extraction-api)  

### Screenshot API for Pinterest pins

Capture a public pin page as a first-time visitor sees it, with Pinterest's welcome prompt over the page.

Keep a dated visual record of a pin and the pins shown around it next to your JSON.

```
GET /screenshot?url=https://www.pinterest.com/pin/142567144444540246/&country=US&rendering_wait=5000&resolution=1920x1080
```

 [Explore Screenshot API →](https://scrapfly.io/products/screenshot-api)  

### Cloud Browser API for Pinterest sessions

Open Pinterest in a hosted Chromium session on residential proxies in the country you choose.

Connect Playwright or Puppeteer, open a public pin and read the page as it loads, with the pin's meta tags inside.

```
chromium.connect_over_cdp("wss://browser.scrapfly.io?key=KEY&proxy_pool=residential&country=us")
```

 [Explore Cloud Browser API →](https://scrapfly.io/products/cloud-browser-api)  

### Open-source Pinterest scraper on GitHub

Clone the maintained Python scraper for Pinterest keyword search. It returns each result with its title, description, alt text, image URLs, board, pinner and source link.

It runs on the Web Scraping API with the Unblocker, renders the search page once, then reads each page of results from Pinterest's search calls. It is tested against live Pinterest every night.

- scrape\_search
- BaseSearchResource
- xhr\_call
- bookmark

 [View the scraper on GitHub →](https://github.com/scrapfly/scrapfly-scrapers/tree/main/pinterest-scraper)  

 

  

One request

## // Read a Pinterest pin in one request

The JSON at the top is sample output from November 25, 2026, for a public pin NASA saved to its Mars board: one request through a US datacenter IP without a browser, the pin's meta tags read from the page, then the pin ID, save count, board, pinner, source site, image size and the pin's updated date. Save counts change as people save the pin, so yours may differ.

Install `scrapfly-sdk` and `parsel`, then replace the key below. Swap the URL for any public pin.

**Prefer the full scraper?** The open-source [Pinterest scraper on GitHub](https://github.com/scrapfly/scrapfly-scrapers/tree/main/pinterest-scraper) pages through keyword search results in Python 3.12. It runs against live Pinterest every night. Clone it, set `SCRAPFLY_KEY`, and point it at your own keywords.

 

 Python · scrapfly-sdkscrape + parse

```
<span class="c-key">import</span> json
<span class="c-key">from</span> urllib.parse <span class="c-key">import</span> urlparse
<span class="c-key">from</span> scrapfly <span class="c-key">import</span> ScrapeConfig, ScrapflyClient

client = ScrapflyClient(key=<span class="c-str">"YOUR_SCRAPFLY_KEY"</span>)
result = client.scrape(ScrapeConfig(
    <span class="c-str">"https://www.pinterest.com/pin/142567144444540246/"</span>,
    country=<span class="c-str">"US"</span>,
))

<span class="c-com"># public pin data ships in the page's meta tags</span>
<span class="c-key">def</span> meta(name):
    <span class="c-key">return</span> result.selector.css(
        f'meta[property="{name}"]::attr(content)').get()

<span class="c-key">if</span> meta(<span class="c-str">"og:type"</span>) != <span class="c-str">"pinterestapp:pin"</span>:
    <span class="c-key">raise</span> RuntimeError(<span class="c-str">"No pin data in the response"</span>)
path = <span class="c-key">lambda</span> url: urlparse(url).path.strip(<span class="c-str">"/"</span>)
output = {
    <span class="c-str">"pin_id"</span>: path(meta(<span class="c-str">"og:url"</span>)).split(<span class="c-str">"/"</span>)[-<span class="c-num">1</span>],
    <span class="c-str">"saves"</span>: int(meta(<span class="c-str">"pinterestapp:repins"</span>)),
    <span class="c-str">"board"</span>: path(meta(<span class="c-str">"pinterestapp:pinboard"</span>)),
    <span class="c-str">"pinner"</span>: path(meta(<span class="c-str">"pinterestapp:pinner"</span>)),
    <span class="c-str">"source"</span>: urlparse(meta(<span class="c-str">"pinterestapp:source"</span>)).netloc,
    <span class="c-str">"image"</span>: meta(<span class="c-str">"og:image:width"</span>) + <span class="c-str">"x"</span>
             + meta(<span class="c-str">"og:image:height"</span>),
    <span class="c-str">"updated"</span>: meta(<span class="c-str">"og:updated_time"</span>)[:<span class="c-num">10</span>],
}
print(json.dumps(output, indent=<span class="c-num">2</span>, ensure_ascii=<span class="c-key">False</span>))
```

 

 

 

  

What the data is used for

## // Common Pinterest scraping use cases

### Trend research

Track what a keyword returns in Pinterest search and which styles, products and sources keep showing up.

 

### Product discovery

Find product pins for a category and the stores they link to.

 

### Content research

Collect pin titles, descriptions and alt text to see how popular pins describe a topic.

 

### Brand monitoring

Search for your brand or products and see which pins link to your site.

 

### Board benchmarking

Record the pin and follower counts of public boards in your niche over time.

 

### Social data for AI agents

Give an assistant current public pins, titles and descriptions for the topics a user asks about.

 

 

 

  

Common questions

## // Pinterest scraping FAQ

 Is scraping Pinterest legal?

There is no universal answer. Legality depends on your jurisdiction, the data, the access method and how you use the result. Keep the workflow to public pages, treat usernames and profile details as personal data, collect only what you need, review Pinterest's terms of service, and get legal advice for commercial use.

 Does Pinterest offer an official API for this data?

Pinterest's API v5 is built for apps that manage pins, boards and ads for the accounts that connect to them. Production use needs a Pinterest business account, a registered app and Pinterest's review. These requests read Pinterest's public web pages instead, so you need a Scrapfly API key, not a Pinterest developer app.

 How do I scrape Pinterest search results?

Request `https://www.pinterest.com/search/pins/?q=` with your keyword, `render_js` and the Unblocker on residential proxies, then read the `BaseSearchResource` response in `browser_data.xhr_call`. Each response carries a bookmark for the next page of results. The open-source scraper follows the bookmarks for you.

 Can I get a pin's save count?

Yes, from the pin page. The `pinterestapp:repins` meta tag carries the save count, and the request at the top reads it. The open-source scraper's search results don't include save counts.

 Why do pin titles end with extra phrases?

Pinterest appends related search phrases to a pin's meta title after a vertical bar, and to the end of its meta description. Scrapfly returns the page as Pinterest serves it, so split the phrases off when you want the pinner's own text.

 What image data does a pin include?

Search results give an original-size image URL, a 236 px thumbnail and Pinterest's alt text for the picture. A pin page gives a 736 px image URL with its width and height. Pinned images belong to their creators, so store the URLs and check your rights before you keep or reuse copies.

 How much does scraping Pinterest cost?

A Pinterest page costs 1 credit on datacenter proxies without a browser, 6 with JavaScript rendering, 25 on residential proxies with the Unblocker, and 30 on residential proxies with rendering. The extraction model adds 5 credits per started 500 KB of page, 20 on a rendered pin page. The free plan includes 1,000 credits a month.

 What are the rate limits when scraping Pinterest?

Scrapfly sets no Pinterest-specific limit. Your maximum parallelism is the concurrency quota on your plan, or a lower cap configured for the project. Each in-flight request uses one slot until it finishes.

 

 

  

Start with one request

## Send the URL. Read the JSON.

Web Scraping API, one call per Pinterest pin or board URL.

Proxies across 75+ countries

[Pinterest scraper on GitHub](https://github.com/scrapfly/scrapfly-scrapers/tree/main/pinterest-scraper)[How to scrape Pinterest](https://scrapfly.io/blog/posts/how-to-scrape-pinterest)[YouTube Scraper API](https://scrapfly.io/scrapers/youtube)[Facebook Scraper API](https://scrapfly.io/scrapers/facebook)[All scraper pages](https://scrapfly.io/scrapers)

 

[Get free API key](https://scrapfly.io/register)[Read the docs](https://scrapfly.io/docs/scrape-api/getting-started)