PeumeAPI

Developer & public data

Mastodon Posts by User

Pull the posts of one Mastodon account, given as a handle or user@instance in `username`.

$0.0021 per result

Call it

curl https://api.peume.com/v1/call/mastodon-posts-by-user \
  -H "Authorization: Bearer $PEUME_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "input": {
    "limit": 20,
    "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: mastodon-posts-by-user.

Parameters

instancestring

Selects a Mastodon instance domain without a scheme or path. Timeline defaults to fosstodon.org and other actions default to mastodon.social. An explicit instance takes precedence over the domain in username, so keep the two values consistent.

limitinteger

Maximum number of results, 1 to 100 (default 20). For some actions it counts pages or items per parent rather than final rows.

Example: 20

usernameRequiredstring

Specifies the Mastodon account handle or full user@instance format, with an optional leading @ symbol. Providing a short handle without specifying an instance defaults to mastodon.social, and identical usernames across different instances represent distinct accounts.

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.