# Mastodon Profile (`mastodon.profile`)

Public profile of a Mastodon account from its instance: name, bio, followers, following, post count and profile fields.

- **Route:** `POST /v1/run/mastodon.profile`
- **Price:** $0.0011 per request ($1.10 per 1,000) · `cost_usd` on every response
- **Source:** Mastodon instance API (`mastodon`) · failover: no
- **Measured latency:** p50 769 ms · p95 769 ms · p99 769 ms (1 calls, 30d)
- **Heavy response:** no

## Input

| Field | Type | Required | Default | Notes |
|---|---|---|---|---|
| `handle` | string | yes |  | user, user@instance or profile URL |
| `instance` | string | no | "mastodon.social" | Mastodon server host name |

## Output (`output` in the run envelope)

| Field | Meaning |
|---|---|
| `display_name` | Display name. |
| `bio` | Bio as text. |
| `followers` | Follower count. |
| `following` | Following count. |
| `posts` | Post count. |
| `fields` | Profile fields with verification. |

## Example

```bash
curl -s -X POST https://getallapis.com/v1/run/mastodon.profile \
  -H "Authorization: Bearer $GETALLAPIS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"handle":"Gargron@mastodon.social"}'
```

```python
from getallapis_client import Client
client = Client()  # reads GETALLAPIS_API_KEY
result = client.run('mastodon.profile', {'handle': 'Gargron@mastodon.social'})
print(result['cost_usd'], result['output'])
```

```bash
getallapis run mastodon.profile '{"handle":"Gargron@mastodon.social"}'
```

Quote first (free, validates input): `POST /v1/quote/mastodon.profile` with the same body.
