Call it
curl https://api.peume.com/v1/call/pinterest-similar-pins \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"url": "your url"
}
}'const res = await fetch("https://api.peume.com/v1/call/pinterest-similar-pins", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"url": "your url"
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/pinterest-similar-pins",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"url": "your url"
}
},
)
print(res.json()["output"])Answer: {"id": "run_…", "status": "completed", "cost_usd": …, "output": {…}}. Long jobs answer 202 with a run id to read later. From an AI agent, connect the MCP server and ask for this by name: pinterest-similar-pins.
Parameters
image_urlstringRequired when `url` is an `e1_` ID: the first entry of that row's `image_urls` (for a video Pin, its `thumbnail_url`).
page_tokenstringPage token. Leave it out for the first page, then pass back the previous response's `next_page_token` unchanged, with the other parameters the same as on the first page. Each page counts as one call.
urlRequiredstringThe Pin to match: a Pin link with a numeric ID (/pin/<number>/), the numeric ID, or an `e1_` ID from a list row. With an `e1_` ID, also pass that row's `image_url` and `username`.
board_urlstringOptional when `url` is an `e1_` ID: that row's `board_url`, so the Pin is looked for on that board first, which is faster.
usernamestringRequired when `url` is an `e1_` ID: that row's `author_username`.
