APIs / Social media / Mastodon

Mastodon API

Get Mastodon data as structured JSON with one API key: search, hashtag, profile and status. Free credits every month.

5endpoints
1credit per successful call
JSONevery response
Mastodon
GET/v1/mastodon/search?instance=mastodon.social&q=mastodon&type=accounts&resolve=0&limit=5
curl "https://api.perceptlayer.com/v1/mastodon/search?instance=mastodon.social&q=mastodon&type=accounts&resolve=0&limit=5" \
  -H "X-API-Key: $API_KEY"
cURL1 credit per successful call
Run this call from your dashboard to see a live response.

Mastodon · 5 endpoints

Endpoints

Every endpoint takes the same key. Open one for its parameters and an example request.

Note
Endpoints marked “Needs terms” return personal or social data. They work once you accept the restricted-endpoint terms in your dashboard.
EndpointWhat it returnsCost
GET/v1/mastodon/hashtagHashtag Needs terms1 credit
GET/v1/mastodon/profileProfile Needs terms1 credit
GET/v1/mastodon/searchSearch Needs terms1 credit
GET/v1/mastodon/statusStatus Needs terms1 credit
GET/v1/mastodon/statusesStatuses Needs terms1 credit

What you can get

The Mastodon API returns search, hashtag, profile and status as clean JSON. Each successful call costs one credit, and calls that fail are free.

Use cases

  • Monitor mentions of your brand
  • Find and vet creators
  • Track trends and engagement over time

Questions

How much does the Mastodon API cost?

Each successful call costs one credit. New accounts get free credits every month, and credit packs bring the price down as you scale.

What format are responses in?

Every endpoint returns JSON, with no HTML parsing on your side.

Do I need a separate key for Mastodon?

No. One key works for every API in the catalogue.

Try the Mastodon API with 1,000 free credits

No card and no password. We email you a sign-in link, and your key works on every API.

No credit card. 1,000 free credits a month.