Call it
curl https://api.peume.com/v1/call/flickr-posts-by-user \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"user_id": "your user id",
"limit": 10
}
}'const res = await fetch("https://api.peume.com/v1/call/flickr-posts-by-user", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"user_id": "your user id",
"limit": 10
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/flickr-posts-by-user",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"user_id": "your user id",
"limit": 10
}
},
)
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: flickr-posts-by-user.
Parameters
user_idRequiredstringSpecifies the target Flickr user's NSID, such as 12345678@N04, which can be retrieved from the author_id field of search results. It does not accept display names, vanity profile aliases, or full profile URLs.
media_typestringFilters media scope with allowed values: photos (photos only), videos (videos only), or all (all media). Defaults to photos in search and all in user_posts. This parameter controls query filtering and does not determine whether raw source files are downloaded.
limitintegerMaximum number of results, 1 to 50 (default 10). For some actions it counts pages or items per parent rather than final rows.
Example: 10
sortstringSorts photos and videos in search (defaults to relevance) and user_posts (defaults to date-posted-desc). Supported values include relevance, interestingness-desc, interestingness-asc, date-posted-desc, date-posted-asc, date-taken-desc, and date-taken-asc. Upload dates (date-posted) and capture dates (date-taken) represent distinct attributes and cannot be used interchangeably.
