Mastodon and fediverse OSINT: accounts, servers and public APIs
The fediverse is thousands of independent servers that talk to each other, and most of them answer public API requests without a key. How to resolve an account, read its profile and posts as data, decode post times, use verified links, research the server itself and know what federation hides.
· 7 min read

Mastodon is not one website. It is software that anyone can run, and thousands of people do. Each server, called an instance, has its own users, rules and administrators, and they exchange posts using a shared protocol called ActivityPub. Other software speaks the same protocol, including Pixelfed for photos, PeerTube for video, Lemmy for forums, and Threads for accounts that have opted in. Together they are called the fediverse.
For a researcher this structure has two consequences. Much more is available as structured data than on closed platforms, usually with no key or login. And there is no central place to search, no central authority to ask, and no guarantee that two servers will show you the same thing.
How identity works
A fediverse address has two parts, like an email address:
@username@server.exampleThe username is unique only on that server. @alex@mastodon.social and @alex@fosstodon.org are different people. Always record both parts.
The server matters as much as the name. It tells you which community the person chose, whose rules apply, and who the administrator is. An account on a server run by a newsroom, a university or a government for its own staff carries that organisation's implicit endorsement, because only the organisation can create accounts there.
Resolve an account with WebFinger
WebFinger is the lookup that servers use to find each other's users. It is public.
curl -s "https://mastodon.social/.well-known/webfinger?resource=acct:Gargron@mastodon.social" | jqThe example uses the account of Mastodon's founder. The response lists the account's profile page and its ActivityPub address, called the actor. If WebFinger returns nothing, the account does not exist on that server, or the server restricts lookups.
Read the profile as data
Mastodon servers offer a public API. Start with a lookup by name:
curl -s "https://mastodon.social/api/v1/accounts/lookup?acct=Gargron" | jq '{id, username, acct, display_name, created_at, note, url, bot, locked, followers_count, following_count, statuses_count, last_status_at, fields, moved}'What the fields tell you:
idis the account's permanent number on that server. Use it for further requests.created_atis the creation date. Mastodon rounds it to the day for privacy.last_status_atis the date of the most recent post.botis a flag the owner sets to declare an automated account.lockedmeans followers need approval.fieldsare the profile's link and label rows. See verified links below.movedappears when the account has migrated to another server, and points to the new one.noteis the bio, as HTML.
Display names, bios and avatars can be changed at will. The username on a given server cannot be changed, which makes fediverse handles more stable than most.
Verified links
Mastodon has no paid or centrally granted check mark. Verification is done by the user and checked by the server.
A profile field containing a web address is marked verified, with a green tick and a verified_at date in the API, when that web page links back to the Mastodon profile with a rel="me" attribute. In other words, whoever controls the website has confirmed the account.
This is real evidence, of a specific kind: the same party controls the website and the account. A journalist whose profile shows a verified link to their author page on a news site has been confirmed by that site's content system. Check what the verified address actually is, because a verified link to a personal site the user set up yesterday proves only that they own that site. Then research the site. See investigating a domain.
Posts
# Recent public posts by an account. Replace ACCOUNT_ID with the id from the lookup
curl -s "https://mastodon.social/api/v1/accounts/ACCOUNT_ID/statuses?limit=40&exclude_replies=true" | jq '.[] | {id, created_at, edited_at, url, visibility, language, reblogs_count, application: .application.name, text: .content}'Page backwards by adding max_id= with the lowest ID you have seen.
created_atis the full timestamp in UTC.edited_atshows a post was changed. The edit history is available from the post's/historyendpoint.applicationnames the app the post was sent from, where the user allows it to be shown.visibilityispublicorunlistedfor anything you can see without logging in. Followers-only and direct posts are not returned.in_reply_to_idandreblogshow conversations and boosts.Media attachments include descriptions written by the poster, which sometimes add detail.
Times from post IDs
Mastodon post IDs contain the creation time: the upper bits are milliseconds since 1970.
from datetime import datetime, timezone
def mastodon_time(status_id: int) -> datetime:
return datetime.fromtimestamp((status_id >> 16) / 1000, tz=timezone.utc)
print(mastodon_time(109300000000000000))This applies to IDs generated by Mastodon itself. Other fediverse software uses different ID schemes. For a post you can retrieve, created_at is simpler. The ID helps when you have only a link to a deleted post.
One caution: when a server imports an older post from elsewhere, the stored timestamp can reflect the original date supplied by the sending server. For posts native to the server you are querying, the time is that server's own record.
Finding accounts and posts
There is no global search, deliberately. Options:
Hashtag timelines. Public, per server, and they include posts that server has received from elsewhere:
curl -s "https://mastodon.social/api/v1/timelines/tag/osint?limit=40" | jq '.[] | {created_at, account: .account.acct, url}'Server search. Logged-in users can search accounts, hashtags and, on servers that have enabled it, the text of posts from users who opted in.
Profile directories. Many servers publish a directory of users who chose to be listed.
Web search engines. Profiles and posts are indexed unless the user opted out, which is a common setting.
Other platforms. People put their fediverse address in bios elsewhere and on personal sites. See username OSINT.
Followers and following lists are public on most profiles unless hidden, and are a way from one account to a community.
What a search shows depends on which server you ask. Each server only knows about posts that have reached it. A large general-purpose server sees much of the network, and a small one sees little. Query the account's home server for its complete public record.
Research the server
The instance is part of the evidence.
# What the server says about itself
curl -s "https://mastodon.social/api/v2/instance" | jq '{domain, title, version, description, contact: .contact.email, admin: .contact.account.acct, users: .usage.users.active_month, registrations: .registrations}'
# Servers it has exchanged data with
curl -s "https://mastodon.social/api/v1/instance/peers" | jq 'length'
# Servers it blocks or limits, where published
curl -s "https://mastodon.social/api/v1/instance/domain_blocks" | jq '.[0:5]'Things to establish:
Who runs it. The contact account and email, and the "About" page. The administrator is a person or organisation you can research.
Whether registration is open, by invitation, or closed. On a closed server, every account was let in by someone.
Its rules and purpose. A server for one profession, region or political tendency tells you about its members.
Its software and version. The version string identifies Mastodon or a variant.
Its size and age. A tiny server with one user is effectively that user's own domain. Research the domain: registration date, hosting and history.
Its relations with other servers. Published block lists show which communities it rejects, and being widely blocked by others says how the server is regarded.
A single-user server is a strong link between an account and a domain, similar to a domain handle on Bluesky. See Bluesky OSINT.
What federation hides
Some servers require authentication for API requests and refuse anonymous ones. The web profile may still be visible.
Users can opt out of search indexing, hide their follower lists, require follower approval and set posts to followers-only.
Auto-delete. Mastodon lets users delete their old posts automatically after a set period. A sparse timeline may reflect that setting.
Deletion is a request. When a post is deleted, the home server asks others to delete their copies. Well-behaved servers comply. Copies may persist on servers that do not, and in archives.
Defederation. Two servers that block each other show their users nothing of one another.
Administrators see more. A server's operator can see its users' email addresses, IP addresses and private posts stored there. That is unavailable to you, and is the route by which law enforcement obtains data, one server at a time. It is also a reason to judge who runs a server.
Staying discreet
Viewing public profiles and calling public endpoints while logged out identifies you to the server only by IP address. Logged-in actions are visible in the usual ways: follows, boosts, favourites and replies notify the user.
If you create a research account, choose its server with care. The server name is part of your identity on every interaction, and its administrator can see your account details. See OPSEC for OSINT.
Keep requests modest. Many servers are run by volunteers on small budgets. Collect what the question needs. See automating OSINT with Python for collecting responsibly, and preserving web evidence for keeping what you find.
A workflow
Record the full address, both name and server.
Confirm it with WebFinger, and fetch the profile from its home server.
Note the creation date, the
movedfield, and each profile link with its verification date.Fetch public posts. Note times, edits, languages and the apps used.
Research the server: operator, registration policy, size, domain history.
Check the same name on other servers and other platforms, without assuming they are the same person.
Save the JSON responses with timestamps and hashes.
Frequently asked questions
Can I search all of Mastodon at once?
No. Each server has its own search over the content it has seen. Web search engines cover profiles and posts that have not opted out. For one account's full public record, query its home server.
Do I need an account or API key to research Mastodon?
Usually not. Most servers answer profile, post and hashtag requests anonymously. Some require a login.
How do I verify a Mastodon account?
Look for profile links with a green verified mark. It means the linked website links back to the profile, so the same party controls both. Then assess the website and the server the account is on.
Can I see deleted Mastodon posts?
Not from the home server once deleted. Copies may remain on other servers that did not process the deletion, or in web archives.
Is Threads part of the fediverse?
Partly. Threads users can choose to share their posts with the fediverse, after which their accounts can be followed and looked up from other servers.





