Skip to content

How to get every pin on a public Pinterest board as JSON

By Hayden Barnett · · 5 min read

A Pinterest board is a public page of saved images, each one a pin with a title, an image and usually a link out. The official API can read one, but only with an OAuth token, and since 14 Sep 2026 a newly registered app may get HTTP 403 PINNER_DATA_ACCESS_DENIED when it asks for a board or pin it was not approved for. If you want the pins on someone’s public board as JSON, one GET returns them:

export FETCHPROOF_API_KEY=fp_live_xxx

curl -s "https://api.fetchproof.com/v1/pinterest/board?url=https%3A%2F%2Fwww.pinterest.com%2Fnasa%2Flearn-with-nasa%2F" \
  --header "x-api-key: $FETCHPROOF_API_KEY"

The board URL is the published example on the board endpoint. url is the only required parameter. It is the board’s address, pinterest.com/<username>/<board-slug>/. The response is one page of pins plus a cursor for the next page. There is no Pinterest app, no OAuth token and no app review. The credential is the Fetchproof key in x-api-key.

Why the official API stops at your own boards

Pinterest API v5 has a List Pins on board call, GET /v5/boards/{board_id}/pins. Its reference describes it as listing pins on a board owned by the token’s user account, or on a group board shared with that account. Every call needs an OAuth access token with the boards:read scope.

The newer limit is on top of that. Pinterest’s error codes page lists HTTP 403 PINNER_DATA_ACCESS_DENIED for boards/get, boards/list_pins, both board-section calls and pins/get. In Pinterest’s own community post on the error, apps registered on or after 14 Sep 2026 need approval for pinner data access before they can read boards and pins beyond the account that authorized them. The same post says to treat the error as non-retryable, and to ask your Pinterest account manager for access, if you have one.

So a mood-board tool, a trend tracker or a research script built this year on a fresh app has no self-serve way to read a public board it does not own. Pinterest’s website shows the same board to anyone with the link, without a login. The board endpoint reads that public board.

What comes back

Each item in pins is Pinterest’s own pin object, passed through rather than reshaped. Field names below come from the published schema for the board endpoint. The values are placeholders.

{
  "success": true,
  "credits_remaining": 99,
  "credits_charged": 1,
  "pins": [
    {
      "id": "e1_xxx",
      "type": "pin",
      "title": "Example pin title",
      "grid_title": "Example pin title",
      "description": "Example description",
      "link": "https://example.com/article",
      "domain": "example.com",
      "images": { "orig": { "width": 1200, "height": 1800, "url": "https://i.pinimg.com/originals/xx/xx/xx/example.jpg" } },
      "dominant_color": "#2C3E50",
      "repin_count": 0,
      "aggregated_pin_data": { "aggregated_stats": { "saves": 12, "done": 0 } },
      "board": { "name": "Example board", "url": "/nasa/learn-with-nasa/" },
      "pinner": { "username": "example_pinner", "full_name": "Example Pinner" }
    }
  ],
  "cursor": "xxx"
}

The fields most scripts want:

  • grid_title is the title shown under the pin on the board. title can be empty when the pinner did not set one, so fall back to grid_title.
  • images.orig.url is the full-size image on i.pinimg.com. Smaller sizes sit next to it under keys such as 236x.
  • link is the outbound URL the pin points to, and domain is its site. An uploaded image with no source has no link, and domain reads “Uploaded by user”.
  • aggregated_pin_data.aggregated_stats.saves is the save count Pinterest shows for the pin.
  • pinner is the account that saved the pin to this board. That is not always the board owner on a group board.

cursor is the token for the next page. On the last page it is null.

Python: every pin on a board, to CSV

The standard library is enough. Keep the key in the environment. The samples on this page use the placeholder fp_live_xxx.

import csv
import json
import os
import urllib.parse
import urllib.request

BOARD = "https://www.pinterest.com/nasa/learn-with-nasa/"


def page(cursor=None):
    url = "https://api.fetchproof.com/v1/pinterest/board?url=" + urllib.parse.quote(BOARD, safe="")
    if cursor:
        url += "&cursor=" + urllib.parse.quote(cursor, safe="")
    request = urllib.request.Request(url, headers={"x-api-key": os.environ["FETCHPROOF_API_KEY"]})
    with urllib.request.urlopen(request, timeout=60) as response:
        return json.load(response)


rows, cursor = [], None
while True:
    body = page(cursor)
    for pin in body["pins"]:
        images = pin.get("images") or {}
        image = (images.get("orig") or next(iter(images.values()), {})).get("url")
        stats = (pin.get("aggregated_pin_data") or {}).get("aggregated_stats") or {}
        rows.append({
            "id": pin["id"],
            "title": pin.get("title") or pin.get("grid_title") or "",
            "image": image or "",
            "link": pin.get("link") or "",
            "saves": stats.get("saves", ""),
        })
    cursor = body.get("cursor")
    if not cursor:
        break

with open("board.csv", "w", newline="") as f:
    writer = csv.DictWriter(f, fieldnames=["id", "title", "image", "link", "saves"])
    writer.writeheader()
    writer.writerows(rows)
print(len(rows), "pins written to board.csv")

Each loop is one call. Pass the cursor from a page back unchanged to get the next one, and stop when it is null. urlopen raises on an error status, so a board that does not exist or a refused read stops the loop instead of writing a half-empty file.

Node: download the images

Node 18 and later include fetch. This version saves the first page’s full-size images to a folder, a common start for a mood board or a vision-model dataset:

import { mkdirSync, writeFileSync } from "node:fs";

const board = "https://www.pinterest.com/nasa/learn-with-nasa/";
const response = await fetch(
  `https://api.fetchproof.com/v1/pinterest/board?url=${encodeURIComponent(board)}`,
  { headers: { "x-api-key": process.env.FETCHPROOF_API_KEY } },
);
if (!response.ok) {
  throw new Error(`Pinterest board failed: HTTP ${response.status}`);
}
const { pins, cursor } = await response.json();

mkdirSync("pins", { recursive: true });
for (const pin of pins) {
  const src = pin.images?.orig?.url;
  if (!src) continue;
  const image = await fetch(src);
  if (image.ok) writeFileSync(`pins/${pin.id}.jpg`, Buffer.from(await image.arrayBuffer()));
}
console.log(`saved ${pins.length} pins, next cursor: ${cursor ?? "none"}`);

Image URLs point at Pinterest’s image CDN, and fetching them does not go through Fetchproof, so they cost no credits. Check the rights on any image before you reuse it outside your own research.

Every board on a profile

If you start from an account rather than a board, the user boards endpoint lists its public boards. Pass the username as handle, not a profile URL:

curl -s "https://api.fetchproof.com/v1/pinterest/user/boards?handle=nasa" \
  --header "x-api-key: $FETCHPROOF_API_KEY"

Each item in boards has name, pin_count and a relative url such as /nasa/learn-with-nasa/. Prefix it with https://www.pinterest.com and pass it to the board endpoint. Use pin_count to skip empty boards before you spend a call on them. To find pins by topic instead of by board, the search endpoint takes a query and pages with the same kind of cursor.

From n8n or an MCP client

The same x-api-key header is what the n8n HTTP Request post sets up once. Point that node at /v1/pinterest/board, send the board address as the url query parameter, and loop on cursor. From an MCP client the tool names are pinterest_board and pinterest_user_boards. Server setup is in the MCP docs. If you also pull playlists for the same project, the Spotify playlist tutorial handles a similar official-API 403 with the same key.

What a call costs

The board call costs 1 credit per page, as published on the board endpoint. A board that takes four pages is 4 credits, and the user boards lookup is 1 more. Errors, blocked or timed-out requests, invalid requests and cache hits cost nothing. A not-found or empty result is charged only where that operation’s published cost says so.

Read credits_charged on each response to see what that page cost. New accounts get 100 free credits, with no card. Pack sizes and prices are on the pricing page, and prepaid credits vs monthly subscriptions shows how a one-time pack compares with a monthly quota. Every Pinterest route is on the Pinterest API page.

FAQ

Can the official Pinterest API read someone else’s public board?

Not for a new app without approval, as of Dec 2026. GET /v5/boards/{board_id}/pins is documented for boards the authorizing account owns or shares, and apps registered on or after 14 Sep 2026 can get 403 PINNER_DATA_ACCESS_DENIED on board and pin reads outside that account. This endpoint reads the public board page instead, with no Pinterest token.

Does it work on secret boards?

No. A secret board is only visible to its owner and collaborators when they are signed in, and this endpoint does not sign in. It reads what the public board shows a logged-out visitor.

What URL formats work?

A board address, https://www.pinterest.com/<username>/<board-slug>/. A pin link (/pin/...), a search page or an ideas page is not a board and returns HTTP 400 before anything is fetched. If you copied a board from a regional domain, rewrite it to the www.pinterest.com form with the same username and slug.

Why is title empty on some pins?

Pinterest only fills title when the pinner wrote one. grid_title is what the board shows under the image, so use it as the fallback, and description or seo_alt_text when you need more text.

Try it with 100 free credits

Sign up with an email address, no card. Credits never expire. Errors, invalid requests and cache hits cost 0 credits, and each endpoint page lists exactly what it charges.