# 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.

- Author: [Dheeraj Yadav](https://osintblogs.com/u/dheerajydv19)
- Published: 2026-11-28
- Topics: [SOCMINT](https://osintblogs.com/tags/socmint), [Tools](https://osintblogs.com/tags/tools), [Tutorials](https://osintblogs.com/tags/tutorials), [Verification](https://osintblogs.com/tags/verification)
- Source: https://osintblogs.com/posts/mastodon-and-fediverse-osint-accounts-servers-and-public-apis
- Site: OSINTblogs

---

[Mastodon](https://joinmastodon.org/) 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](https://www.w3.org/TR/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.example
```

The 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](https://www.rfc-editor.org/info/rfc7033/) is the lookup that servers use to find each other's users. It is public.

```bash
curl -s "https://mastodon.social/.well-known/webfinger?resource=acct:Gargron@mastodon.social" | jq
```

The 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](https://docs.joinmastodon.org/methods/accounts/). Start with a lookup by name:

```bash
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:

- `id` is the account's permanent number on that server. Use it for further requests.
- `created_at` is the creation date. Mastodon [rounds it to the day](https://docs.joinmastodon.org/entities/Account/) for privacy.
- `last_status_at` is the date of the most recent post.
- `bot` is a flag the owner sets to declare an automated account.
- `locked` means followers need approval.
- `fields` are the profile's link and label rows. See verified links below.
- `moved` appears when the account has migrated to another server, and points to the new one.
- `note` is 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](https://docs.joinmastodon.org/user/profile/#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](https://osintblogs.com/posts/how-to-investigate-a-domain-rdap-dns-subdomains-and-history).

## Posts

```bash
# 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_at` is the full timestamp in UTC.
- `edited_at` shows a post was changed. The edit history is available from the post's `/history` endpoint.
- `application` names the app the post was sent from, where the user allows it to be shown.
- `visibility` is `public` or `unlisted` for anything you can see without logging in. Followers-only and direct posts are not returned.
- `in_reply_to_id` and `reblog` show 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.

```python
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:

```bash
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](https://osintblogs.com/posts/username-osint-finding-and-verifying-accounts-across-platforms).
- **Followers and following lists** are public on most profiles unless hidden, and are a way [from one account to a community](https://osintblogs.com/posts/osint-pivoting-how-to-get-from-one-identifier-to-the-next).

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.

```bash
# 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](https://osintblogs.com/posts/bluesky-osint-dids-handle-history-and-the-open-at-protocol).

## 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](https://osintblogs.com/glossary/web-archive).
- **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](https://osintblogs.com/posts/ip-address-osint-what-an-ip-reveals-and-where-it-misleads). 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](https://osintblogs.com/posts/opsec-for-osint-investigators-how-to-research-without-exposure).

Keep requests modest. Many servers are run by volunteers on small budgets. Collect what the question needs. See [automating OSINT with Python](https://osintblogs.com/posts/automating-osint-with-python-a-practical-starter-guide) for collecting responsibly, and [preserving web evidence](https://osintblogs.com/posts/how-to-preserve-web-evidence-capture-hash-timestamp-and-log) for keeping what you find.

## A workflow

1. Record the full address, both name and server.
2. Confirm it with WebFinger, and fetch the profile from its home server.
3. Note the creation date, the `moved` field, and each profile link with its verification date.
4. Fetch public posts. Note times, edits, languages and the apps used.
5. Research the server: operator, registration policy, size, domain history.
6. Check the same name on other servers and other platforms, without assuming they are the same person.
7. Save the JSON responses with timestamps and [hashes](https://osintblogs.com/glossary/hash).

## 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](https://osintblogs.com/posts/wayback-machine-for-osint-the-cdx-api-and-advanced-techniques).

### 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.
