How to search Pinterest for visual references
Collect pin and video results with titles, images, links, and creator handles for a visual reference table
On this page
You need 20 mood-board candidates for a mid-century living room launch, and the creative brief needs each one's title, image, link and creator handle before the team commits to a direction. One search call returns pin records with those fields, and the same call can be pointed at boards or profiles when the result kinds must stay apart
The table below is the deliverable. No run has been executed for this article, so the values are placeholders showing the shape
Example input and the reference table
Example search: query mid-century living room, type all-pins, limit 20. Replace it with your own theme, brand or topic
The agent fills one row per item:
| id | title | description | image | videoUrl | author | authorName | url | reference-fit |
|---|---|---|---|---|---|---|---|---|
| (pin id) | (pin title, or description when no title) | (full text or empty) | (image URL) | (HLS URL or empty) | (handle) | (display name) | (link) | (your note) |
Fill it after the run by opening the image and judging whether the pin belongs in the mood board. The other eight columns come straight from the response, which keeps the brief and the evidence side by side
What the search takes
anyapi.pinterest.search, called through POST /v1/runs with toolId anyapi.pinterest.search, takes a required query: a keyword, topic, brand or theme. type is optional and defaults to all-pins, with videos, boards and profiles as the alternatives. That field is how you separate pins from boards and profiles. If the brief needs three shelves rather than one mixed list, run one call per type instead of sorting afterwards
limit is optional and runs from 1 to 20. cursor takes an opaque nextCursor from an earlier response; omit it for the first page. requireFields is optional and can name description or videoUrl when those fields must be returned
The limit needs a warning next to it. Some sources return their whole page of about 20 pins whatever limit says, and a page is never trimmed after the call. A request for 5 can hand back 20 rows. Pass nextCursor back as cursor to continue exactly where the response ended rather than re-reading the same page
Reading the output into a decision
Each item carries id, url and title as required fields, plus description, image, videoUrl, author and authorName when the serving source has them. title is the pin title, or the pin's description when the pin has no title, so an empty title cell usually means the record lacks a real title too. image is the full-size image URL, and for a video pin it is the cover image. videoUrl is a streaming HLS URL, or null when the pin is not a video or the source does not provide it
found and data are both required at the top level. data.items holds the records and data.nextCursor holds the continuation cursor, null or empty when there are no more. When found is false, reason appears with the value not_found: the source states the target does not exist, or returned nothing for it. The contract calls that a successful call, not an error, and costUsd is what it actually cost
requireFields can raise your price. Naming a field means only a source that returns that field serves the request, so when the cheapest source cannot return it, a dearer source serves and you are quoted and charged its price. A named field can still be null on a pin that genuinely lacks it, and a combination no single source returns together is refused as invalid input, with no charge. Keep the field list short unless the brief demands a video link
The agent prompt
Set up https://purrkey.app/SKILL.md, then use Purrkey to search Pinterest
for mood-board candidates for a mid-century living room launch. Check the
current inputs and price of anyapi.pinterest.search before running
anything. Run one call with query "mid-century living room", type
all-pins and limit 20. If the response returns a nextCursor and you still
need rows to reach 20 candidates, pass it back as cursor, up to four
pages. Return a table with id, title, description, image, videoUrl,
author, authorName and url, one row per item, and leave a cell empty when
the field is null. Do not invent values and do not reorder rows.If boards or profiles also belong in the brief, add a second call per type. The prompt above collects pins only, so the board and profile shelves stay empty until you ask for them
Estimated tool cost
Prices come from the Purrkey catalog, read on November 13, 2026, price revision anyapi-catalog-2026-11-05. The tool is listed as max_call, which the catalog defines as "Maximum per call. Successful runs settle at the actual AnyAPI charge", so the totals below are ceilings
| Step | Formula | Unit price | Planned quantity | Total |
|---|---|---|---|---|
| One-page search | calls x max price | $0.0036 per call | 1 | $0.0036 |
| Four-page cursor sweep | calls x max price | $0.0036 per call | 4 | $0.0144 |
A sweep where one page answers found: false still counts as a call. Model fees for the agent are not counted
Run the search
Start with the one-page search and check whether the rows already fill the 20 slots. If you need more, continue with nextCursor. The tool page sits at Pinterest search
For image collection outside Pinterest, the companion guide on collecting Google Images for a mood board covers a second source for the same table
Get started by giving this to your agent
- Claude Code
- Codex
- Gemini CLI
- Cursor
- GitHub Copilot
Set up https://purrkey.app/SKILL.md, then use Purrkey to show me what I can do with Pinterest.FAQ
How do I search Pinterest for visual references?
Send a keyword, topic, brand or theme to anyapi.pinterest.search, then copy id, title, description, image, videoUrl, author, authorName and url for each item into a reference table. Set type to boards or profiles when you need those result kinds kept apart from pins.
What inputs does anyapi.pinterest.search take?
query is required. type is optional and defaults to all-pins, with videos, boards and profiles as the alternatives. limit runs from 1 to 20, cursor takes a previous nextCursor, and requireFields can name description or videoUrl.
Why did I get more rows than my limit?
Some sources return their whole page of about 20 pins whatever limit says, and a page is never trimmed after the call. Pass nextCursor back as cursor to continue exactly where the response ended.
What does requireFields change?
Naming description or videoUrl means only a source that returns those fields serves the request, and a dearer source can serve, so the quoted price can rise. A named field can still be null on a pin that genuinely lacks it, and a combination no single source returns together is refused as invalid input, with no charge.
How much does a Pinterest search cost?
Up to $0.0036 per call, listed as max_call, which the catalog defines as the maximum per call. A one-page search is one call at most $0.0036, and a four-page cursor sweep is four calls at most $0.0144.
What happens when the response has found set to false?
reason appears only when found is false, and not_found means the source states the target does not exist or returned nothing for it. The contract calls that a successful call, not an error, and costUsd is what it actually cost.
Next step
Try this with Pinterest
The tool directory lists every endpoint with its current price. Inspect the inputs there, then let your agent run a small batch before scaling up.