Call it
curl https://api.peume.com/v1/call/x-search-the-full-tweet-archive-by-keyword-query \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"query": "your query"
}
}'const res = await fetch("https://api.peume.com/v1/call/x-search-the-full-tweet-archive-by-keyword-query", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"query": "your query"
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/x-search-the-full-tweet-archive-by-keyword-query",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"query": "your query"
}
},
)
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: x-search-the-full-tweet-archive-by-keyword-query.
Parameters
queryRequiredstringstart_timestringend_timestringsince_idstringuntil_idstringmax_resultsintegernext_tokenstringA base32hex-encoded pagination token.
pagination_tokenstringA base32hex-encoded pagination token.
sort_orderstringOther ways to do it
Same job, other sources, cheapest first.
Search posts onRead one account's timeline through a from: search, newest first, with text, time, counts, views, language and media.Search posts by keywordBest sourceSearch posts by keyword. Checks the cheapest source first and moves to the next one until it finds an answer.X / Twitter SearchSearch with full advanced-search syntax (operators like from:, since:, until:, min_faves: work inline in the query) and get structured tweets with text, author, engagement, and curSearch posts by keywordTwitter: fetch search timeline (web)Search by keyword — top, latest, media, peopleSearches by keyword across top, latest, media, people, or list result modes with cursor pagination.Search tweets from the last 7 days by keywordSearch Posts Recent
