Mastodon API
Returns Mastodon accounts, their posts, single posts with conversation context, and follower and following lists.
View as Markdown| GET | /mastodon/account | A Mastodon account by its acct (user or user@server) or its profile URL. |
| GET | /mastodon/statuses | Posts and boosts of an account, newest first, 20 per page. |
| GET | /mastodon/status | One post or boost by its id or its URL. |
| GET | /mastodon/context | The conversation around a post: the posts it replies to, and the replies to it. |
| GET | /mastodon/followers | Accounts that follow one account, 20 per page, newest follow first. |
| GET | /mastodon/following | Accounts that one account follows, 20 per page, newest follow first. |
| GET | /mastodon/featuredTags | Hashtags one account features on its profile. |
| GET | /mastodon/trendingTags | Hashtags trending on a server, with their uses and accounts today. |
| GET | /mastodon/trendingStatuses | Posts trending on a server, most trending first. |
| GET | /mastodon/trendingLinks | News links that the server's users share most right now, with today's share counts. |
| GET | /mastodon/tag | One hashtag of a server with its daily use over the last week. |
| GET | /mastodon/tagTimeline | Public posts with a hashtag, newest first, 20 per page. |
| GET | /mastodon/directory | Accounts of a server that opted into the profile directory, 20 per page. |
| GET | /mastodon/searchAccounts | Accounts that match a search on a server, 20 per page; later pages need a server that serves them without sign-in. |
| GET | /mastodon/instance | A Mastodon server: its name, description, version, languages, registration and user, post and server counts. |
| GET | /mastodon/instanceActivity | Weekly posts, logins and new sign-ups of a Mastodon server, newest week first. |
| GET | /mastodon/favouritedBy | Accounts that liked (favourited) a post, 20 per page. |
| GET | /mastodon/rebloggedBy | Accounts that boosted (reblogged) a post, 20 per page. |
| GET | /mastodon/statusHistory | The edit history of a post: each earlier version with its text and time, oldest first. |
| GET | /mastodon/pinnedStatuses | The posts an account pins to the top of its profile. |
account
/v1/mastodon/accountA Mastodon account by its acct (user or user@server) or its profile URL.
Parameters
accountstring required | acct (@user@server, user@server or user) or profile URL, such as https://mastodon.social/@Gargron. e.g. Gargron |
instancestring | Server hostname, such as mastodon.social. An id or account given as a URL names its own server instead. default mastodon.social |
tunnelstring | 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. |
proxystring | 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. |
profileIdstring | 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
15 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 |
curl "https://api.hoshime.com/v1/mastodon/account?account=Gargron" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/mastodon/account?account=Gargron", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/mastodon/account?account=Gargron", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": { "acct": "Gargron", "avatar": "https://files.mastodon.social/accounts/avatars/000/000/001/original/6b2384b33799a0dd.png", "bot": false, "createdAt": "2016-03-16T00:00:00.000Z", "displayName": "Eugen Rochko", "followersCount": 381195, "followingCount": 769, "header": "https://files.mastodon.social/accounts/headers/000/000/001/original/d13e4417706a5fec.jpg", "id": "1", "lastStatusDate": "2026-11-06", "locked": false, "note": "<p>Executive Strategy & Product Advisor of <span class=\"h-card\" translate=\"no\"><a href=\"https://mastodon.social/@Mastodon\" class=\"u-url …", "statusesCount": 82762, "url": "https://mastodon.social/@Gargron", "username": "Gargron" }, "meta": { "cached": false, "endpoint": "account", "fetchedAt": "2026-11-06T09:41:00Z", "platform": "mastodon", "requestId": "req_2Xb9kQ…", "units": 1 } }
statuses
/v1/mastodon/statusesPosts and boosts of an account, newest first, 20 per page.
Parameters
accountstring required | acct (@user@server, user@server or user) or profile URL, such as https://mastodon.social/@Gargron. e.g. Gargron |
instancestring | Server hostname, such as mastodon.social. An id or account given as a URL names its own server instead. default mastodon.social |
cursorstring | meta.pagination.nextCursor of the previous page. Omit it for the first page. |
tunnelstring | 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. |
proxystring | 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. |
profileIdstring | 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
23 fields
author | Author |
acct | string |
displayName | string |
id | string |
url | string |
content | string |
createdAt | string |
favouritesCount | integer (int64) |
id | string |
inReplyToId | string |
language | string |
media | Media[] |
description | string |
previewUrl | string |
type | string |
url | string |
reblogOf | string |
reblogsCount | integer (int64) |
repliesCount | integer (int64) |
sensitive | boolean |
spoilerText | string |
tags | string[] |
url | string |
curl "https://api.hoshime.com/v1/mastodon/statuses?account=Gargron" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/mastodon/statuses?account=Gargron", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/mastodon/statuses?account=Gargron", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": [ { "author": { "acct": "Gargron", "displayName": "Eugen Rochko", "id": "1", "url": "https://mastodon.social/@Gargron" }, "content": "<p><span class=\"h-card\" translate=\"no\"><a href=\"https://mastodon.social/@terratempora\" class=\"u-url mention\">@<span>terratempora</span></a><…", "createdAt": "2026-11-06T15:07:34.242Z", "favouritesCount": 4, "id": "117570119548321229", "inReplyToId": "117569268498801353", "language": "en", "media": [], "reblogOf": "", "reblogsCount": 0, "repliesCount": 1, "sensitive": false, "spoilerText": "", "tags": [], "url": "https://mastodon.social/@Gargron/117570119548321229" }, { "author": { "acct": "Gargron", "displayName": "Eugen Rochko", "id": "1", "url": "https://mastodon.social/@Gargron" }, "content": "", "createdAt": "2026-11-06T13:58:04.042Z", "favouritesCount": 0, "id": "117569846249278793", "inReplyToId": "", "language": "", "media": [], "reblogOf": "117518861436006305", "reblogsCount": 0, "repliesCount": 0, "sensitive": false, "spoilerText": "", "tags": [], "url": "https://mastodon.social/users/Gargron/statuses/117569846249278793/activity" } ], "meta": { "cached": false, "endpoint": "statuses", "fetchedAt": "2026-11-06T09:41:00Z", "pagination": { "nextCursor": "EpcDEgV…", "hasMore": true, "total": null }, "platform": "mastodon", "requestId": "req_2Xb9kQ…", "units": 1 } }
status
/v1/mastodon/statusOne post or boost by its id or its URL.
Parameters
idstring required | Status id or post URL, such as https://mastodon.social/@Gargron/117564721426513119. e.g. 1 |
instancestring | Server hostname, such as mastodon.social. An id or account given as a URL names its own server instead. default mastodon.social |
tunnelstring | 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. |
proxystring | 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. |
profileIdstring | 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
23 fields
author | Author |
acct | string |
displayName | string |
id | string |
url | string |
content | string |
createdAt | string |
favouritesCount | integer (int64) |
id | string |
inReplyToId | string |
language | string |
media | Media[] |
description | string |
previewUrl | string |
type | string |
url | string |
reblogOf | string |
reblogsCount | integer (int64) |
repliesCount | integer (int64) |
sensitive | boolean |
spoilerText | string |
tags | string[] |
url | string |
curl "https://api.hoshime.com/v1/mastodon/status?id=1" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/mastodon/status?id=1", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/mastodon/status?id=1", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": { "author": { "acct": "Gargron", "displayName": "Eugen Rochko", "id": "1", "url": "https://mastodon.social/@Gargron" }, "content": "<p>Hello world</p>", "createdAt": "2016-03-16T14:44:31.580Z", "favouritesCount": 1148, "id": "1", "inReplyToId": "", "language": "en", "media": [], "reblogOf": "", "reblogsCount": 602, "repliesCount": 65, "sensitive": false, "spoilerText": "", "tags": [], "url": "https://mastodon.social/@Gargron/1" }, "meta": { "cached": false, "endpoint": "status", "fetchedAt": "2026-11-06T09:41:00Z", "platform": "mastodon", "requestId": "req_2Xb9kQ…", "units": 1 } }
context
/v1/mastodon/contextThe conversation around a post: the posts it replies to, and the replies to it.
Parameters
idstring required | Status id or post URL, such as https://mastodon.social/@Gargron/117564721426513119. e.g. 117564721426513119 |
instancestring | Server hostname, such as mastodon.social. An id or account given as a URL names its own server instead. default mastodon.social |
tunnelstring | 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. |
proxystring | 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. |
profileIdstring | 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
48 fields
ancestors | Status[] |
author | Author |
acct | string |
displayName | string |
id | string |
url | string |
content | string |
createdAt | string |
favouritesCount | integer (int64) |
id | string |
inReplyToId | string |
language | string |
media | Media[] |
description | string |
previewUrl | string |
type | string |
url | string |
reblogOf | string |
reblogsCount | integer (int64) |
repliesCount | integer (int64) |
sensitive | boolean |
spoilerText | string |
tags | string[] |
url | string |
descendants | Status[] |
author | Author |
acct | string |
displayName | string |
id | string |
url | string |
content | string |
createdAt | string |
favouritesCount | integer (int64) |
id | string |
inReplyToId | string |
language | string |
media | Media[] |
description | string |
previewUrl | string |
type | string |
url | string |
reblogOf | string |
reblogsCount | integer (int64) |
repliesCount | integer (int64) |
sensitive | boolean |
spoilerText | string |
tags | string[] |
url | string |
curl "https://api.hoshime.com/v1/mastodon/context?id=117564721426513119" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/mastodon/context?id=117564721426513119", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/mastodon/context?id=117564721426513119", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": { "ancestors": [ { "author": { "acct": "Gargron", "displayName": "Eugen Rochko", "id": "1", "url": "https://mastodon.social/@Gargron" }, "content": "<p>View on Ambleside.</p><p>📷️️️️ Pentax KX<br />🎞️ Kodak Portra 400<br />🔭 Pentax M 50mm/1.7<br />⚗️ Come Through Lab</p><p><a href=\"https:…", "createdAt": "2026-11-05T14:01:27.749Z", "favouritesCount": 155, "id": "117564197289781943", "inReplyToId": "", "language": "en", "media": [ { "description": "A winding dirt path leading down a mountain. In the distance, a town by a lake, made up of grey stone buildings.", "previewUrl": "https://files.mastodon.social/media_attachments/files/117/564/189/733/181/228/small/2984536066fd6042.jpg", "type": "image", "url": "https://files.mastodon.social/media_attachments/files/117/564/189/733/181/228/original/2984536066fd6042.jpg" } ], "reblogOf": "", "reblogsCount": 32, "repliesCount": 3, "sensitive": false, "spoilerText": "", "tags": [ "believeinfilm", "filmphotography" ], "url": "https://mastodon.social/@Gargron/117564197289781943" }, { "author": { "acct": "sheislaurence", "displayName": "", "id": "111257823531630526", "url": "https://mastodon.social/@sheislaurence" }, "content": "<p><span class=\"h-card\" translate=\"no\"><a href=\"https://mastodon.social/@Gargron\" class=\"u-url mention\">@<span>Gargron</span></a></span> whi…", "createdAt": "2026-11-05T14:55:55.071Z", "favouritesCount": 0, "id": "117564411417155154", "inReplyToId": "117564197289781943", "language": "en", "media": [], "reblogOf": "", "reblogsCount": 1, "repliesCount": 2, "sensitive": false, "spoilerText": "", "tags": [], "url": "https://mastodon.social/@sheislaurence/117564411417155154" } ], "descendants": [] }, "meta": { "cached": false, "endpoint": "context", "fetchedAt": "2026-11-06T09:41:00Z", "platform": "mastodon", "requestId": "req_2Xb9kQ…", "units": 1 } }
followers
/v1/mastodon/followersAccounts that follow one account, 20 per page, newest follow first.
Parameters
accountstring required | acct (@user@server, user@server or user) or profile URL, such as https://mastodon.social/@Gargron. e.g. Gargron |
instancestring | Server hostname, such as mastodon.social. An id or account given as a URL names its own server instead. default mastodon.social |
cursorstring | meta.pagination.nextCursor of the previous page. Omit it for the first page. |
tunnelstring | 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. |
proxystring | 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. |
profileIdstring | 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
15 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 |
curl "https://api.hoshime.com/v1/mastodon/followers?account=Gargron" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/mastodon/followers?account=Gargron", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/mastodon/followers?account=Gargron", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": [ { "acct": "channahjane0", "avatar": "https://mastodon.social/avatars/original/missing.png", "bot": false, "createdAt": "2026-11-06T00:00:00.000Z", "displayName": "CHANNAH JANE", "followersCount": 0, "followingCount": 42, "header": "https://mastodon.social/headers/original/missing.png", "id": "117570621062684383", "lastStatusDate": "", "locked": false, "note": "<p>Into Good Energy ❤️🩹<br />Singing, Dancing & MC/Presenter <br />Pilates Instructor ✨✨<br />Let's Get The Vibez Started</p>", "statusesCount": 0, "url": "https://mastodon.social/@channahjane0", "username": "channahjane0" }, { "acct": "evelinstone", "avatar": "https://files.mastodon.social/accounts/avatars/117/570/548/954/855/954/original/d7b6c4aee1d77587.jpg", "bot": false, "createdAt": "2026-11-06T00:00:00.000Z", "displayName": "Evelin", "followersCount": 0, "followingCount": 51, "header": "https://mastodon.social/headers/original/missing.png", "id": "117570548954855954", "lastStatusDate": "", "locked": false, "note": "<p>Still here</p>", "statusesCount": 0, "url": "https://mastodon.social/@evelinstone", "username": "evelinstone" } ], "meta": { "cached": false, "endpoint": "followers", "fetchedAt": "2026-11-06T09:41:00Z", "pagination": { "nextCursor": "EpcDEgV…", "hasMore": true, "total": null }, "platform": "mastodon", "requestId": "req_2Xb9kQ…", "units": 1 } }
following
/v1/mastodon/followingAccounts that one account follows, 20 per page, newest follow first.
Parameters
accountstring required | acct (@user@server, user@server or user) or profile URL, such as https://mastodon.social/@Gargron. e.g. Gargron |
instancestring | Server hostname, such as mastodon.social. An id or account given as a URL names its own server instead. default mastodon.social |
cursorstring | meta.pagination.nextCursor of the previous page. Omit it for the first page. |
tunnelstring | 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. |
proxystring | 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. |
profileIdstring | 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
15 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 |
curl "https://api.hoshime.com/v1/mastodon/following?account=Gargron" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/mastodon/following?account=Gargron", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/mastodon/following?account=Gargron", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": [ { "acct": "operationpuppet@gamerstavern.online", "avatar": "https://files.mastodon.social/cache/accounts/avatars/116/168/336/318/851/144/original/26e28eb0e08cf620.png", "bot": false, "createdAt": "2026-03-03T00:00:00.000Z", "displayName": "Operation: Puppet 🇨🇦🏳️🌈", "followersCount": 2274, "followingCount": 211, "header": "https://files.mastodon.social/cache/accounts/headers/116/168/336/318/851/144/original/30838f226f696074.png", "id": "116168336318851144", "lastStatusDate": "2026-11-05", "locked": false, "note": "<p>He/him. Your goth gampa who makes puppets, podcasts and plays games.</p>", "statusesCount": 718, "url": "https://gamerstavern.online/@operationpuppet", "username": "operationpuppet" }, { "acct": "emilyomier", "avatar": "https://files.mastodon.social/accounts/avatars/117/033/626/531/329/976/original/6ed1f0ecd0e80c94.jpg", "bot": false, "createdAt": "2026-08-03T00:00:00.000Z", "displayName": "Emily Omier", "followersCount": 68, "followingCount": 19, "header": "https://files.mastodon.social/accounts/headers/117/033/626/531/329/976/original/43f07e8173b2924f.png", "id": "117033626531329976", "lastStatusDate": "2026-11-05", "locked": false, "note": "<p>Interim commercial director <span class=\"h-card\" translate=\"no\"><a href=\"https://mastodon.social/@Mastodon\" class=\"u-url mention\">@<span>…", "statusesCount": 9, "url": "https://mastodon.social/@emilyomier", "username": "emilyomier" } ], "meta": { "cached": false, "endpoint": "following", "fetchedAt": "2026-11-06T09:41:00Z", "pagination": { "nextCursor": "EpcDEgV…", "hasMore": true, "total": null }, "platform": "mastodon", "requestId": "req_2Xb9kQ…", "units": 1 } }
featuredTags
/v1/mastodon/featuredTagsHashtags one account features on its profile.
Parameters
accountstring required | acct (@user@server, user@server or user) or profile URL, such as https://mastodon.social/@Gargron. e.g. Gargron |
instancestring | Server hostname, such as mastodon.social. An id or account given as a URL names its own server instead. default mastodon.social |
tunnelstring | 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. |
proxystring | 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. |
profileIdstring | 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
5 fields
id | string |
lastStatusDate | string |
name | string |
statusCount | integer (int64) |
url | string |
curl "https://api.hoshime.com/v1/mastodon/featuredTags?account=Gargron" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/mastodon/featuredTags?account=Gargron", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/mastodon/featuredTags?account=Gargron", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": [ { "id": "631443", "lastStatusDate": "2026-10-16", "name": "nowplaying", "statusCount": 68, "url": "https://mastodon.social/@Gargron/tagged/nowplaying" }, { "id": "834528", "lastStatusDate": "2026-09-29", "name": "catsofmastodon", "statusCount": 62, "url": "https://mastodon.social/@Gargron/tagged/catsofmastodon" } ], "meta": { "cached": false, "endpoint": "featuredTags", "fetchedAt": "2026-11-06T09:41:00Z", "pagination": { "nextCursor": "EpcDEgV…", "hasMore": true, "total": null }, "platform": "mastodon", "requestId": "req_2Xb9kQ…", "units": 1 } }
trendingTags
/v1/mastodon/trendingTagsHashtags trending on a server, with their uses and accounts today.
Parameters
instancestring | Server hostname, such as mastodon.social. An id or account given as a URL names its own server instead. default mastodon.social |
limitinteger | Hashtags to return, 1 to 20. default 10 |
tunnelstring | 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. |
proxystring | 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. |
profileIdstring | 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
4 fields
accounts | integer (int64) |
name | string |
url | string |
uses | integer (int64) |
curl "https://api.hoshime.com/v1/mastodon/trendingTags" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/mastodon/trendingTags", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/mastodon/trendingTags", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": [ { "accounts": 93, "name": "WindowFriday", "url": "https://mastodon.social/tags/windowfriday", "uses": 117 }, { "accounts": 189, "name": "FensterFreitag", "url": "https://mastodon.social/tags/fensterfreitag", "uses": 235 } ], "meta": { "cached": false, "endpoint": "trendingTags", "fetchedAt": "2026-11-06T09:41:00Z", "pagination": { "nextCursor": "EpcDEgV…", "hasMore": true, "total": null }, "platform": "mastodon", "requestId": "req_2Xb9kQ…", "units": 1 } }
trendingStatuses
/v1/mastodon/trendingStatusesPosts trending on a server, most trending first.
Parameters
instancestring | Server hostname, such as mastodon.social. An id or account given as a URL names its own server instead. default mastodon.social |
limitinteger | Posts per page, 1 to 20. default 10 |
cursorstring | meta.pagination.nextCursor of the previous page. Omit it for the first page. |
tunnelstring | 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. |
proxystring | 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. |
profileIdstring | 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
23 fields
author | Author |
acct | string |
displayName | string |
id | string |
url | string |
content | string |
createdAt | string |
favouritesCount | integer (int64) |
id | string |
inReplyToId | string |
language | string |
media | Media[] |
description | string |
previewUrl | string |
type | string |
url | string |
reblogOf | string |
reblogsCount | integer (int64) |
repliesCount | integer (int64) |
sensitive | boolean |
spoilerText | string |
tags | string[] |
url | string |
curl "https://api.hoshime.com/v1/mastodon/trendingStatuses" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/mastodon/trendingStatuses", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/mastodon/trendingStatuses", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": [ { "author": { "acct": "WarnerCrocker", "displayName": "Warner Crocker", "id": "108243340664949652", "url": "https://mastodon.social/@WarnerCrocker" }, "content": "<p>Killer subhead. (the headline ain’t bad either)</p><p>“The decision to halt production of Tesla’s polarizing polygonal pickup marks the e…", "createdAt": "2026-11-06T15:16:51.516Z", "favouritesCount": 273, "id": "117570156068869545", "inReplyToId": "", "language": "en", "media": [ { "description": "A newspaper article with a large headline, \"RIP Cybertruck. You Were Unloved, Wanted, and Utterly Absurd,\" and a smaller sub-headline. The a…", "previewUrl": "https://files.mastodon.social/media_attachments/files/117/570/156/000/148/362/small/88241a701889aeb6.jpg", "type": "image", "url": "https://files.mastodon.social/media_attachments/files/117/570/156/000/148/362/original/88241a701889aeb6.jpg" } ], "reblogOf": "", "reblogsCount": 186, "repliesCount": 21, "sensitive": false, "spoilerText": "", "tags": [ "tesla" ], "url": "https://mastodon.social/@WarnerCrocker/117570156068869545" }, { "author": { "acct": "davidrevoy@framapiaf.org", "displayName": "David Revoy", "id": "70565", "url": "https://framapiaf.org/@davidrevoy" }, "content": "<p>🫧</p>", "createdAt": "2026-11-06T14:03:36.000Z", "favouritesCount": 855, "id": "117569868047061602", "inReplyToId": "", "language": "en", "media": [ { "description": "This is a digital painting of Cepper, a gothic sorceress, relaxing on her red velvet sofa, smiling with schadenfreude. She looks at the bubb…", "previewUrl": "https://files.mastodon.social/cache/media_attachments/files/117/569/869/152/877/422/small/eeb0a1d726623433.jpg", "type": "image", "url": "https://files.mastodon.social/cache/media_attachments/files/117/569/869/152/877/422/original/eeb0a1d726623433.jpg" } ], "reblogOf": "", "reblogsCount": 392, "repliesCount": 48, "sensitive": false, "spoilerText": "", "tags": [], "url": "https://framapiaf.org/@davidrevoy/117569868063962924" } ], "meta": { "cached": false, "endpoint": "trendingStatuses", "fetchedAt": "2026-11-06T09:41:00Z", "pagination": { "nextCursor": "EpcDEgV…", "hasMore": true, "total": null }, "platform": "mastodon", "requestId": "req_2Xb9kQ…", "units": 1 } }
trendingLinks
/v1/mastodon/trendingLinksNews links that the server's users share most right now, with today's share counts.
Parameters
limitinteger | Items per page, 1 to 20. default 10 |
instancestring | Server hostname, such as mastodon.social. An id or account given as a URL names its own server instead. default mastodon.social |
tunnelstring | 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. |
proxystring | 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. |
profileIdstring | 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
9 fields
accounts | integer (int64) |
author | string |
description | string |
language | string |
provider | string |
publishedAt | string |
title | string |
url | string |
uses | integer (int64) |
curl "https://api.hoshime.com/v1/mastodon/trendingLinks" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/mastodon/trendingLinks", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/mastodon/trendingLinks", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": [ { "accounts": 171, "author": "", "description": "Rolling coverage of the latest economic and financial news, as Asia-Pacific markets slide after Wall Street rout", "language": "en", "provider": "the Guardian", "publishedAt": "2026-11-06T09:49:56.000Z", "title": "Global stocks tumble as AI panic grips markets after Democrats’ midterm success – business live", "url": "https://www.theguardian.com/business/live/2026/nov/06/global-stocks-tumble-ai-panic-markets-democrats-midterms-success-jobs-oil-dollar-lates…", "uses": 176 }, { "accounts": 167, "author": "", "description": "Interior Secretary Doug Burgum, who is heavily invested in the AI industry, is leading the charge to allow tech companies to build data cent…", "language": "en", "provider": "ProPublica", "publishedAt": "2026-11-06T11:00:00.000Z", "title": "Trump Official Who Wants Data Centers on Public Lands Has Tens of Millions Invested in AI Industry", "url": "https://www.propublica.org/article/burgum-public-land-data-centers-investments", "uses": 170 } ], "meta": { "cached": false, "endpoint": "trendingLinks", "fetchedAt": "2026-11-06T09:41:00Z", "pagination": { "nextCursor": "EpcDEgV…", "hasMore": true, "total": null }, "platform": "mastodon", "requestId": "req_2Xb9kQ…", "units": 1 } }
tag
/v1/mastodon/tagOne hashtag of a server with its daily use over the last week.
Parameters
tagstring required | Hashtag with or without #, or a tag URL such as https://mastodon.social/tags/mastodon. e.g. mastodon |
instancestring | Server hostname, such as mastodon.social. An id or account given as a URL names its own server instead. default mastodon.social |
tunnelstring | 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. |
proxystring | 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. |
profileIdstring | 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
6 fields
history | TagUsageDay[] |
accounts | integer (int64) |
day | string |
uses | integer (int64) |
name | string |
url | string |
curl "https://api.hoshime.com/v1/mastodon/tag?tag=mastodon" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/mastodon/tag?tag=mastodon", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/mastodon/tag?tag=mastodon", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": { "history": [ { "accounts": 83, "day": "2026-11-06", "uses": 109 }, { "accounts": 118, "day": "2026-11-05", "uses": 161 } ], "name": "mastodon", "url": "https://mastodon.social/tags/mastodon" }, "meta": { "cached": false, "endpoint": "tag", "fetchedAt": "2026-11-06T09:41:00Z", "platform": "mastodon", "requestId": "req_2Xb9kQ…", "units": 1 } }
tagTimeline
/v1/mastodon/tagTimelinePublic posts with a hashtag, newest first, 20 per page.
Parameters
tagstring required | Hashtag with or without #, or a tag URL such as https://mastodon.social/tags/mastodon. e.g. mastodon |
instancestring | Server hostname, such as mastodon.social. An id or account given as a URL names its own server instead. default mastodon.social |
cursorstring | meta.pagination.nextCursor of the previous page. Omit it for the first page. |
tunnelstring | 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. |
proxystring | 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. |
profileIdstring | 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
23 fields
author | Author |
acct | string |
displayName | string |
id | string |
url | string |
content | string |
createdAt | string |
favouritesCount | integer (int64) |
id | string |
inReplyToId | string |
language | string |
media | Media[] |
description | string |
previewUrl | string |
type | string |
url | string |
reblogOf | string |
reblogsCount | integer (int64) |
repliesCount | integer (int64) |
sensitive | boolean |
spoilerText | string |
tags | string[] |
url | string |
curl "https://api.hoshime.com/v1/mastodon/tagTimeline?tag=mastodon" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/mastodon/tagTimeline?tag=mastodon", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/mastodon/tagTimeline?tag=mastodon", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": [ { "author": { "acct": "lobocode@hachyderm.io", "displayName": "lobo :emacs:", "id": "110492360370454910", "url": "https://hachyderm.io/@lobocode" }, "content": "<p>Tava comentando com meu amigo <span class=\"h-card\" translate=\"no\"><a href=\"https://app.wafrn.net/fediverse/blog/noahebalon\" class=\"u-url …", "createdAt": "2026-11-06T17:53:54.000Z", "favouritesCount": 0, "id": "117570773719018537", "inReplyToId": "", "language": "pt", "media": [], "reblogOf": "", "reblogsCount": 0, "repliesCount": 0, "sensitive": false, "spoilerText": "", "tags": [ "mastodon" ], "url": "https://hachyderm.io/@lobocode/117570773646204559" }, { "author": { "acct": "OutOfSpace@berlin.social", "displayName": "OutOfSpace - 不割席", "id": "114211486390026737", "url": "https://berlin.social/@OutOfSpace" }, "content": "<p>COMBINING & NEGATING</p><p>You can stack operators, and the minus sign (-) works on any operator.</p><p>Exclude replies: from:me has:…", "createdAt": "2026-11-06T17:51:43.000Z", "favouritesCount": 0, "id": "117570765098031050", "inReplyToId": "", "language": "en", "media": [], "reblogOf": "", "reblogsCount": 0, "repliesCount": 0, "sensitive": false, "spoilerText": "", "tags": [ "mastodon", "mastodontips" ], "url": "https://berlin.social/@OutOfSpace/117570765003838207" } ], "meta": { "cached": false, "endpoint": "tagTimeline", "fetchedAt": "2026-11-06T09:41:00Z", "pagination": { "nextCursor": "EpcDEgV…", "hasMore": true, "total": null }, "platform": "mastodon", "requestId": "req_2Xb9kQ…", "units": 1 } }
directory
/v1/mastodon/directoryAccounts of a server that opted into the profile directory, 20 per page.
Parameters
orderstring | active for the most recently active accounts, new for the newest.activenewdefault active |
localboolean | true for accounts of this server only, false to include accounts it knows of. default true |
instancestring | Server hostname, such as mastodon.social. An id or account given as a URL names its own server instead. default mastodon.social |
cursorstring | meta.pagination.nextCursor of the previous page. Omit it for the first page. |
tunnelstring | 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. |
proxystring | 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. |
profileIdstring | 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
15 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 |
curl "https://api.hoshime.com/v1/mastodon/directory" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/mastodon/directory", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/mastodon/directory", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": [ { "acct": "panafrocore", "avatar": "https://files.mastodon.social/accounts/avatars/111/997/800/518/983/139/original/16367a357c66c77d.jpg", "bot": true, "createdAt": "2024-02-26T00:00:00.000Z", "displayName": "ScionOfCulture", "followersCount": 4, "followingCount": 1, "header": "https://files.mastodon.social/accounts/headers/111/997/800/518/983/139/original/952b3309586716e3.jpeg", "id": "111997800518983139", "lastStatusDate": "2026-11-06", "locked": false, "note": "<p>Dive into the depths of African culture, uncovering stories that span across centuries and continents. This space is dedicated to sheddin…", "statusesCount": 1531, "url": "https://mastodon.social/@panafrocore", "username": "panafrocore" }, { "acct": "narfnra", "avatar": "https://files.mastodon.social/accounts/avatars/109/881/224/086/031/176/original/6a53c17c4f041bfe.png", "bot": false, "createdAt": "2023-02-17T00:00:00.000Z", "displayName": "It's Fran. (No Narf November.)", "followersCount": 83, "followingCount": 51, "header": "https://files.mastodon.social/accounts/headers/109/881/224/086/031/176/original/f047317387046a4f.png", "id": "109881224086031176", "lastStatusDate": "2026-11-06", "locked": true, "note": "<p>I'm Fran, the evolution of Fran.</p><p>Pronouns: narf/it/they</p><p>Age: 3X</p><p>Play Battle Narf -> <a href=\"https://narfnra.itc…", "statusesCount": 78410, "url": "https://mastodon.social/@narfnra", "username": "narfnra" } ], "meta": { "cached": false, "endpoint": "directory", "fetchedAt": "2026-11-06T09:41:00Z", "pagination": { "nextCursor": "EpcDEgV…", "hasMore": true, "total": null }, "platform": "mastodon", "requestId": "req_2Xb9kQ…", "units": 1 } }
searchAccounts
/v1/mastodon/searchAccountsAccounts that match a search on a server, 20 per page; later pages need a server that serves them without sign-in.
Parameters
querystring required | Name, handle or words to search for. e.g. gargron |
instancestring | Server hostname, such as mastodon.social. An id or account given as a URL names its own server instead. default mastodon.social |
cursorstring | meta.pagination.nextCursor of the previous page. Omit it for the first page. |
tunnelstring | 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. |
proxystring | 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. |
profileIdstring | 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
15 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 |
curl "https://api.hoshime.com/v1/mastodon/searchAccounts?query=gargron" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/mastodon/searchAccounts?query=gargron", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/mastodon/searchAccounts?query=gargron", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": [ { "acct": "Gargron", "avatar": "https://files.mastodon.social/accounts/avatars/000/000/001/original/6b2384b33799a0dd.png", "bot": false, "createdAt": "2016-03-16T00:00:00.000Z", "displayName": "Eugen Rochko", "followersCount": 381195, "followingCount": 769, "header": "https://files.mastodon.social/accounts/headers/000/000/001/original/d13e4417706a5fec.jpg", "id": "1", "lastStatusDate": "2026-11-06", "locked": false, "note": "<p>Executive Strategy & Product Advisor of <span class=\"h-card\" translate=\"no\"><a href=\"https://mastodon.social/@Mastodon\" class=\"u-url …", "statusesCount": 82762, "url": "https://mastodon.social/@Gargron", "username": "Gargron" }, { "acct": "expensive@shitpost.trade", "avatar": "https://files.mastodon.social/cache/accounts/avatars/115/019/637/580/976/616/original/99af63e9dc86a6ec.jpg", "bot": false, "createdAt": "2025-08-13T00:00:00.000Z", "displayName": "Expensive Shitpost LLC", "followersCount": 54, "followingCount": 10, "header": "https://files.mastodon.social/cache/accounts/headers/115/019/637/580/976/616/original/dc04adb8574213c7.jpeg", "id": "115019637580976616", "lastStatusDate": "2026-04-13", "locked": false, "note": "<p>expensive shitposts for expensive creatures</p><p>buy shitposts expensive here</p><p>managed by <span class=\"h-card\" translate=\"no\"><a hr…", "statusesCount": 278, "url": "https://shitpost.trade/@expensive", "username": "expensive" } ], "meta": { "cached": false, "endpoint": "searchAccounts", "fetchedAt": "2026-11-06T09:41:00Z", "pagination": { "nextCursor": "EpcDEgV…", "hasMore": true, "total": null }, "platform": "mastodon", "requestId": "req_2Xb9kQ…", "units": 1 } }
instance
/v1/mastodon/instanceA Mastodon server: its name, description, version, languages, registration and user, post and server counts.
Parameters
instancestring | Server hostname, such as mastodon.social. An id or account given as a URL names its own server instead. default mastodon.sociale.g. mastodon.social |
tunnelstring | 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. |
proxystring | 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. |
profileIdstring | 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
10 fields
description | string |
domain | string |
domainCount | integer (int64) |
languages | string[] |
registrations | boolean |
shortDescription | string |
statusCount | integer (int64) |
title | string |
userCount | integer (int64) |
version | string |
curl "https://api.hoshime.com/v1/mastodon/instance?instance=mastodon.social" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/mastodon/instance?instance=mastodon.social", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/mastodon/instance?instance=mastodon.social", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": { "description": "…", "domain": "…", "domainCount": 1280, "languages": [ "…" ], "registrations": false, "shortDescription": "…", "statusCount": 1280, "title": "…", "userCount": 1280, "version": "…" }, "meta": { "cached": false, "endpoint": "instance", "fetchedAt": "2026-11-06T09:41:00Z", "platform": "mastodon", "requestId": "req_2Xb9kQ…", "units": 1 } }
instanceActivity
/v1/mastodon/instanceActivityWeekly posts, logins and new sign-ups of a Mastodon server, newest week first.
Parameters
instancestring | Server hostname, such as mastodon.social. An id or account given as a URL names its own server instead. default mastodon.sociale.g. mastodon.social |
tunnelstring | 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. |
proxystring | 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. |
profileIdstring | 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
4 fields
logins | integer (int64) |
registrations | integer (int64) |
statuses | integer (int64) |
week | string |
curl "https://api.hoshime.com/v1/mastodon/instanceActivity?instance=mastodon.social" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/mastodon/instanceActivity?instance=mastodon.social", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/mastodon/instanceActivity?instance=mastodon.social", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": [ { "logins": 0, "registrations": 0, "statuses": 0, "week": "…" } ], "meta": { "cached": false, "endpoint": "instanceActivity", "fetchedAt": "2026-11-06T09:41:00Z", "pagination": { "nextCursor": "EpcDEgV…", "hasMore": true, "total": null }, "platform": "mastodon", "requestId": "req_2Xb9kQ…", "units": 1 } }
favouritedBy
/v1/mastodon/favouritedByAccounts that liked (favourited) a post, 20 per page.
Parameters
idstring required | Status id or post URL, such as https://mastodon.social/@Gargron/117564721426513119. e.g. 117564721426513119 |
instancestring | Server hostname, such as mastodon.social. An id or account given as a URL names its own server instead. default mastodon.social |
cursorstring | meta.pagination.nextCursor of the previous page. Omit it for the first page. |
tunnelstring | 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. |
proxystring | 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. |
profileIdstring | 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
15 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 |
curl "https://api.hoshime.com/v1/mastodon/favouritedBy?id=117564721426513119" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/mastodon/favouritedBy?id=117564721426513119", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/mastodon/favouritedBy?id=117564721426513119", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": [ { "acct": "…", "avatar": "…", "bot": false, "createdAt": "2026-11-06T09:41:00Z", "displayName": "…", "followersCount": 1280, "followingCount": 1280, "header": "…", "id": "abc123", "lastStatusDate": "…", "locked": false, "note": "…", "statusesCount": 1280, "url": "https://…", "username": "…" } ], "meta": { "cached": false, "endpoint": "favouritedBy", "fetchedAt": "2026-11-06T09:41:00Z", "pagination": { "nextCursor": "EpcDEgV…", "hasMore": true, "total": null }, "platform": "mastodon", "requestId": "req_2Xb9kQ…", "units": 1 } }
rebloggedBy
/v1/mastodon/rebloggedByAccounts that boosted (reblogged) a post, 20 per page.
Parameters
idstring required | Status id or post URL, such as https://mastodon.social/@Gargron/117564721426513119. e.g. 117564721426513119 |
instancestring | Server hostname, such as mastodon.social. An id or account given as a URL names its own server instead. default mastodon.social |
cursorstring | meta.pagination.nextCursor of the previous page. Omit it for the first page. |
tunnelstring | 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. |
proxystring | 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. |
profileIdstring | 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
15 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 |
curl "https://api.hoshime.com/v1/mastodon/rebloggedBy?id=117564721426513119" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/mastodon/rebloggedBy?id=117564721426513119", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/mastodon/rebloggedBy?id=117564721426513119", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": [ { "acct": "…", "avatar": "…", "bot": false, "createdAt": "2026-11-06T09:41:00Z", "displayName": "…", "followersCount": 1280, "followingCount": 1280, "header": "…", "id": "abc123", "lastStatusDate": "…", "locked": false, "note": "…", "statusesCount": 1280, "url": "https://…", "username": "…" } ], "meta": { "cached": false, "endpoint": "rebloggedBy", "fetchedAt": "2026-11-06T09:41:00Z", "pagination": { "nextCursor": "EpcDEgV…", "hasMore": true, "total": null }, "platform": "mastodon", "requestId": "req_2Xb9kQ…", "units": 1 } }
statusHistory
/v1/mastodon/statusHistoryThe edit history of a post: each earlier version with its text and time, oldest first.
Parameters
idstring required | Status id or post URL, such as https://mastodon.social/@Gargron/117564721426513119. e.g. 117564721426513119 |
instancestring | Server hostname, such as mastodon.social. An id or account given as a URL names its own server instead. default mastodon.social |
tunnelstring | 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. |
proxystring | 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. |
profileIdstring | 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
4 fields
content | string |
createdAt | string |
sensitive | boolean |
spoilerText | string |
curl "https://api.hoshime.com/v1/mastodon/statusHistory?id=117564721426513119" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/mastodon/statusHistory?id=117564721426513119", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/mastodon/statusHistory?id=117564721426513119", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": [ { "content": "…", "createdAt": "2026-11-06T09:41:00Z", "sensitive": false, "spoilerText": "…" } ], "meta": { "cached": false, "endpoint": "statusHistory", "fetchedAt": "2026-11-06T09:41:00Z", "pagination": { "nextCursor": "EpcDEgV…", "hasMore": true, "total": null }, "platform": "mastodon", "requestId": "req_2Xb9kQ…", "units": 1 } }
pinnedStatuses
/v1/mastodon/pinnedStatusesThe posts an account pins to the top of its profile.
Parameters
accountstring required | acct (@user@server, user@server or user) or profile URL, such as https://mastodon.social/@Gargron. e.g. Mastodon |
instancestring | Server hostname, such as mastodon.social. An id or account given as a URL names its own server instead. default mastodon.social |
tunnelstring | 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. |
proxystring | 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. |
profileIdstring | 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
23 fields
author | Author |
acct | string |
displayName | string |
id | string |
url | string |
content | string |
createdAt | string |
favouritesCount | integer (int64) |
id | string |
inReplyToId | string |
language | string |
media | Media[] |
description | string |
previewUrl | string |
type | string |
url | string |
reblogOf | string |
reblogsCount | integer (int64) |
repliesCount | integer (int64) |
sensitive | boolean |
spoilerText | string |
tags | string[] |
url | string |
curl "https://api.hoshime.com/v1/mastodon/pinnedStatuses?account=Mastodon" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/mastodon/pinnedStatuses?account=Mastodon", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/mastodon/pinnedStatuses?account=Mastodon", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": [ { "author": { "acct": "…", "displayName": "…", "id": "abc123", "url": "https://…" }, "content": "…", "createdAt": "2026-11-06T09:41:00Z", "favouritesCount": 1280, "id": "abc123", "inReplyToId": "abc123", "language": "…", "media": [ { "description": null, "previewUrl": null, "type": null, "url": null } ], "reblogOf": "…", "reblogsCount": 1280, "repliesCount": 1280, "sensitive": false, "spoilerText": "…", "tags": [ "…" ], "url": "https://…" } ], "meta": { "cached": false, "endpoint": "pinnedStatuses", "fetchedAt": "2026-11-06T09:41:00Z", "pagination": { "nextCursor": "EpcDEgV…", "hasMore": true, "total": null }, "platform": "mastodon", "requestId": "req_2Xb9kQ…", "units": 1 } }