API · /mastodon-api

Mastodon API

healthy 4,280 Subscribers

Read Mastodon and the wider fediverse in real time — across any instance, no login or app token required. Look up any account by handle (user, @user or user@instance) and pull its posts, followers, following and featured tags. Fetch any post with its full reply thread, see who boosted or favourited it, and read a post's edit history. Run unified search over accounts, posts and hashtags; browse a hashtag timeline; and surface what's hot via trending posts, hashtags and links. Inspect any instance: its metadata (users, version, rules), federated peers, weekly activity and the public profile directory, plus poll results by id. Pass ?instance=<host> to target any Mastodon server (default mastodon.social); every call is live (no cache) and returns the upstream Mastodon REST shape unchanged. 21 endpoints — broader than the typical Mastodon wrapper. Built for fediverse social listening, account and follower analysis, content aggregation and bot back-ends. No upstream key, no cache.

api.oanor.com/mastodon-api
Get an API key Try in playground → Contact provider

Machine-readable spec so AI agents can integrate this API.

/api/mastodon-api/openapi.json
/api/mastodon-api/llms.txt

Discovery: GET /api/index.json lists every API.

API health

healthy
Uptime
100.00%
Server probes · 24h
Avg latency
357 ms
Server probes · 24h
Subscribers
4,280
active
Total calls
256
last 7 days
status Full status page → · 96 probes/24h

Pricing

Pick a tier — billed monthly, cancel anytime.

Free

Free

  • 2,600 calls / month
  • 2 requests / second
  • Hard cap (429 above quota, no overage)
  • 2,600 calls/month
  • 2 req/sec
  • All 21 read endpoints
  • No credit card
Sign in to subscribe

Starter

€8.50 /month

  • 54,000 calls / month
  • 8 requests / second
  • Hard cap (429 above quota, no overage)
  • 54k calls/month
  • 8 req/sec
  • Accounts, statuses, search
  • Email support
Sign in to subscribe

Pro

€25.00 /month

  • 270,000 calls / month
  • 20 requests / second
  • Hard cap (429 above quota, no overage)
  • 270k calls/month
  • 20 req/sec
  • Cross-instance listening
  • Priority support
Sign in to subscribe

Mega

€59.00 /month

  • 1,350,000 calls / month
  • 50 requests / second
  • Hard cap (429 above quota, no overage)
  • 1.35M calls/month
  • 50 req/sec
  • Fediverse-scale ingestion
  • Dedicated SLA
Sign in to subscribe

Built by

Related APIs

Other APIs with overlapping tags.

PeerTube API

Read PeerTube — the federated, open-source video network — in real time, with no key. Federated search (powered by SepiaSearch) finds videos, channels and playlists across thousands of PeerTube instances at once. Per instance you can list and sort videos, fetch any video's detail, its comment threads and subtitle/caption tracks, look up any channel or account and their videos, and read the instance config, server statistics and the video-category list. Federated handles (name@instance) resolve transparently, and you can point any per-instance call at a specific server with ?instance=<host> (default framatube.org). Every call is live (no cache) and returns the upstream PeerTube REST shape, paginated with limit + start. 14 endpoints. Built for federated video discovery, creator and channel analytics, and content aggregation. A PeerTube (federated video) data API — distinct from single-platform video APIs like YouTube or Dailymotion. No upstream key, no cache.

api.oanor.com/peertube-api

Lemmy API

Read Lemmy and the wider fediverse link-aggregator network (the federated Reddit alternative) in real time — across any instance, no login or key. Browse communities (with sort and listing-type filters) and any community's detail with its moderators and subscriber counts. Pull posts by community or instance-wide with Hot/Top/New/Active sorts, fetch any post and its threaded comments, and read instance-wide comment streams. Look up any user's profile with their posts and comments, run unified search over posts, comments, communities, users and URLs, resolve any federated object by its URL, list an instance's federated/allowed/blocked peers, and read the public moderation log. Pass ?instance=<host> to query any Lemmy server (default lemmy.world); every call is live (no cache) and returns the upstream Lemmy v3 shape, paginated with page + limit. Built for fediverse social listening, community and content aggregation, and moderation/analytics back-ends. A Lemmy/fediverse aggregator API — distinct from microblogging (mastodon, bluesky). No upstream key, no cache.

api.oanor.com/lemmy-api

Discord API

Read Discord in real time — no bot token, no OAuth, no login. Resolve any invite (a discord.gg/<code> link or bare code) to its full server: name, description, icon/banner/splash image URLs, verification and NSFW levels, premium (boost) tier and count, vanity URL, the channel it points to, the user who created it, and live approximate member and online counts. Pull a server's clan/guild "profile" (tag, badge, traits, features) and a lightweight member+online count by itself. For any server that has its widget enabled, read the widget directly by guild id: online presence count, the list of currently-online members and the voice channels, plus the active instant invite. A helper builds any Discord CDN asset URL (icon, banner, splash, avatar, guild-tag badge) from an id and hash. Every call is live (no cache) and returns the upstream Discord shape, enriched with ready-to-use image URLs. 10 endpoints — the same public surface the popular Discord-lookup wrappers expose, built for server analytics, invite resolution, community dashboards and bot back-ends. No upstream key, no cache. (Widget endpoints return 403 when a server has its widget turned off.)

api.oanor.com/discord-api

Twitter / X API

Read public Twitter/X data in real time — no login or key needed. Look up any tweet by its id (or by its URL) and get the full tweet: text, author, created date, language, like/retweet/reply/quote/view counts, attached photos and videos, and any quoted tweet. Look up any public account by @handle for its profile — display name, bio, location, follower/following counts, tweet and media counts and avatar. Tweets are read from X's own official syndication endpoint (the source that powers embedded tweets); profiles via the public FixTweet service. Every call is live (no cache). 4 endpoints. Built for tweet/embed enrichment, brand and author monitoring and content back-ends. Note: X exposes no public search or timeline, so this reads single tweets and profiles. No upstream key, no cache.

api.oanor.com/twitterx-api

Frequently asked questions

Quick answers about pricing, quotas, and integration.

How do I get an API key for Mastodon API?
Sign up for free at oanor.com, generate an API key from the developer dashboard, and call Mastodon API with the x-oanor-key header. No credit card needed for the free tier.
What's the rate limit for Mastodon API?
Free tier allows 1 request per second. Paid plans scale up to 50 requests per second on the Mega tier. Hard limits return HTTP 429 above the quota — no surprise overage charges.
How much does Mastodon API cost?
Mastodon API has a free tier with 100 calls / month. Paid plans start at €8.50 / month with higher quotas and faster rate limits.
Can I cancel my subscription anytime?
Yes. Plans are billed monthly and you can cancel anytime from your billing dashboard. No long-term contracts and no cancellation fee.
Is Mastodon API GDPR-compliant?
All requests to Mastodon API go through our EU-based gateway. Your upstream API key never leaves our server and no personal data is shared with the upstream provider beyond the request you send.

Pick an endpoint from the list on the left to see its details and try it.

Code snippets

Sign up to get an API key, then call any path under your slug.

curl https://api.oanor.com/mastodon-api/SOME_PATH \
  -H "x-oanor-key: oanor_test_..."
const res = await fetch("https://api.oanor.com/mastodon-api/SOME_PATH", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
const data = await res.json();
$ch = curl_init("https://api.oanor.com/mastodon-api/SOME_PATH");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_HTTPHEADER, ["x-oanor-key: oanor_test_..."]);
$response = curl_exec($ch);
import requests
r = requests.get(
    "https://api.oanor.com/mastodon-api/SOME_PATH",
    headers={"x-oanor-key": "oanor_test_..."},
)
print(r.json())

Ratings

Sign in to rate.

No reviews yet.

Discussion

Ask questions, share usage tips, get answers from the provider and other developers. Public — anyone can read.

Sign in to start a thread or reply.

Sign in

New thread

/ 4000

📌 Pinned 🔒 Locked

·

· ·

/ 4000

🔒 This thread is locked — no new replies.

  • No threads yet — start the discussion.

Support

Private 1:1 support with the provider — billing questions, integration issues, account problems. Only you and the provider team can see these threads.

Sign in to open a support ticket.

Sign in

Open new ticket

Describe what you need help with. The provider team gets an email and replies on the ticket page.

  • No tickets yet for this API.

Subscription active — calls can start immediately.

Send your first request —

Subscription active — copy a snippet and fire off your first call.