Mastodon Trending Links API
News and web links trending on Mastodon right now, from one or several servers merged into one ranked list: link, title, short description, publisher, author, language, publish date, preview image and how many posts and accounts shared it today, yesterday and over 7 days.
$0.50 per 1,000 records
You pay only for the records you get. Zero records cost zero. 10,000 free records of this API to start (5,000 at the base price of $1 per 1,000), no card.
Data from mastodon.social/explore/links
Get this data
Try it here with a few records, download the sample, fill a Google Sheet, or call it from your own code.
Try it
Run it on this page, or call it from your code with the endpoint in the developer section. A free key covers 10,000 records of this API, no card. Create a free key
For developers: the API and MCPThe endpoint, code in curl, JavaScript and Python, every input, and files for your tools
- Small runs answer in the same request; longer ones answer
202with a run to poll. fieldsreturns only the fields you name. The examples send the ones picked on this page.Idempotency-Keyis optional. A retry with it is never charged twice.- You pay for records returned. Zero records cost zero.
curl -X POST "https://pullrow.dev/v1/apis/mastodon-trending-links/run" \
-H "Authorization: Bearer $PULLROW_API_KEY" \
-H "Content-Type: application/json" \
-d '{"input":{"servers":["mastodon.social"]},"max_items":50}'Inputs
Send them as input in the request body. Leave one out to use its default.
What's in each record
22 fields.
Basics
- Rank
Position in this list, 1 for the top link.
Example 1
- Title
Title of the linked page.
Example Trump announces Mike Waltz as next White House press secretary
- Description
Short description of the linked page, as its preview shows it.
Example Waltz, currently the ambassador to the United Nations and a former congressman from Florida, was the president’s…
- Publisher
Name of the site or publisher, such as The Washington Post.
Example The Washington Post
- Author name
Author named by the linked page, when it names one.
Example Cleve R. Wootson Jr.
- Language
Language code of the linked page, such as en.
Example en
- Uses today
Posts that shared the link on the current UTC day so far, added up across the servers read.
Example 2
- Accounts today
Accounts that shared the link on the current UTC day so far, added up across the servers read.
Example 2
- Uses yesterday
Posts that shared the link on the previous UTC day.
Example 370
- Accounts yesterday
Accounts that shared the link on the previous UTC day.
Example 367
- Uses 7d
Posts that shared the link over the last 7 UTC days, today included.
Example 372
- Accounts 7d
The daily account counts of the last 7 UTC days added up.
Example 369
- Daily uses
Posts per UTC day for the last 7 days, newest first, such as {"2026-12-05": 195}.
Example 2026 12 06: 2 · 2026 12 05: 370 · 2026 12 04: 0
- Daily accounts
Accounts per UTC day for the last 7 days, newest first.
Example 2026 12 06: 2 · 2026 12 05: 367 · 2026 12 04: 0
- Servers
The servers read where the link is trending.
Example mastodon.social, mastodon.online
- Servers count
How many of the servers read have the link in their trends.
Example 2
- Server ranks
The link's position on each of those servers, such as {"mastodon.social": 3}.
Example Mastodon social: 1 · Mastodon online: 1
Dates
- Published
When the linked page says it was published (UTC).
Example Dec 5, 2026
- Captured
When the trends were read (UTC).
Example Dec 6, 2026
Links
- Link
The trending link.
Example washingtonpost.com/politics/2026/12/04/trump-announces-mike-waltz-new-press-secretary/
- Link type
Kind of link: link (a page), video, photo or rich (embedded content).
Example link
Pictures and media
- Image
Preview image of the link, as stored by the server.
Example Open the image
Technical detailsField names and types for developers
Field names and types
The names your code reads in each record. "Filled" counts how many of the 3 sample records carry the field.
| Field name | Type | Shown on this page as | Filled |
|---|---|---|---|
rank | number | Rank | 3 of 3 |
url | link | Link | 3 of 3 |
title | text | Title | 3 of 3 |
description | text | Description | 3 of 3 |
publisher | text | Publisher | 3 of 3 |
author_name | text | Author name | 2 of 3 |
language | text | Language | 3 of 3 |
link_type | text | Link type | 3 of 3 |
published_at | date and time | Published | 2 of 3 |
image_url | image link | Image | 3 of 3 |
uses_today | number | Uses today | 3 of 3 |
accounts_today | number | Accounts today | 3 of 3 |
uses_yesterday | number | Uses yesterday | 3 of 3 |
accounts_yesterday | number | Accounts yesterday | 3 of 3 |
uses_7d | number | Uses 7d | 3 of 3 |
accounts_7d | number | Accounts 7d | 3 of 3 |
daily_uses | group of values | Daily uses | 3 of 3 |
daily_accounts | group of values | Daily accounts | 3 of 3 |
servers | list | Servers | 3 of 3 |
servers_count | number | Servers count | 3 of 3 |
server_ranks | group of values | Server ranks | 3 of 3 |
captured_at | date and time | Captured | 3 of 3 |
How it reads the site
Runs on a reader we built and maintain by hand for this site.
Save as pipeline
A pipeline remembers this API, your inputs and the fields you picked. It can run on a schedule and email you the results.
Sample records
| Record | Title | Rank | Description | Publisher | Author name | Language | Uses today | Accounts today | Uses yesterday | Accounts yesterday | Uses 7d | Accounts 7d | Daily uses | Daily accounts | Servers | Servers count | Server ranks | Published | Captured | Link | Link type | Image |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 1 | Trump announces Mike Waltz as next White House press secretary | 1 | Waltz, currently the ambassador to the United Nations and a former congressman from Florida, was the president’s national security adviser before the “Signalgate” scandal. | The Washington Post | Cleve R. Wootson Jr. | en | 2 | 2 | 370 | 367 | 372 | 369 | 2026 12 06: 2 · 2026 12 05: 370 · 2026 12 04: 0 | 2026 12 06: 2 · 2026 12 05: 367 · 2026 12 04: 0 | mastodon.social, mastodon.online | 2 | Mastodon social: 1 · Mastodon online: 1 | Dec 5, 2026 | Dec 6, 2026 | washingtonpost.com/politics/2026/12/04/trump-announces-mike-waltz-new-press-secretary/ | link | files.mastodon.social/cache/preview_cards/images/217/459/231/original/b6912c9b3a0d1fcc.jpeg |
| 2 | Distributed acoustic sensing reveals urban rat dynamics through environmental intelligence of dark fiber - Communications Earth & Environment | 2 | Rat nightlife in cities is shaped by the weather, with wind, heat, and cloud cover keeping them underground, according to a study that used distributed acoustic sensing on a 20-kilometer dark fiber in an 810- meter inaccessible urban tunnel in China. | Nature | — | en | 10 | 10 | 142 | 142 | 152 | 152 | 2026 12 06: 10 · 2026 12 05: 142 · 2026 12 04: 0 | 2026 12 06: 10 · 2026 12 05: 142 · 2026 12 04: 0 | mastodon.social, mastodon.online | 2 | Mastodon social: 2 · Mastodon online: 2 | — | Dec 6, 2026 | nature.com/articles/s43247-025-02904-y | link | files.mastodon.social/cache/preview_cards/images/217/510/557/original/84c48a3872c8eca4.png |
| 3 | Opinion | Grand Theft Chips | 3 | Congress awakens to critique the merger of Huang & Huang. | The New York Times | Maureen Dowd | en | 2 | 2 | 124 | 120 | 126 | 122 | 2026 12 06: 2 · 2026 12 05: 124 · 2026 12 04: 0 | 2026 12 06: 2 · 2026 12 05: 120 · 2026 12 04: 0 | mastodon.social, mastodon.online | 2 | Mastodon social: 4 · Mastodon online: 3 | Dec 5, 2026 | Dec 6, 2026 | nytimes.com/2026/12/05/opinion/jensen-huang-nvidia-hearing-congress.html | link | files.mastodon.social/cache/preview_cards/images/217/489/916/original/c9a807ece3045ff8.jpg |
Sample records from the example output this API publishes. Email addresses and phone numbers in them are masked. Hover over a column name to see the field name your code reads.
Reliability
Counted from real runs. Our own health checks are left out. A run succeeded when it finished and the site neither blocked it nor broke it.
Incidents and repairs
How it is kept working What a repair can't do
A ready-made API, maintained by us. It is not part of the daily check or the automatic rebuild yet.
- You pay only for records returned. A run that returns none costs nothing.
- Only Mastodon servers that show their trends to visitors. A server that turned trends off, runs other software or refuses the request is left out, and the other servers are still read.
- Counts are each server's own: posts (uses) and accounts it saw sharing the link per UTC day, and today is the current UTC day so far. Added up across servers, one post seen by two servers counts twice.
- Servers review what may trend, and the lists change through the day. A run is a snapshot taken at captured_at; run it on a schedule to keep a history.
- Up to 400 links per run. Each server's list is read 20 links per request, about one request a second; Mastodon allows 300 requests in 5 minutes from one address.
- With several servers, every server gives each link points by its position (its top link gets the most) and links are ordered by their points added up, so a link trending on many servers rises. With one server the order is the server's own.
- Title, description, publisher, author and image come from the link's preview as the server fetched it, and only that short text is returned. About one link in four names no author and about one in five has no publish date.
Version history
A run uses the live version unless the request names another one with version.
Manage this API
Only your workspace sees this part.
Automatic repair
Off: a rebuilt version is stored and waits for you in the version history.
Delete this API
Removes the API, its versions and the saved records of its runs. Calls to its address then answer 404. Records already charged stay charged. This cannot be undone.