Get Mastodon Profile
PythonSocial MediaPOST api.upapi.io/mastodon-profile.getLook 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
| Field | Type | Description |
|---|---|---|
handlereq | string | Fully-qualified Mastodon handle, e.g. "Gargron@mastodon.social" |
Response schema
| Field | Type | Description |
|---|---|---|
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.
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.