honesthook

mastodon-api/profile

Mastodon profile API — federated, instance required

Public Mastodon profile: followers, following, posts, bio, verified link. Official protocol API, no key and no account.

Parameters

NameWhat it is
handleuser@instance. Without the instance the call is refused with 400, because @name alone identifies nobody on a federated network.

Handle format and anchor

What this endpoint does not return.

A field we cannot read comes back null, never 0. A zero would be a claim about the account; null is a fact about our collection.

Where this goes wrong.

The envelope id is the ActivityPub uri, not the numeric id. The numeric id is local to each instance — the same account has a different one on every server. The lookup goes to the account's ORIGIN instance, which is the authoritative one.

Measured

932 bytes on the wire.

Cost

1 credit per call. A call that finds nothing costs nothing.

Why does @gargron return a 400?

Mastodon is federated. A name without an instance identifies nobody, so the call is refused instead of guessing an instance.

Why is verified always null?

Mastodon verifies that you control a link. It does not verify who you are. Those are not the same claim.

Which instance is queried?

The account's origin instance, which is the authoritative one for its counters.

Other routes for this platform

← mastodon-api