PeumeAPI

Social media data · X

X Media Posts

List the posts from an account's Media tab by `username`.

$0.0012 per call

Call it

curl https://api.peume.com/v1/call/x-media-posts \
  -H "Authorization: Bearer $PEUME_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "input": {
    "username": "your username"
  }
}'

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-media-posts.

Parameters

page_tokenstring

Page 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.

usernameRequiredstring

The account whose photo and video posts you want, such as `NASA`; a leading @ is removed.

Start free · $1 of calls included

Every API your product needs. One key.

7,267 endpoints, one bill, and you only pay for calls that work.