# Mastodon API

> 3 public methods for Mastodon (mastodon.social), each 1 credit per completed run.

Unofficial. Not affiliated with or endorsed by Mastodon.

- Page: https://fous.com/methods/mastodon.social

## Methods

### [List hashtag posts](https://fous.com/methods/mastodon.social/list-hashtag-posts.md)

`mastodon.social/list_hashtag_posts`, read. Lists the latest public posts for a hashtag on a Mastodon server, newest first. Some servers require login for public timelines.

Returns: posts with author, text, time, boost, favourite and reply counts, image links and post link

### [Get profile](https://fous.com/methods/mastodon.social/get-profile.md)

`mastodon.social/get_profile`, read. Gets a public Mastodon profile by handle or profile link, with its bio, counts, dates and profile fields. Major servers are read directly. Other servers are looked up through mastodon.social, and their home-server account ID is not available.

Returns: handle, display name, bio, counts, dates, profile fields, avatar, profile URL

### [List recent posts](https://fous.com/methods/mastodon.social/list-recent-posts.md)

`mastodon.social/list_recent_posts`, read. Lists a Mastodon account's latest public posts, newest first. Replies and boosts are optional. Private and unlisted posts are left out.

Returns: text, content warning, date, counts, boost info, images, link, id
