Open-source social network API for posting, timelines, and search.

OAuth HTTPS CORS Enabled
API Details
API NameMastodon
CategorySocial
AuthenticationOAuth
HTTPS SupportYes – secured
CORS PolicyEnabled – browser-safe
DocumentationOpen Docs
Quick Start

Copy this JavaScript snippet to start using the API immediately.

const res = await fetch("https://docs.joinmastodon.org/api", {
  headers: { "Authorization": "Bearer YOUR_API_KEY" }
});
const data = await res.json();
console.log(data);
More Social APIs
See all
Reddit JSON API

Browse subreddits, posts, and comments – no key needed.

No AuthHTTPS
Get API
Twitter/X API v2

Read and write tweets, search timelines, and manage accounts.

OAuthHTTPS
Get API
Access This API

View endpoints, request formats, rate limits, and full response schemas in the official docs.

Open Documentation Browse All APIs
Authentication Guide
OAuth 2.0

Register an app to get client ID + secret, then exchange them for an access token.

Compatibility
Browser (Frontend)Supported
Server (Node / Python)Always works
HTTPS / SSLSecured
Developer Tips
  • Store keys in .env – never expose them in client-side code.
  • Direct browser fetch calls work – no proxy needed.
  • Handle rate limits with retry logic and exponential backoff.
  • Cache responses locally to minimize calls and stay on free tier.
Social Category

Explore all free APIs in the Social category.

Browse Social
👋 Need help with code?