Repository navigation
Sources

Status: Pinterest logged out is built (M1). Pinterest logged in is planned (M5, #6). Are.na is planned (M6, #7).
Pinterest works today without a login: search, related (one hop), boards and pin details. Visual search and chained related need a login (planned). Are.na is planned and needs a token. Run capabilities() on a source to see what it can do right now.
A Source is a place Refs come from. Each Source reports what it can do through capabilities(). A Capability can depend on login.
What each method of the Source interface is, whether an adapter must have it, what the Pinterest adapter reports today, and which MCP tool uses it. The code is in src/sources/types.ts and src/sources/pinterest/pinterest.ts.
| Method | Capability | Required | Pinterest today | Used by |
|---|---|---|---|---|
search |
search |
yes | true |
search |
related |
related |
no |
true (one hop, real pin ids only) |
related |
collection |
collection |
no |
true (public boards) |
collection |
get |
get |
no |
true (real pin ids only) |
get, and look, save and palette to resolve a URL or id |
visualSearch |
visualSearch |
no |
false. The method does not exist on the object |
no tool yet (visual_search is planned, M5) |
fetchImage |
none | yes | always available. *.pinimg.com only |
every tool that shows or saves an image |
fetchVideo is an extra method of the Pinterest source only. It is not part of Source.
Two layers set how many refs a call returns, and they are not the same number.
| Layer | search |
related |
collection |
Set in |
|---|---|---|---|---|
The Pinterest adapter, when you call it from code without limit
|
20 | 20 | 25 |
DEFAULT_LIMIT in src/sources/pinterest/pinterest.ts
|
The MCP tools, when the tool call has no limit
|
24 | 24 | 24 |
search.limit in botticelli.config.json, default 24 |
The MCP tools always pass a limit to the adapter, so the adapter's 20 and 25 never apply through the server. They apply to a script that calls createPinterestSource() directly. An explicit limit wins in both layers. The tools accept 1 to 100.
| Capability | Pinterest, logged out | Pinterest, logged in | Are.na |
|---|---|---|---|
search |
yes (built, M1) | yes (planned, M5) | planned (M6). Needs a token |
related |
yes, one hop. Needs a real pin link or numeric id (built, M1) | chained from search results (planned, M5) | not in the v1 plan |
collection |
yes, public boards (built, M1) | adds private boards (planned, M5) | channels (planned, M6) |
get |
yes, with a real pin link or numeric id (built, M1) | yes (planned, M5) | planned (M6) |
visualSearch |
no. Answers 401 | only if the probe passes (planned, M5) | no |
What was measured on 2026-12-02, from the plan and the ADRs:
- Logged-out search, board and related results carry no real pin id (seen in live captures on 2026-12-02). So
getandrelatedon a Handle from those results are refused with "… is not a pin". Pass a pin link (pinterest.com/pin/<id>/), apin.itlink or the numeric id instead. Chainingrelatedfrom search results needs login (M5). -
RelatedPinFeedResourceworks logged out.RelatedModulesResourceneeds a login. -
VisualSearchFlashlightUnifiedResourceanswers 401 logged out. - The Are.na v3 API answers 401 without a token.
- 30 searches in a row and 10 in parallel, logged out, were not blocked.
Built in M1. It reads the JSON resources of www.pinterest.com with no browser and no login (ADR 0002).
| Input | Accepted forms |
|---|---|
Pin (related, get) |
A numeric id. A pinterest.<tld>/pin/<id>/ URL on any regional Pinterest domain. A pin.it short link |
Board (collection) |
https://www.pinterest.com/<user>/<board>/, or <user>/<board>
|
| Anonymous id | An e1_… id, when one shows up, is refused with a CapabilityError that says what to do. Results with no id at all are refused with "… is not a pin" |
A pin URL may carry a slug before the id (/pin/<slug>--<id>). The id is extracted.
The adapter follows a short link by hand, one hop at a time: pin.it, then Pinterest's own redirect, then the pin page. Every hop must be HTTPS and stay on pin.it or a real Pinterest host. At most 5 requests are made. A link that leaves Pinterest, loops, or does not lead to a pin is refused with a RefusedError.
search, related and collection return next when more refs exist. Pass it back as cursor with the same call. Treat it as opaque. It records the bookmark that fetches a page and how many of that page's refs you already got, so no page is cut short and lost.
A cursor that does not come from this source is refused. A call with a cursor only tries the first endpoint Candidate, because a bookmark belongs to the resource that issued it (Resilience).
One call reads at most 12 pages. When the adapter is called from code without a limit, the default is 20 for search and related, and 25 for collection. The MCP tools use search.limit instead (Where the defaults come from). Ads (promoted pins) are dropped.
fetchImage(url, size) rewrites the size segment of an i.pinimg.com URL:
size |
Tries, in order |
|---|---|
thumb |
236x, 474x, 736x, originals
|
medium |
474x, 736x, originals
|
large |
736x, originals
|
original |
originals |
If none of the renditions answers, it tries the URL you gave. Resized renditions are always JPEG, so a PNG, GIF or WebP original is requested as .jpg at those sizes (ADR 0003). The answer must have an image/* content type.
Limits:
- Images: 30 MB.
- Videos: 200 MB (
fetchVideo, only on the Pinterest source). HLS playlists (.m3u8) are refused. The adapter prefers a 720p MP4 rendition and steps down_720w,_540w,_360wfor fragmented MP4. - Redirects on image and video downloads are an error.
A ref is flagged lowRes when its largest image is under 500 px wide.
| Host | Why |
|---|---|
www.pinterest.com |
Resource calls (/resource/<Name>Resource/get/) |
pin.it |
Short links |
*.pinimg.com over HTTPS |
Image and video downloads. Any other host is refused |
A Pinterest regional host (pinterest.fr, br.pinterest.com, pinterest.co.uk…) |
Only as the target of a pin URL or a short-link hop |
Fields a Pinterest ref can have: key, id, pageUrl, title, description, altText, imageUrl, width, height, lowRes, dominantColor, video, sourceLink, sourceDomain, collection, author, saves, createdAt. Without a numeric id, key is a 16-character SHA-1 prefix of the image URL and id and pageUrl are absent. The pipeline fills palette and dhash later.
Status: planned (M5, #6). See Login.
Unlocks chained related, private boards and, if the probe passes, visual search. Anonymous stays the default.
Status: planned (M6, #7). This describes the design.
A client for the Are.na v3 API with a token: search, channels (the collection Capability) and get. Downloads will be limited to HTTPS CDN hosts of Are.na and a size limit per file. The environment variable for the token is not decided yet.
See Writing a Source for the step-by-step guide, and CONTRIBUTING.md for the rules of a pull request.
import { createPinterestSource } from './src/sources/pinterest/index.js';
const pinterest = createPinterestSource();
console.log(pinterest.capabilities());
// { search: true, related: true, collection: true, get: true, visualSearch: false }
// A board, then a second page.
const first = await pinterest.collection!('awsmd_com/app-design', { limit: 12 });
console.log(first.collection.name, first.collection.count, first.refs.length);
const second = await pinterest.collection!('awsmd_com/app-design', { limit: 12, cursor: first.next });
// A short link resolves to a pin id, then the related feed.
const related = await pinterest.related!('https://pin.it/xxxxxxx', { limit: 10 });visualSearch is false today, so pinterest.visualSearch is not defined on the object. The code calls collection! and related! because both methods are optional in the Source interface.
Not a cursor from this source. You passed a cursor that is not from the Pinterest adapter, or you changed it. Pass next back unchanged.
The short link … did not lead to a pin. The pin.it link is dead or points to a board or profile. Use a pin link.
Pinterest search failed on every known endpoint. All Candidates for that capability failed. If the message holds an HTTP status such as 403 or 404 for every one, Pinterest probably changed. See Resilience.
Network error reaching …. No endpoint swap fixes this, so none is tried. Check your connection or set BOTTICELLI_PROXY.
<url> answered with text/html, not an image. The CDN sent an error page. Try another size.
Board returns fewer refs than its count. Pinterest counts pins that the feed does not always serve (ads, removed pins). The adapter retries a short feed up to 3 times before it stops.
This wiki mirrors docs/ in the repository. Edit the docs there, not here. · MIT · Not affiliated with Pinterest or Are.na.
Use
Understand
Contribute
Project