# mastodon.profile

A Mastodon account's profile on its own server: names, bio, profile fields, pictures, follower, following and post counts.

Mastodon profile, one of the Mastodon scrapers.

| | |
| --- | --- |
| Id | `mastodon.profile` |
| Version | 1 |
| Billed per | request — 1 unit for a charged run |
| Runs | within one request |

Start it with `POST /v1/scrapers/mastodon.profile/runs`. How runs work is in [Running a scraper](https://docs.enrichednow.com/running-a-scraper.md); what a run costs is in [Usage and units](https://docs.enrichednow.com/usage-and-units.md).

## Inputs

The fields of `input`. A field that is not listed here is refused.

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `account` | string | yes | The account as @user@server, e.g. @Mastodon@mastodon.social, or its profile address (https://mastodon.social/@Mastodon). Limit: at most 400 characters. |

## Record fields

Every record of a run has these fields. A value that is not known is `null` — never an empty string and never `0`.

| Field | Type | Notes |
| --- | --- | --- |
| `id` | string | The account's id on its server. |
| `username` | string or null | The username, without the server. |
| `acct` | string | The account's full address, user@server. |
| `url` | string or null | The profile's address on the web. |
| `display_name` | string or null | The display name. |
| `bio` | string or null | The profile's bio text, links written out; null when there is none. |
| `fields` | array of object | The label and value pairs the profile shows under the bio. |
| `fields[].name` | string | The label of a profile field, e.g. Website. |
| `fields[].value` | string or null | Its text, links written out. |
| `fields[].verified` | boolean | True when the server checked that the linked page links back to the profile. Default: `false`. |
| `avatar_url` | string or null | The profile picture. |
| `header_url` | string or null | The header image; null when there is none. |
| `follower_count` | integer or null | Number of followers; null when the account hides it. |
| `following_count` | integer or null | Number of accounts this one follows; null when the account hides it. |
| `post_count` | integer or null | Number of posts the account has published. |
| `created_at` | string (date-time) or null | When the account was created, in UTC (Mastodon gives the day). |
| `last_post_on` | string (date-time) or null | The day of the account's last post, in UTC. |
| `bot` | boolean or null | True when the account says it is automated. |
| `group` | boolean or null | True when the account is a group. |
| `locked` | boolean or null | True when the account approves its followers by hand. |
| `discoverable` | boolean or null | True when the owner lets the server feature the account in its directory. |
| `indexable` | boolean or null | True when the owner lets the account's public posts be found by full-text search. |
| `noindex` | boolean or null | True when the owner asked search engines not to index the profile. |
| `moved_to` | string or null | The account it moved to, as user@server, when it has moved. |
| `fetched_at` | string (date-time) | When the answer was read, in UTC. |

## Example request

It starts a run with this scraper's example input and waits up to 60 seconds for it. The key is read from `ENRICHEDNOW_API_KEY`.

```bash
curl -X POST "https://api.enrichednow.com/v1/scrapers/mastodon.profile/runs?wait=60" \
  -H "Authorization: Bearer $ENRICHEDNOW_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"input":{"account":"@Mastodon@mastodon.social"}}'
```

## Example response

The run, once it has ended. A run that has not ended within `wait` comes back with `202` and the status `queued` or `running`.

```json
{
  "id": "run_841742f37553189ff9c27ba1",
  "scraper_id": "mastodon.profile",
  "scraper_version": 1,
  "status": "ok",
  "reason": null,
  "input": {
    "account": "@Mastodon@mastodon.social"
  },
  "record_count": 1,
  "units": 1,
  "units_per_request": 1,
  "units_per_record": null,
  "units_per_page": null,
  "diagnostics": {
    "requests": 1,
    "bytes": 259214,
    "wall_ms": 885,
    "facts": {}
  },
  "created_at": "2026-11-16T22:37:50.170950Z",
  "started_at": "2026-11-16T22:37:50.178331Z",
  "finished_at": "2026-11-16T22:37:51.066313Z"
}
```

Its records, from `GET /v1/runs/{id}/records`. The record is a real one: this scraper's own parser read it from a page recorded from the site.

```json
{
  "records": [
    {
      "id": "13179",
      "username": "Mastodon",
      "acct": "Mastodon@mastodon.social",
      "url": "https://mastodon.social/@Mastodon",
      "display_name": "Mastodon",
      "bio": "Our mission is to connect the world through thriving online communities.\nThis is the primary account for the Mastodon project.\nFor technical software updates, follow @MastodonEngineering\nFor news and updates on the Mastodon servers that we … [truncated]",
      "fields": [
        {
          "name": "Homepage",
          "value": "https://joinmastodon.org",
          "verified": true
        },
        {
          "name": "Source Code",
          "value": "https://github.com/mastodon",
          "verified": true
        }
      ],
      "avatar_url": "https://files.mastodon.social/accounts/avatars/000/013/179/original/b4ceb19c9c54ec7e.png",
      "header_url": "https://files.mastodon.social/accounts/headers/000/013/179/original/1375be116fbe0f1d.png",
      "follower_count": 878842,
      "following_count": 51,
      "post_count": 568,
      "created_at": "2016-11-23T00:00:00Z",
      "last_post_on": "2026-11-16T00:00:00Z",
      "bot": false,
      "group": false,
      "locked": false,
      "discoverable": true,
      "indexable": true,
      "noindex": false,
      "moved_to": null,
      "fetched_at": "2026-11-19T18:07:40.973228Z"
    }
  ],
  "next_cursor": null
}
```

What was done to the record for this page, and nothing else — the API returns every value whole. A text that was cut ends with `… [truncated]`.

- Shortened: `bio`: 279 characters, the first 239 shown.
- Shortened: `fields`: 4 items, the first 2 shown.

A run does not always end `ok`. [Results and statuses](https://docs.enrichednow.com/results-and-statuses.md#reason-codes) lists every status and the reasons every scraper shares; [the reasons of the Mastodon scrapers](https://docs.enrichednow.com/results-and-statuses.md#mastodon) are in their own section there.
