InstanceApi

interface InstanceApi

Informational endpoint to discover information about a Mastodon instance.

See also

Functions

Link copied to clipboard
abstract suspend fun getActivity(): List<Activity>

Gets the instance's activity over the last 3 months, binned weekly.

Link copied to clipboard
abstract suspend fun getInstanceInfo(): Instance

Gets information about the Mastodon instance.

Link copied to clipboard
abstract suspend fun getPeers(): List<String>

Gets the list of domains that this instance is aware of.