Call it
curl https://api.peume.com/v1/call/x-community-posts \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"community_id": "your community id"
}
}'const res = await fetch("https://api.peume.com/v1/call/x-community-posts", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"community_id": "your community id"
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/x-community-posts",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"community_id": "your community id"
}
},
)
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-community-posts.
Parameters
community_idRequiredstringNumeric Community ID for `community_info` and `community_posts`, the digits after /i/communities/ in its link, such as `1508567430188126209`.
page_tokenstringPage token for `user_media`, `user_replies`, `retweeters`, `search_communities`, `community_posts` and `search_users`. Leave it out for the first page, then pass back the previous response's `next_page_token` exactly as received; the last page has none.
