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.

Try it
Ready-made, maintained by usArticles, 22 fieldsv1.0

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

Serversoptional
Mastodon servers to read, such as mastodon.social, mas.to or fosstodon.org. Each server ranks its own trending links; up to 20 servers. One per line, or separated by commas.
Example: mastodon.social
Maximum resultsoptional
Most links to return, 1 to 400. Each server's list is read to that depth before the lists are merged.
Example: 40

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
Endpoint
POSThttps://pullrow.dev/v1/apis/mastodon-trending-links/run
  • Small runs answer in the same request; longer ones answer 202 with a run to poll.
  • fields returns only the fields you name. The examples send the ones picked on this page.
  • Idempotency-Key is optional. A retry with it is never charged twice.
  • You pay for records returned. Zero records cost zero.

Every run option, explained

Calling it needs a key
10,000 free records of this API to start. No card.
curl
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.

serverslist
Mastodon servers to read, such as mastodon.social, mas.to or fosstodon.org. Each server ranks its own trending links; up to 20 servers.
default: mastodon.socialexample: mastodon.social
max_resultsnumber
Most links to return, 1 to 400. Each server's list is read to that depth before the lists are merged.
default: 40example: 40

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

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 nameTypeShown on this page asFilled
ranknumberRank3 of 3
urllinkLink3 of 3
titletextTitle3 of 3
descriptiontextDescription3 of 3
publishertextPublisher3 of 3
author_nametextAuthor name2 of 3
languagetextLanguage3 of 3
link_typetextLink type3 of 3
published_atdate and timePublished2 of 3
image_urlimage linkImage3 of 3
uses_todaynumberUses today3 of 3
accounts_todaynumberAccounts today3 of 3
uses_yesterdaynumberUses yesterday3 of 3
accounts_yesterdaynumberAccounts yesterday3 of 3
uses_7dnumberUses 7d3 of 3
accounts_7dnumberAccounts 7d3 of 3
daily_usesgroup of valuesDaily uses3 of 3
daily_accountsgroup of valuesDaily accounts3 of 3
serverslistServers3 of 3
servers_countnumberServers count3 of 3
server_ranksgroup of valuesServer ranks3 of 3
captured_atdate and timeCaptured3 of 3

How it reads the site

Runs on a reader we built and maintain by hand for this site.

Sample records

Sample records
RecordTitleRankDescriptionPublisherAuthor nameLanguageUses todayAccounts todayUses yesterdayAccounts yesterdayUses 7dAccounts 7dDaily usesDaily accountsServersServers countServer ranksPublishedCapturedLinkLink typeImage
1Trump announces Mike Waltz as next White House press secretary1Waltz, 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 PostCleve R. Wootson Jr.en223703673723692026 12 06: 2 · 2026 12 05: 370 · 2026 12 04: 02026 12 06: 2 · 2026 12 05: 367 · 2026 12 04: 0mastodon.social, mastodon.online2Mastodon social: 1 · Mastodon online: 1Dec 5, 2026Dec 6, 2026washingtonpost.com/politics/2026/12/04/trump-announces-mike-waltz-new-press-secretary/linkfiles.mastodon.social/cache/preview_cards/images/217/459/231/original/b6912c9b3a0d1fcc.jpeg
2Distributed acoustic sensing reveals urban rat dynamics through environmental intelligence of dark fiber - Communications Earth & Environment2Rat 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—en10101421421521522026 12 06: 10 · 2026 12 05: 142 · 2026 12 04: 02026 12 06: 10 · 2026 12 05: 142 · 2026 12 04: 0mastodon.social, mastodon.online2Mastodon social: 2 · Mastodon online: 2—Dec 6, 2026nature.com/articles/s43247-025-02904-ylinkfiles.mastodon.social/cache/preview_cards/images/217/510/557/original/84c48a3872c8eca4.png
3Opinion | Grand Theft Chips3Congress awakens to critique the merger of Huang & Huang.The New York TimesMaureen Dowden221241201261222026 12 06: 2 · 2026 12 05: 124 · 2026 12 04: 02026 12 06: 2 · 2026 12 05: 120 · 2026 12 04: 0mastodon.social, mastodon.online2Mastodon social: 4 · Mastodon online: 3Dec 5, 2026Dec 6, 2026nytimes.com/2026/12/05/opinion/jensen-huang-nvidia-hearing-congress.htmllinkfiles.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.
Known limits
  • 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.