APIs / Mastodon / Statuses

Mastodon: Statuses

Statuses from Mastodon as JSON. 1 credit per successful call.

GET /v1/mastodon/statusesNeeds terms

Note
This endpoint needs the restricted-endpoint terms, which you can accept in your dashboard.

Parameters

Send parameters in the query string.

ParameterTypeRequiredAllowed values
instancestringOptionalUp to 253 characters
idstringRequiredUp to 64 characters
limitintegerOptionalAny
max_idstringOptionalUp to 64 characters
min_idstringOptionalUp to 64 characters
since_idstringOptionalUp to 64 characters
exclude_repliesbooleanOptionalAny
exclude_reblogsbooleanOptionalAny
only_mediabooleanOptionalAny
pinnedbooleanOptionalAny
taggedstringOptionalUp to 255 characters

Example request

cURLshell
curl "https://api.perceptlayer.com/v1/mastodon/statuses?instance=mastodon.social&id=1&limit=5" \
  -H "X-API-Key: $API_KEY"

Run this endpoint in the playground with your own parameters. 1 credit per successful call; failed calls are free.

Response fields

Each item in data has these 21 fields, read from a recorded call. The recording leaves out fields that were empty, so a live call can return more.

FieldType
idstring
created_atstring
sensitiveboolean
spoiler_textstring
visibilitystring
uriurl
urlurl
replies_countinteger
reblogs_countinteger
favourites_countinteger
quotes_countinteger
contentstring
reblogobject
accountobject
quote_approvalobject
content_textstring
in_reply_to_idstring
in_reply_to_account_idstring
languagestring
applicationobject
mentionsobject[]