X API (v2) vs Mastodon API
X API (v2)by X Corp.Paid fromNot statedAccessHTTP, SDK, Webhooks, OtherAgentsNot statedAPI QA score[SCORE]View API
Mastodon APIby MastodonPaid fromNot statedAccessHTTP, Webhooks, OtherAgentsNot agent-friendlyAPI QA score[SCORE]View API
Fact by fact
3 different14 stated by only one
The basics
What it isX API (v2): Read, search, stream and post on X: posts, users, follows, lists, Spaces, communities, DMs, media, complianceMastodon API: The REST and streaming API every Mastodon server exposes for posting statuses, reading timelines, accounts, notifications and media, open to any client app
AccessX API (v2): HTTP, SDK, Webhooks, OtherMastodon API: HTTP, Webhooks, Other
Still on saleX API (v2): Not statedMastodon API: Yes
What they work on
Only one of themX API (v2): ArticleCommunityCommunity noteCompliance jobDirect messageLive streamPlaylistTranscriptTrendWebhook eventMastodon API: ImageNotificationHashtag
Price
PricesX API (v2): Mastodon API: Not stated
- Pay per use: Post: Create$0.015 /request
Buying and paying
Agent gets a key aloneX API (v2): Not statedMastodon API: Noan app can register itself by API, but acting for a user needs that user's OAuth approval
First call without a keyX API (v2): Not statedMastodon API: YesGET https://mastodon.social/api/v2/instance answered JSON with no token
Payment railsX API (v2): Not statedMastodon API: nonefree; the project is funded by donations
Payment protocolsX API (v2): Not statedMastodon API: nonefree
Subscription requiredX API (v2): Not statedMastodon API: Nofree
Smallest purchase (USD)X API (v2): Not statedMastodon API: From $0free
Price published as dataX API (v2): Not statedMastodon API: No
Reading and signing up
Public pricesX API (v2): Not statedMastodon API: Yesfree and open source; servers are free to join or run
Self-serve sign-upX API (v2): Not statedMastodon API: Yesan app registers with POST /api/v1/apps on any server; user tokens by OAuth
Free useX API (v2): Not statedMastodon API: Yesno charge for API use
OpenAPIX API (v2): Not statedMastodon API: Nono OpenAPI file published by the project
Docs without loginX API (v2): Not statedMastodon API: Yesdocs.joinmastodon.org public
Jobs both do
Open a job to see every API that does it.

