Home · Free APIs · Mastodon posts

Mastodon post data API, free to test

Test it now, no key


Mastodon is thousands of separate servers, so one post's numbers live on whichever server published it. Give the box above the public address of a post and it reads that one post and returns the text, author, time and reaction counts in a plain shape.

The official free source: the Mastodon API

Their page says: “All endpoints and methods can be called 300 times within 5 minutes”

Each Mastodon server offers the API itself, free, and the quoted line is the documented default limit. A server's administrators can run their own settings. Open the official source (read 22 November 2026).

When the official source is the better choice

Use the server's own API when you want timelines, threads, search, streaming or to post. It is free, well documented, and gives far more of each post than a single summary does. If all your posts come from one server you already know, calling it yourself is the sensible choice.

When this call is useful

This helps when links arrive from many different servers and you want every one answered in the same field names you get for posts from other networks, so your reporting code does not branch by platform.

What comes back, and what to check

In the saved answer you get the address, platform name, post text, the author's display name, handle, profile address, picture, follower figure and a verified flag, the publish time with a note saying it came from the Mastodon API, counts of favourites as likes, replies as comments_count and boosts as reposts, and a list of images. Shares, views and saves are empty because the network does not report them. The verified flag reflects what the profile reports and is not an identity check by us. Counts differ between servers, since each one only knows the reactions that have reached it.

What people do with Mastodon posts

Questions

Can I search posts by keyword?

Not with this call. It reads the single post whose address you send.

Why might the boost count differ from what I see?

Servers share activity with each other with delays and gaps, so two servers can show different numbers for one post.

What happens with a deleted post?

The server no longer returns it, so there is nothing to read. Keep your own copy of anything you must be able to show later.

Mastodon's own software moves too: the Mastodon changelog, release by release shows what changed and when.

What “free” means here

Get a free key · Pricing

A real saved answer

Taken 22 November 2026 with long text and long lists shortened, and people lists and abstracts left out.

Show the answer
{
 "url": "https://mastodon.social/@Gargron/117621282276303009",
 "platform": "mastodon",
 "extracted_at": "2026-11-22T01:32:45.806503+00:00",
 "text": "#SilentSunday",
 "title": "#SilentSunday",
 "description": null,
 "author_name": "Eugen Rochko",
 "author_handle": "Gargron",
 "author_url": "https://mastodon.social/@Gargron",
 "author_avatar": "https://files.mastodon.social/accounts/avatars/000/000/001/original/6b2384b33799a0dd.png",
 "author_followers": 381405,
 "author_verified": true,
 "published_at": "2026-11-15T15:58:55.527Z",
 "published_at_unix": null,
 "modified_at": null,
 "date_source": "mastodon_api",
 "likes": 251,
 "comments_count": 2,
 "shares": null,
 "views": null,
 "reposts": 59,
 "saves": null
}

Code

curl

curl -X POST https://api.foxapis.com/v1/social/mastodon/post \
  -H "Authorization: Bearer YOUR_KEY" -H "Content-Type: application/json" \
  -d '{"url":"https://mastodon.social/@Gargron/117621282276303009"}'

JavaScript

const res = await fetch("https://api.foxapis.com/v1/social/mastodon/post", {
  method: "POST",
  headers: { Authorization: "Bearer YOUR_KEY", "Content-Type": "application/json" },
  body: JSON.stringify({"url":"https://mastodon.social/@Gargron/117621282276303009"}),
});
console.log(await res.json());

Python

import requests

res = requests.post(
    "https://api.foxapis.com/v1/social/mastodon/post",
    headers={"Authorization": "Bearer YOUR_KEY"},
    json={"url":"https://mastodon.social/@Gargron/117621282276303009"},
    timeout=60,
)
print(res.json())

The endpoint page · The use-case page

More free API pages

Free nonprofit check API (IRS data) · Pinterest pin data API, free to test · Free PubMed search API · Free Reg CF crowdfunding API · Product release cadence API, free to test · All of them

Other names belong to their owners. FoxAPIs is not affiliated with or endorsed by them.