# Mastodon

27 endpoints on Mastodon. Every one returns the same response shape and has a flat, published price in credits.

Category: [Social networks](https://onekey.dev/docs/categories/social.md) · [Overview page](https://onekey.dev/platforms/mastodon)

## Endpoints

| Endpoint | What it does | Cost | Status |
| --- | --- | --- | --- |
| [`account_by_id`](https://onekey.dev/docs/api/mastodon/account_by_id.md) | Fetch a Mastodon account by numeric id (instance-local id). | 1 credit | stable |
| [`custom_emojis`](https://onekey.dev/docs/api/mastodon/custom_emojis.md) | Custom emojis of an instance. | 5 credits | stable |
| [`directory`](https://onekey.dev/docs/api/mastodon/directory.md) | Profile directory of an instance. | 5 credits | stable |
| [`featured_tags`](https://onekey.dev/docs/api/mastodon/featured_tags.md) | Hashtags featured on a Mastodon profile. | 5 credits | stable |
| [`followers`](https://onekey.dev/docs/api/mastodon/followers.md) | Followers of a Mastodon account. | 5 credits | stable |
| [`following`](https://onekey.dev/docs/api/mastodon/following.md) | Accounts a Mastodon account follows. | 5 credits | stable |
| [`hashtag`](https://onekey.dev/docs/api/mastodon/hashtag.md) | Hashtag info and 7-day usage on an instance. | 1 credit | stable |
| [`instance`](https://onekey.dev/docs/api/mastodon/instance.md) | Instance information (v2). | 1 credit | stable |
| [`instance_activity`](https://onekey.dev/docs/api/mastodon/instance_activity.md) | Weekly activity of an instance. | 5 credits | stable |
| [`instance_peers`](https://onekey.dev/docs/api/mastodon/instance_peers.md) | Domains an instance federates with (large list). | 5 credits | stable |
| [`instance_rules`](https://onekey.dev/docs/api/mastodon/instance_rules.md) | Rules of an instance. | 5 credits | stable |
| [`profile`](https://onekey.dev/docs/api/mastodon/profile.md) | Fetch a Mastodon account (default instance mastodon.social). | 1 credit | stable |
| [`search_accounts`](https://onekey.dev/docs/api/mastodon/search_accounts.md) | Search Mastodon accounts. | 5 credits | stable |
| [`search_hashtags`](https://onekey.dev/docs/api/mastodon/search_hashtags.md) | Search Mastodon hashtags. | 5 credits | stable |
| [`status`](https://onekey.dev/docs/api/mastodon/status.md) | A single Mastodon post by instance-local id. | 1 credit | stable |
| [`status_context_replies`](https://onekey.dev/docs/api/mastodon/status_context_replies.md) | Replies to a Mastodon post. | 5 credits | stable |
| [`status_favourited_by`](https://onekey.dev/docs/api/mastodon/status_favourited_by.md) | Accounts that favourited a Mastodon post. | 5 credits | stable |
| [`status_reblogged_by`](https://onekey.dev/docs/api/mastodon/status_reblogged_by.md) | Accounts that boosted a Mastodon post. | 5 credits | stable |
| [`statuses`](https://onekey.dev/docs/api/mastodon/statuses.md) | Recent public posts by a Mastodon account (by instance-local account id). | 5 credits | stable |
| [`statuses_media`](https://onekey.dev/docs/api/mastodon/statuses_media.md) | Media posts by a Mastodon account. | 5 credits | stable |
| [`statuses_pinned`](https://onekey.dev/docs/api/mastodon/statuses_pinned.md) | Pinned posts of a Mastodon account. | 5 credits | stable |
| [`timeline_local`](https://onekey.dev/docs/api/mastodon/timeline_local.md) | Local timeline of an instance (anonymous access). | 5 credits | stable |
| [`timeline_public`](https://onekey.dev/docs/api/mastodon/timeline_public.md) | Federated public timeline (instances that allow anonymous access). | 5 credits | stable |
| [`timeline_tag`](https://onekey.dev/docs/api/mastodon/timeline_tag.md) | Public posts for a hashtag. | 5 credits | stable |
| [`trends_links`](https://onekey.dev/docs/api/mastodon/trends_links.md) | Trending links on an instance. | 5 credits | stable |
| [`trends_statuses`](https://onekey.dev/docs/api/mastodon/trends_statuses.md) | Trending posts on an instance. | 5 credits | stable |
| [`trends_tags`](https://onekey.dev/docs/api/mastodon/trends_tags.md) | Trending hashtags on an instance. | 5 credits | stable |

Every endpoint page has a **Field mapping** section showing which source field becomes which [unified field](https://onekey.dev/docs/schema.md) (fixed schema) or platform-specific `ext.` field.
