# Get Mastodon Profile API

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

Category: [Social Media APIs](https://upapi.io/apis/social-media) · Last updated 2026-06-12

## How to call it

- Endpoint: `POST https://api.upapi.io/mastodon-profile.get`, key in the `X-Api-Key` header, JSON body.
- Cost: 1 weighted unit per call.
- Timeout: 15 seconds.
- Cache: identical requests are served from cache for 60 seconds, unbilled.
- Try it without writing code: https://app.upapi.io/try/mastodon-profile.get

```bash
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" }'
```

## Request parameters

- `handle` (string, required) — Fully-qualified Mastodon handle, e.g. "Gargron@mastodon.social"

## Response fields

- `id` (string, required)
- `bot` (boolean, required)
- `url` (string, required)
- `acct` (string, required)
- `note` (string, required)
- `group` (boolean, required)
- `avatar` (string, required)
- `header` (string, required)
- `locked` (boolean, required)
- `instance` (string, required)
- `username` (string, required)
- `createdAt` (string, required)
- `fetchedAt` (string, required)
- `displayName` (string, required)
- `discoverable` (boolean, required)
- `lastStatusAt` (string, required)
- `statusesCount` (integer, required)
- `followersCount` (integer, required)
- `followingCount` (integer, required)

## Example request and response

The example response is generated from the published output schema: it shows the shape and field names, not values from a recorded call.

```json
{
  "handle": "Gargron@mastodon.social"
}
```

```json
{
  "id": "example",
  "bot": false,
  "url": "https://github.com",
  "acct": "example",
  "note": "example",
  "group": false,
  "avatar": "example",
  "header": "example",
  "locked": false,
  "instance": "example",
  "username": "torvalds",
  "createdAt": "example",
  "fetchedAt": "example",
  "displayName": "example",
  "discoverable": false,
  "lastStatusAt": "example",
  "statusesCount": 1,
  "followersCount": 1,
  "followingCount": 1
}
```

## Frequently asked questions

### How much does the Get Mastodon Profile API cost per call?

Each call spends 1 weighted unit of your plan's monthly quota. Full pricing is at https://upapi.io/pricing.

### How do I authenticate to the Get Mastodon Profile API?

Send your key in the X-Api-Key header. A free guest key is available without creating an account.

### Are Get Mastodon Profile API responses cached?

Yes — identical requests are served from cache for 60 seconds, and a cache hit is not billed.

## More Social Media APIs

- [Get Bluesky Profile](https://upapi.io/apis/social-media/bluesky-profile)
- [Instagram Get User By Id](https://upapi.io/apis/social-media/instagram-get-user-by-id)
- [Instagram Get User Profile](https://upapi.io/apis/social-media/instagram-get-user-profile)
- [TikTok Get User Profile](https://upapi.io/apis/social-media/tiktok-get-user-profile)
- [Get Subreddit Info](https://upapi.io/apis/social-media/reddit-subreddit-info)
- [Get Trending Reddit Posts](https://upapi.io/apis/social-media/reddit-get-trending)
- [Instagram Get Post Commenters](https://upapi.io/apis/social-media/instagram-get-post-commenters)
- [Instagram Get Post Info](https://upapi.io/apis/social-media/instagram-get-post-info)
