Scraper API
Mastodonmastodon.threadAvailable
Mastodon post and its replies
The post, then the replies under it, each with text, author, time, counts and the post it answers.
Give it a Mastodon post's address, and optionally how many replies.
1 unit a record, for runs that return data. Runs that fail cost nothing. How units work
- Counted
- 1 unit a record
- Inputs
- 2, 1 required
- Record
- 30 fields
- A run takes
- up to 5 minutes
- Records kept
- 7 days
- Measured
- its success, on the status page
POST/v1/scrapers/mastodon.thread/runs
sent, and answered
a record of the run30 fields
ok1 unit a record
A record this scraper returned for this input. The first 9 of its 30 fields are set down here; the whole record is below.

What it is used for
- Read the replies to a post
- A Mastodon post and the replies under it, each with its text, time and counts, in the order of the conversation.
- Gauge a reaction
- Read the replies to an announcement and sort them by
favourite_countto see which responses others agreed with. - Rebuild the conversation
- Each reply names the post it answers in
reply_to_id, so the tree of replies can be drawn again.
What you send
A Mastodon post's address, and optionally how many replies. These are its 2 inputs, as its schema has them.
urlstring Required- The post's address, e.g. https://mastodon.social/@Mastodon/117466983307949301.
max_repliesinteger Optional- How many replies to return after the post: 1 to 200.Default
50
A request, ready to send
It starts a run with the input shown at the top of this page, waits up to 60 seconds for it, and reads its records. Put your key in the variable it reads.
# Start a run and wait up to 60 seconds for it to finish
curl -X POST "https://api.enrichednow.com/v1/scrapers/mastodon.thread/runs?wait=60" \
-H "Authorization: Bearer $ENRICHEDNOW_API_KEY" \
-H "Content-Type: application/json" \
-d '{"input":{"url":"https://mastodon.social/@Mastodon/117466983307949301","max_replies":2}}'
# Read its records, with the id the first call answered
curl "https://api.enrichednow.com/v1/runs/$RUN_ID/records?limit=100" \
-H "Authorization: Bearer $ENRICHEDNOW_API_KEY"from enrichednow import EnrichedNow
client = EnrichedNow() # reads ENRICHEDNOW_API_KEY
# Start a run, wait for it to end, and get its records
result = client.scrape("mastodon.thread", {
"url": "https://mastodon.social/@Mastodon/117466983307949301",
"max_replies": 2,
})
print(result.run.id, result.run.status, result.run.record_count)
# Read its records: pages are fetched as you go
for record in result.records:
print(record)Install it with pip install enrichednow, then save as run.py and run python3 run.py
import EnrichedNow from "enrichednow";
const client = new EnrichedNow(); // reads ENRICHEDNOW_API_KEY
// Start a run, wait for it to end, and get its records
const { run, records } = await client.scrape("mastodon.thread", {
url: "https://mastodon.social/@Mastodon/117466983307949301",
max_replies: 2,
});
console.log(run.id, run.status, run.record_count);
// Read its records: pages are fetched as you go
for await (const record of records) console.log(record);Install it with npm install enrichednow, then save as run.mjs and run node run.mjs
package main
import (
"context"
"fmt"
"log"
"time"
enrichednow "github.com/enrichednow/enrichednow-go"
)
func main() {
client, err := enrichednow.NewClient() // reads ENRICHEDNOW_API_KEY
if err != nil {
log.Fatal(err)
}
ctx, cancel := context.WithTimeout(context.Background(), 10*time.Minute)
defer cancel()
// Start a run, wait for it to end, and get its records
run, records, err := client.Scrape(ctx, "mastodon.thread", map[string]any{"url": "https://mastodon.social/@Mastodon/117466983307949301", "max_replies": 2})
if err != nil {
log.Fatal(err)
}
fmt.Println(run.ID, run.Status, run.RecordCount)
// Read its records: pages are fetched as you go
for records.Next() {
fmt.Println(string(records.Current()))
}
if err := records.Err(); err != nil {
log.Fatal(err)
}
}Install it with go get github.com/enrichednow/enrichednow-go@latest, then save as run.go and run go run run.go
import com.enrichednow.EnrichedNowClient;
import com.enrichednow.ScrapeResult;
import java.util.Map;
public class Run {
public static void main(String[] args) {
EnrichedNowClient client = EnrichedNowClient.fromEnv(); // reads ENRICHEDNOW_API_KEY
// Start a run, wait for it to end, and get its records
ScrapeResult result = client.scrape("mastodon.thread", Map.of("url", "https://mastodon.social/@Mastodon/117466983307949301", "max_replies", 2));
System.out.println(result.run().id() + " " + result.run().status() + " " + result.run().recordCount());
// Read its records: pages are fetched as you go
for (Map<String, Object> record : result.records()) {
System.out.println(record);
}
}
}Add com.enrichednow:enrichednow-java:0.4.0 to your Maven or Gradle build, then save as Run.java
enrichednow run mastodon.thread --input url=https://mastodon.social/@Mastodon/117466983307949301 --input max_replies=2Install it with curl -fsSL https://raw.githubusercontent.com/enrichednow/enrichednow-cli/main/install.sh | sh
What comes back
The post, then the replies under it, each with text, author, time, counts and the post it answers. A record has 30 fields. One we could not read is null, never an empty string or a zero.
{
"id": "117466983307949301",
"uri": "https://mastodon.social/users/Mastodon/statuses/117466983307949301",
"url": "https://mastodon.social/@Mastodon/117466983307949301",
"server": "mastodon.social",
"text": "#Mastodon is getting a new look in our upcoming 5.0 release.\nWe wrote a bit more about our design process and how we approach community input. If you’re on mastodon.social you will see the new design tomorrow, on Tuesday. We rely on your … [truncated]",
"content_warning": null,
"sensitive": false,
"language": "en",
"visibility": "public",
"created_at": "2026-10-19T09:58:40.113000Z",
"edited_at": null,
"author_acct": "Mastodon@mastodon.social",
"author_name": "Mastodon",
"author_url": "https://mastodon.social/@Mastodon",
"author_bot": false,
"reply_count": 65,
"boost_count": 437,
"favourite_count": 764,
"quote_count": 36,
"hashtags": [
"mastodon"
],
"mentions": [],
"links": [
"https://blog.joinmastodon.org/2026/10/5.0-a-closer-look/"
],
"media": [],
"link_card": {
"url": "https://blog.joinmastodon.org/2026/10/5.0-a-closer-look/",
"title": "5.0: A closer look",
"description": "October is here, and it's almost time for Mastodon's 5.0 release! We announced our plans for big changes back in August. In this companion article, we're hoping to shed light on some of the decisions behind this major UI overhaul.",
"image_url": "https://files.mastodon.social/cache/preview_cards/images/211/377/178/original/2fb48094e631509b.jpg",
"provider": "Mastodon Blog"
},
"poll": null,
"quoted_post_url": null,
"reply_to_id": null,
"boosted_by_acct": null,
"boosted_at": null,
"fetched_at": "2026-11-19T18:07:40.979728Z"
}The scraper returned this record for the input above, reading a saved copy of the page, not the live site.
Values shortened for this page: text: 304 characters, the first 237 shown.
The fields of a record
idstring- The post's id on the server that answered.
uristring or null- The post's permanent id on the network, on the server it was written on.
urlstring or null- The post's address on the web.
serverstring- The server that answered, e.g. mastodon.social.
textstring or null- The post's text, links written out; null for a post that is only media.
content_warningstring or null- The warning the author put in front of the text, when there is one.
sensitiveboolean- True when the author marked the media as sensitive.
languagestring or null- The language the post is marked with, e.g. en.
visibilitystring or null- public or unlisted: the only posts a visitor who is not signed in is shown.
created_atdatetime or null- When it was posted, in UTC.
edited_atdatetime or null- When it was last edited, in UTC; null when it never was.
author_acctstring or null- The author's full address, user@server.
author_namestring or null- The author's display name.
author_urlstring or null- The author's profile address.
author_botboolean or null- True when the author's account says it is automated.
reply_countinteger or null- Number of replies the answering server knows of.
boost_countinteger or null- Number of boosts (reposts) the answering server knows of.
favourite_countinteger or null- Number of favourites the answering server knows of.
quote_countinteger or null- Number of posts that quote this one; null where the server does not say.
hashtagslist of strings- The hashtags of the post, without the #, lower case.
mentionslist of strings- The accounts the post mentions, as user@server.
linkslist of strings- The full addresses of the links in the text, in order, without mentions and hashtags.
medialist of objects- The post's images, videos and audio, in order.Each holds
type,url,preview_url,alt_text,width,height,duration_s. link_cardobject or null- The preview card of a link in the post, when the server made one.Holds
url,title,description,image_url,provider. pollobject or null- The post's poll, when it has one.Holds
options,votes,voters,multiple,expires_at,expired. quoted_post_urlstring or null- The address of the post this one quotes, when it quotes one.
reply_to_idstring or null- The id, on the answering server, of the post this one replies to; null when it is not a reply.
boosted_by_acctstring or null- In an account's posts: the account that boosted this post, when it is listed as a boost.
boosted_atdatetime or null- When it was boosted, in UTC.
fetched_atdatetime- When the answer was read, in UTC.
Units and limits
- Counted per record
- Billed per record: a run that returns data costs 1 unit for each record it returns.
- A miss costs nothing
- A run that fails, that meets something not supported yet, or that you cancel costs nothing. You pay for runs that return data.
- What bounds a run
- A run may take up to 5 minutes. Its records are read in pages of up to 1,000 and are kept for 7 days.
What it does not do
- Up to 200 replies a run, as many of a long thread as the server shows a visitor who is not signed in.
- Replies are those the post's server knows of.
The bounds its schema sets
max_replies- 1 to 200; 50 unless you say otherwise
Questions
What does Mastodon post and its replies return?
The post, then the replies under it, each with text, author, time, counts and the post it answers. A record has 30 fields, among them id, uri, url, server, text and content_warning. A value that could not be read is null, never an empty string or a zero.
What do I send?
A Mastodon post's address, and optionally how many replies. The input url is required. Optional: max_replies.
How is it counted?
Billed per record: a run that returns data costs 1 unit for each record it returns. A run that fails, that meets something not supported yet, or that you cancel costs nothing. The first 1,000 units each month are free.
How much does one run return?
Its schema sets these bounds: max_replies 1 to 200 (50 unless you say otherwise). A run may take up to 5 minutes.
What does it not do?
Up to 200 replies a run, as many of a long thread as the server shows a visitor who is not signed in. Replies are those the post's server knows of.
How long are the records kept, and in what format do they come?
Records are kept for 7 days after the run ended, and read in pages of up to 1,000. They come as JSON, as NDJSON with one record a line, or as CSV with a column for each field.
Can an AI assistant call it?
Yes. Through the EnrichedNow MCP server an assistant calls the tool run_scraper with the scraper_id mastodon.thread and the same input. It costs what the same API call costs.
Mastodon
Public Mastodon accounts, their posts, a post's replies and a hashtag's posts, on any Mastodon server, as a visitor who is not signed in sees them.
Mastodon profile
mastodon.profileA Mastodon account as @user@server, or its profile address. Its names, bio, profile fields, pictures, follower, following and post counts, dates and the owner's own settings.
Mastodon posts of an account
mastodon.postsA Mastodon account, and optionally how many posts, which kind, and where to continue. Its public posts, newest first: text, time, counts, hashtags, links, media, polls and boosts.
Mastodon post
mastodon.postA Mastodon post's address. The post: text, time, author, reply, boost, favourite and quote counts, hashtags, links, media and poll.
Mastodon hashtag
mastodon.hashtagA hashtag and a Mastodon server, and optionally only its own users' posts and how many. The public posts with that hashtag the server knows, newest first: text, author, time, counts, links and media.
- Industry
- Social and video
- Where
- Worldwide
Run it on an input of your own.
Create an account, make a key, and send the request above with your own input. The first 1,000 units each month are free.