Call it
curl https://api.peume.com/v1/call/search-recent-threads-posts-by-keyword \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"query": "bitcoin"
}
}'const res = await fetch("https://api.peume.com/v1/call/search-recent-threads-posts-by-keyword", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"query": "bitcoin"
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/search-recent-threads-posts-by-keyword",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"query": "bitcoin"
}
},
)
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: search-recent-threads-posts-by-keyword.
Parameters
queryRequiredstringSearch query
Example: bitcoin
end_cursorstringPagination cursor (optional)
Other ways to do it
Same job, other sources, cheapest first.
Search Threads posts by keywordSearches Threads for posts matching a keyword, returning up to 10 results with caption text, like_count, reshare_count, direct_reply_count, user info, and image_versions2.Search posts by keywordBest sourceSearch posts by keyword. Checks the cheapest source first and moves to the next one until it finds an answer.Search top Threads posts by keywordThreads: search top (web)
