# Mastodon API

> Returns Mastodon accounts, their posts, single posts with conversation context, and follower and following lists.

Category: Social & Video. Region: global. 20 endpoints at `https://api.hoshime.com/v1/mastodon/<endpoint>`, `GET` with query parameters, answering `{data, meta}` (see https://hoshime.com/docs/responses.md). Reference: https://hoshime.com/docs/platforms/mastodon
## GET /v1/mastodon/account

A Mastodon account by its acct (user or user@server) or its profile URL.

Scope: `social:read` · Units: 1 · Cached: 10 min

| Parameter | Type | Required | Description |
|---|---|---|---|
| `account` | string | yes | acct (@user@server, user@server or user) or profile URL, such as https://mastodon.social/@Gargron. (e.g. Gargron) |
| `instance` | string | no | Server hostname, such as mastodon.social. An id or account given as a URL names its own server instead. (default mastodon.social) |
| `tunnel` | string | no | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
| `proxy` | string | no | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
| `profileId` | string | no | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |

Response data fields: `acct` (string), `avatar` (string), `bot` (boolean), `createdAt` (string), `displayName` (string), `followersCount` (integer (int64)), `followingCount` (integer (int64)), `header` (string), `id` (string), `lastStatusDate` (string), `locked` (boolean), `note` (string), `statusesCount` (integer (int64)), `url` (string), `username` (string)

```bash
curl "https://api.hoshime.com/v1/mastodon/account?account=Gargron" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/mastodon/statuses

Posts and boosts of an account, newest first, 20 per page.

Scope: `social:read` · Units: 1 · Cached: 5 min · Paginated: cursor

| Parameter | Type | Required | Description |
|---|---|---|---|
| `account` | string | yes | acct (@user@server, user@server or user) or profile URL, such as https://mastodon.social/@Gargron. (e.g. Gargron) |
| `instance` | string | no | Server hostname, such as mastodon.social. An id or account given as a URL names its own server instead. (default mastodon.social) |
| `cursor` | string | no | meta.pagination.nextCursor of the previous page. Omit it for the first page. |
| `tunnel` | string | no | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
| `proxy` | string | no | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
| `profileId` | string | no | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |

Response data fields: `author` (Author), `author.acct` (string), `author.displayName` (string), `author.id` (string), `author.url` (string), `content` (string), `createdAt` (string), `favouritesCount` (integer (int64)), `id` (string), `inReplyToId` (string), `language` (string), `media` (Media[]), `media[].description` (string), `media[].previewUrl` (string), `media[].type` (string), `media[].url` (string), `reblogOf` (string), `reblogsCount` (integer (int64)), `repliesCount` (integer (int64)), `sensitive` (boolean), `spoilerText` (string), `tags` (string[]), `url` (string)

```bash
curl "https://api.hoshime.com/v1/mastodon/statuses?account=Gargron" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/mastodon/status

One post or boost by its id or its URL.

Scope: `social:read` · Units: 1 · Cached: 10 min

| Parameter | Type | Required | Description |
|---|---|---|---|
| `id` | string | yes | Status id or post URL, such as https://mastodon.social/@Gargron/117564721426513119. (e.g. 1) |
| `instance` | string | no | Server hostname, such as mastodon.social. An id or account given as a URL names its own server instead. (default mastodon.social) |
| `tunnel` | string | no | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
| `proxy` | string | no | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
| `profileId` | string | no | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |

Response data fields: `author` (Author), `author.acct` (string), `author.displayName` (string), `author.id` (string), `author.url` (string), `content` (string), `createdAt` (string), `favouritesCount` (integer (int64)), `id` (string), `inReplyToId` (string), `language` (string), `media` (Media[]), `media[].description` (string), `media[].previewUrl` (string), `media[].type` (string), `media[].url` (string), `reblogOf` (string), `reblogsCount` (integer (int64)), `repliesCount` (integer (int64)), `sensitive` (boolean), `spoilerText` (string), `tags` (string[]), `url` (string)

```bash
curl "https://api.hoshime.com/v1/mastodon/status?id=1" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/mastodon/context

The conversation around a post: the posts it replies to, and the replies to it.

Scope: `social:read` · Units: 1 · Cached: 5 min

| Parameter | Type | Required | Description |
|---|---|---|---|
| `id` | string | yes | Status id or post URL, such as https://mastodon.social/@Gargron/117564721426513119. (e.g. 117564721426513119) |
| `instance` | string | no | Server hostname, such as mastodon.social. An id or account given as a URL names its own server instead. (default mastodon.social) |
| `tunnel` | string | no | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
| `proxy` | string | no | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
| `profileId` | string | no | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |

Response data fields: `ancestors` (Status[]), `ancestors[].author` (Author), `ancestors[].content` (string), `ancestors[].createdAt` (string), `ancestors[].favouritesCount` (integer (int64)), `ancestors[].id` (string), `ancestors[].inReplyToId` (string), `ancestors[].language` (string), `ancestors[].media` (Media[]), `ancestors[].reblogOf` (string), `ancestors[].reblogsCount` (integer (int64)), `ancestors[].repliesCount` (integer (int64)), `ancestors[].sensitive` (boolean), `ancestors[].spoilerText` (string), `ancestors[].tags` (string[]), `ancestors[].url` (string), `descendants` (Status[]), `descendants[].author` (Author), `descendants[].content` (string), `descendants[].createdAt` (string), `descendants[].favouritesCount` (integer (int64)), `descendants[].id` (string), `descendants[].inReplyToId` (string), `descendants[].language` (string), `descendants[].media` (Media[]), `descendants[].reblogOf` (string), `descendants[].reblogsCount` (integer (int64)), `descendants[].repliesCount` (integer (int64)), `descendants[].sensitive` (boolean), `descendants[].spoilerText` (string), `descendants[].tags` (string[]), `descendants[].url` (string)

```bash
curl "https://api.hoshime.com/v1/mastodon/context?id=117564721426513119" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/mastodon/followers

Accounts that follow one account, 20 per page, newest follow first.

Scope: `social:read` · Units: 1 · Cached: 10 min · Paginated: cursor

| Parameter | Type | Required | Description |
|---|---|---|---|
| `account` | string | yes | acct (@user@server, user@server or user) or profile URL, such as https://mastodon.social/@Gargron. (e.g. Gargron) |
| `instance` | string | no | Server hostname, such as mastodon.social. An id or account given as a URL names its own server instead. (default mastodon.social) |
| `cursor` | string | no | meta.pagination.nextCursor of the previous page. Omit it for the first page. |
| `tunnel` | string | no | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
| `proxy` | string | no | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
| `profileId` | string | no | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |

Response data fields: `acct` (string), `avatar` (string), `bot` (boolean), `createdAt` (string), `displayName` (string), `followersCount` (integer (int64)), `followingCount` (integer (int64)), `header` (string), `id` (string), `lastStatusDate` (string), `locked` (boolean), `note` (string), `statusesCount` (integer (int64)), `url` (string), `username` (string)

```bash
curl "https://api.hoshime.com/v1/mastodon/followers?account=Gargron" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/mastodon/following

Accounts that one account follows, 20 per page, newest follow first.

Scope: `social:read` · Units: 1 · Cached: 10 min · Paginated: cursor

| Parameter | Type | Required | Description |
|---|---|---|---|
| `account` | string | yes | acct (@user@server, user@server or user) or profile URL, such as https://mastodon.social/@Gargron. (e.g. Gargron) |
| `instance` | string | no | Server hostname, such as mastodon.social. An id or account given as a URL names its own server instead. (default mastodon.social) |
| `cursor` | string | no | meta.pagination.nextCursor of the previous page. Omit it for the first page. |
| `tunnel` | string | no | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
| `proxy` | string | no | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
| `profileId` | string | no | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |

Response data fields: `acct` (string), `avatar` (string), `bot` (boolean), `createdAt` (string), `displayName` (string), `followersCount` (integer (int64)), `followingCount` (integer (int64)), `header` (string), `id` (string), `lastStatusDate` (string), `locked` (boolean), `note` (string), `statusesCount` (integer (int64)), `url` (string), `username` (string)

```bash
curl "https://api.hoshime.com/v1/mastodon/following?account=Gargron" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/mastodon/featuredTags

Hashtags one account features on its profile.

Scope: `social:read` · Units: 1 · Cached: 30 min · Paginated: cursor

| Parameter | Type | Required | Description |
|---|---|---|---|
| `account` | string | yes | acct (@user@server, user@server or user) or profile URL, such as https://mastodon.social/@Gargron. (e.g. Gargron) |
| `instance` | string | no | Server hostname, such as mastodon.social. An id or account given as a URL names its own server instead. (default mastodon.social) |
| `tunnel` | string | no | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
| `proxy` | string | no | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
| `profileId` | string | no | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |

Response data fields: `id` (string), `lastStatusDate` (string), `name` (string), `statusCount` (integer (int64)), `url` (string)

```bash
curl "https://api.hoshime.com/v1/mastodon/featuredTags?account=Gargron" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/mastodon/trendingTags

Hashtags trending on a server, with their uses and accounts today.

Scope: `social:read` · Units: 1 · Cached: 10 min · Paginated: cursor

| Parameter | Type | Required | Description |
|---|---|---|---|
| `instance` | string | no | Server hostname, such as mastodon.social. An id or account given as a URL names its own server instead. (default mastodon.social) |
| `limit` | integer | no | Hashtags to return, 1 to 20. (default 10) |
| `tunnel` | string | no | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
| `proxy` | string | no | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
| `profileId` | string | no | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |

Response data fields: `accounts` (integer (int64)), `name` (string), `url` (string), `uses` (integer (int64))

```bash
curl "https://api.hoshime.com/v1/mastodon/trendingTags" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/mastodon/trendingStatuses

Posts trending on a server, most trending first.

Scope: `social:read` · Units: 1 · Cached: 10 min · Paginated: cursor

| Parameter | Type | Required | Description |
|---|---|---|---|
| `instance` | string | no | Server hostname, such as mastodon.social. An id or account given as a URL names its own server instead. (default mastodon.social) |
| `limit` | integer | no | Posts per page, 1 to 20. (default 10) |
| `cursor` | string | no | meta.pagination.nextCursor of the previous page. Omit it for the first page. |
| `tunnel` | string | no | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
| `proxy` | string | no | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
| `profileId` | string | no | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |

Response data fields: `author` (Author), `author.acct` (string), `author.displayName` (string), `author.id` (string), `author.url` (string), `content` (string), `createdAt` (string), `favouritesCount` (integer (int64)), `id` (string), `inReplyToId` (string), `language` (string), `media` (Media[]), `media[].description` (string), `media[].previewUrl` (string), `media[].type` (string), `media[].url` (string), `reblogOf` (string), `reblogsCount` (integer (int64)), `repliesCount` (integer (int64)), `sensitive` (boolean), `spoilerText` (string), `tags` (string[]), `url` (string)

```bash
curl "https://api.hoshime.com/v1/mastodon/trendingStatuses" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/mastodon/trendingLinks

News links that the server's users share most right now, with today's share counts.

Scope: `social:read` · Units: 1 · Cached: 10 min · Paginated: cursor

| Parameter | Type | Required | Description |
|---|---|---|---|
| `limit` | integer | no | Items per page, 1 to 20. (default 10) |
| `instance` | string | no | Server hostname, such as mastodon.social. An id or account given as a URL names its own server instead. (default mastodon.social) |
| `tunnel` | string | no | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
| `proxy` | string | no | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
| `profileId` | string | no | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |

Response data fields: `accounts` (integer (int64)), `author` (string), `description` (string), `language` (string), `provider` (string), `publishedAt` (string), `title` (string), `url` (string), `uses` (integer (int64))

```bash
curl "https://api.hoshime.com/v1/mastodon/trendingLinks" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/mastodon/tag

One hashtag of a server with its daily use over the last week.

Scope: `social:read` · Units: 1 · Cached: 10 min

| Parameter | Type | Required | Description |
|---|---|---|---|
| `tag` | string | yes | Hashtag with or without #, or a tag URL such as https://mastodon.social/tags/mastodon. (e.g. mastodon) |
| `instance` | string | no | Server hostname, such as mastodon.social. An id or account given as a URL names its own server instead. (default mastodon.social) |
| `tunnel` | string | no | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
| `proxy` | string | no | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
| `profileId` | string | no | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |

Response data fields: `history` (TagUsageDay[]), `history[].accounts` (integer (int64)), `history[].day` (string), `history[].uses` (integer (int64)), `name` (string), `url` (string)

```bash
curl "https://api.hoshime.com/v1/mastodon/tag?tag=mastodon" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/mastodon/tagTimeline

Public posts with a hashtag, newest first, 20 per page.

Scope: `social:read` · Units: 1 · Cached: 5 min · Paginated: cursor

| Parameter | Type | Required | Description |
|---|---|---|---|
| `tag` | string | yes | Hashtag with or without #, or a tag URL such as https://mastodon.social/tags/mastodon. (e.g. mastodon) |
| `instance` | string | no | Server hostname, such as mastodon.social. An id or account given as a URL names its own server instead. (default mastodon.social) |
| `cursor` | string | no | meta.pagination.nextCursor of the previous page. Omit it for the first page. |
| `tunnel` | string | no | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
| `proxy` | string | no | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
| `profileId` | string | no | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |

Response data fields: `author` (Author), `author.acct` (string), `author.displayName` (string), `author.id` (string), `author.url` (string), `content` (string), `createdAt` (string), `favouritesCount` (integer (int64)), `id` (string), `inReplyToId` (string), `language` (string), `media` (Media[]), `media[].description` (string), `media[].previewUrl` (string), `media[].type` (string), `media[].url` (string), `reblogOf` (string), `reblogsCount` (integer (int64)), `repliesCount` (integer (int64)), `sensitive` (boolean), `spoilerText` (string), `tags` (string[]), `url` (string)

```bash
curl "https://api.hoshime.com/v1/mastodon/tagTimeline?tag=mastodon" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/mastodon/directory

Accounts of a server that opted into the profile directory, 20 per page.

Scope: `social:read` · Units: 1 · Cached: 10 min · Paginated: cursor

| Parameter | Type | Required | Description |
|---|---|---|---|
| `order` | string | no | active for the most recently active accounts, new for the newest. (one of active, new; default active) |
| `local` | boolean | no | true for accounts of this server only, false to include accounts it knows of. (default true) |
| `instance` | string | no | Server hostname, such as mastodon.social. An id or account given as a URL names its own server instead. (default mastodon.social) |
| `cursor` | string | no | meta.pagination.nextCursor of the previous page. Omit it for the first page. |
| `tunnel` | string | no | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
| `proxy` | string | no | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
| `profileId` | string | no | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |

Response data fields: `acct` (string), `avatar` (string), `bot` (boolean), `createdAt` (string), `displayName` (string), `followersCount` (integer (int64)), `followingCount` (integer (int64)), `header` (string), `id` (string), `lastStatusDate` (string), `locked` (boolean), `note` (string), `statusesCount` (integer (int64)), `url` (string), `username` (string)

```bash
curl "https://api.hoshime.com/v1/mastodon/directory" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/mastodon/searchAccounts

Accounts that match a search on a server, 20 per page; later pages need a server that serves them without sign-in.

Scope: `social:read` · Units: 1 · Cached: 10 min · Paginated: cursor

| Parameter | Type | Required | Description |
|---|---|---|---|
| `query` | string | yes | Name, handle or words to search for. (e.g. gargron) |
| `instance` | string | no | Server hostname, such as mastodon.social. An id or account given as a URL names its own server instead. (default mastodon.social) |
| `cursor` | string | no | meta.pagination.nextCursor of the previous page. Omit it for the first page. |
| `tunnel` | string | no | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
| `proxy` | string | no | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
| `profileId` | string | no | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |

Response data fields: `acct` (string), `avatar` (string), `bot` (boolean), `createdAt` (string), `displayName` (string), `followersCount` (integer (int64)), `followingCount` (integer (int64)), `header` (string), `id` (string), `lastStatusDate` (string), `locked` (boolean), `note` (string), `statusesCount` (integer (int64)), `url` (string), `username` (string)

```bash
curl "https://api.hoshime.com/v1/mastodon/searchAccounts?query=gargron" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/mastodon/instance

A Mastodon server: its name, description, version, languages, registration and user, post and server counts.

Scope: `social:read` · Units: 1 · Cached: 60 min

| Parameter | Type | Required | Description |
|---|---|---|---|
| `instance` | string | no | Server hostname, such as mastodon.social. An id or account given as a URL names its own server instead. (default mastodon.social; e.g. mastodon.social) |
| `tunnel` | string | no | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
| `proxy` | string | no | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
| `profileId` | string | no | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |

Response data fields: `description` (string), `domain` (string), `domainCount` (integer (int64)), `languages` (string[]), `registrations` (boolean), `shortDescription` (string), `statusCount` (integer (int64)), `title` (string), `userCount` (integer (int64)), `version` (string)

```bash
curl "https://api.hoshime.com/v1/mastodon/instance?instance=mastodon.social" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/mastodon/instanceActivity

Weekly posts, logins and new sign-ups of a Mastodon server, newest week first.

Scope: `social:read` · Units: 1 · Cached: 60 min · Paginated: cursor

| Parameter | Type | Required | Description |
|---|---|---|---|
| `instance` | string | no | Server hostname, such as mastodon.social. An id or account given as a URL names its own server instead. (default mastodon.social; e.g. mastodon.social) |
| `tunnel` | string | no | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
| `proxy` | string | no | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
| `profileId` | string | no | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |

Response data fields: `logins` (integer (int64)), `registrations` (integer (int64)), `statuses` (integer (int64)), `week` (string)

```bash
curl "https://api.hoshime.com/v1/mastodon/instanceActivity?instance=mastodon.social" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/mastodon/favouritedBy

Accounts that liked (favourited) a post, 20 per page.

Scope: `social:read` · Units: 1 · Cached: 5 min · Paginated: cursor

| Parameter | Type | Required | Description |
|---|---|---|---|
| `id` | string | yes | Status id or post URL, such as https://mastodon.social/@Gargron/117564721426513119. (e.g. 117564721426513119) |
| `instance` | string | no | Server hostname, such as mastodon.social. An id or account given as a URL names its own server instead. (default mastodon.social) |
| `cursor` | string | no | meta.pagination.nextCursor of the previous page. Omit it for the first page. |
| `tunnel` | string | no | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
| `proxy` | string | no | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
| `profileId` | string | no | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |

Response data fields: `acct` (string), `avatar` (string), `bot` (boolean), `createdAt` (string), `displayName` (string), `followersCount` (integer (int64)), `followingCount` (integer (int64)), `header` (string), `id` (string), `lastStatusDate` (string), `locked` (boolean), `note` (string), `statusesCount` (integer (int64)), `url` (string), `username` (string)

```bash
curl "https://api.hoshime.com/v1/mastodon/favouritedBy?id=117564721426513119" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/mastodon/rebloggedBy

Accounts that boosted (reblogged) a post, 20 per page.

Scope: `social:read` · Units: 1 · Cached: 5 min · Paginated: cursor

| Parameter | Type | Required | Description |
|---|---|---|---|
| `id` | string | yes | Status id or post URL, such as https://mastodon.social/@Gargron/117564721426513119. (e.g. 117564721426513119) |
| `instance` | string | no | Server hostname, such as mastodon.social. An id or account given as a URL names its own server instead. (default mastodon.social) |
| `cursor` | string | no | meta.pagination.nextCursor of the previous page. Omit it for the first page. |
| `tunnel` | string | no | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
| `proxy` | string | no | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
| `profileId` | string | no | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |

Response data fields: `acct` (string), `avatar` (string), `bot` (boolean), `createdAt` (string), `displayName` (string), `followersCount` (integer (int64)), `followingCount` (integer (int64)), `header` (string), `id` (string), `lastStatusDate` (string), `locked` (boolean), `note` (string), `statusesCount` (integer (int64)), `url` (string), `username` (string)

```bash
curl "https://api.hoshime.com/v1/mastodon/rebloggedBy?id=117564721426513119" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/mastodon/statusHistory

The edit history of a post: each earlier version with its text and time, oldest first.

Scope: `social:read` · Units: 1 · Cached: 10 min · Paginated: cursor

| Parameter | Type | Required | Description |
|---|---|---|---|
| `id` | string | yes | Status id or post URL, such as https://mastodon.social/@Gargron/117564721426513119. (e.g. 117564721426513119) |
| `instance` | string | no | Server hostname, such as mastodon.social. An id or account given as a URL names its own server instead. (default mastodon.social) |
| `tunnel` | string | no | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
| `proxy` | string | no | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
| `profileId` | string | no | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |

Response data fields: `content` (string), `createdAt` (string), `sensitive` (boolean), `spoilerText` (string)

```bash
curl "https://api.hoshime.com/v1/mastodon/statusHistory?id=117564721426513119" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/mastodon/pinnedStatuses

The posts an account pins to the top of its profile.

Scope: `social:read` · Units: 1 · Cached: 10 min · Paginated: cursor

| Parameter | Type | Required | Description |
|---|---|---|---|
| `account` | string | yes | acct (@user@server, user@server or user) or profile URL, such as https://mastodon.social/@Gargron. (e.g. Mastodon) |
| `instance` | string | no | Server hostname, such as mastodon.social. An id or account given as a URL names its own server instead. (default mastodon.social) |
| `tunnel` | string | no | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
| `proxy` | string | no | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
| `profileId` | string | no | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |

Response data fields: `author` (Author), `author.acct` (string), `author.displayName` (string), `author.id` (string), `author.url` (string), `content` (string), `createdAt` (string), `favouritesCount` (integer (int64)), `id` (string), `inReplyToId` (string), `language` (string), `media` (Media[]), `media[].description` (string), `media[].previewUrl` (string), `media[].type` (string), `media[].url` (string), `reblogOf` (string), `reblogsCount` (integer (int64)), `repliesCount` (integer (int64)), `sensitive` (boolean), `spoilerText` (string), `tags` (string[]), `url` (string)

```bash
curl "https://api.hoshime.com/v1/mastodon/pinnedStatuses?account=Mastodon" -H "Authorization: Bearer $HOSHIME_TOKEN"
```
