PeumeAPI

Social media data · X

Recent tweets of a user by user id — engagement metrics

List the recent posts of an X user (your own or any public account)

$0.0075 per postUsually answers in about a second

Call it

curl https://api.peume.com/v1/call/x-recent-tweets-of-a-user-by-user-id \
  -H "Authorization: Bearer $PEUME_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "input": {
    "max_results": 10,
    "exclude": "retweets,replies",
    "tweet.fields": "id,text,created_at,public_metrics,referenced_tweets",
    "start_time": "2026-07-01T00:00:00Z",
    "id": "44196397"
  }
}'

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-recent-tweets-of-a-user-by-user-id.

Parameters

max_resultsinteger

5–100, default 10

Example: 10

pagination_tokenstring

meta.next_token from the previous response

excludestring

comma-separated: retweets, replies

Example: retweets,replies

tweet.fieldsstring

public_metrics carries likes/reposts/replies/impressions

Example: id,text,created_at,public_metrics,referenced_tweets

start_timestring

RFC 3339; the timeline reaches back at most 3,200 posts regardless

Example: 2026-07-01T00:00:00Z

idRequiredstring

numeric user id — from x.user.profile (data.id), NOT the @handle

Example: 44196397

Other ways to do it

Same job, other sources, cheapest first.

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.