Get Mastodon Profile

PythonSocial Media
POST api.upapi.io/mastodon-profile.get

Look up a Mastodon account by fully-qualified handle (e.g. Gargron@mastodon.social). Works against any Mastodon instance via its open REST API - no auth needed.

mastodonfediversesocialpython
AuthAPI key
Cost1 unit
Timeout15s
Cache60s

Request schema

FieldTypeDescription
handlereq
stringFully-qualified Mastodon handle, e.g. "Gargron@mastodon.social"

Response schema

FieldTypeDescription
idreq
string
botreq
boolean
urlreq
string
acctreq
string
notereq
string
groupreq
boolean
avatarreq
headerreq
lockedreq
boolean
instancereq
string
usernamereq
string
createdAtreq
fetchedAtreq
string
displayNamereq
string
discoverablereq
lastStatusAtreq
statusesCountreq
integer
followersCountreq
integer
followingCountreq
integer

Try it

Try it

Fully-qualified Mastodon handle, e.g. "Gargron@mastodon.social"

Run this endpoint live

Jump in as a guest — no signup — and run mastodon-profile.get with your own inputs. Create a free account anytime to get your own API key.

Sign in

Code examples

curl -X POST https://api.upapi.io/mastodon-profile.get \
  -H 'Content-Type: application/json' \
  -H 'x-api-key: YOUR_API_KEY' \
  -d '{ "handle": "Gargron@mastodon.social" }'

Developer tools

OpenAPI specImport the spec or collection into Postman, Insomnia, or any codegen tool.