honesthook

mastodon-api/posts

Mastodon posts API — recent posts, boosts excluded

Recent posts from the profile itself, via the official API of the account's own instance. No key.

Parameters

NameWhat it is
handleuser@instance. Without the instance, 400.
limit1 to 40, default 20. Outside the range it is refused with 400 rather than clamped — the source clamps in silence, and someone asking for 100 would get 40 and think the account has 40 posts.

Handle format and anchor

One call. Real response.

{
  "success": true,
  "platform": "mastodon",
  "endpoint": "mastodon/posts",
  "data": {
    "author": {
      "id": "https://mastodon.social/users/Gargron",
      "handle": "Gargron@mastodon.social",
      "name": "Eugen Rochko",
      "followers": 382936,
      "following": 743,
      "posts_count": 82367,
      "verified": null,
      "is_private": false,
      "url": "https://mastodon.social/@Gargron"
    },
    "items": [
      {
        "id": "117373447417200465",
        "url": "https://mastodon.social/@Gargron/117373447417200465",
        "title": null,
        "text": "@BigTittyBimbo @nightjar It's my wife's hands!",
        "thumbnail_url": null,
        "published_at": "2026-10-02T21:31:15.725Z",
        "metrics": {
          "likes": 3,
          "replies": 1,
          "reposts": 1,
          "quotes": 0
        },
        "position": null,
        "text_html": "<p><span class=\"h-card\" translate=\"no\"><a href=\"https://autonomous.zone/@BigTittyBimbo\" class=\"u-url mention\">@<span>BigTittyBimbo</span></a></span> <span class=\"h-card\" translate=\"no\"><a href=\"https://twoot.site/@nightjar\" class=\"u-url mention\">@<span>nightjar</span></a></span> It&#39;s my wife&#39;s hands!</p>"
      },
      {
        "id": "117372669154901610",
        "url": "https://mastodon.social/@Gargron/117372669154901610",
        "title": null,
        "text": "@EccTM No",
        "thumbnail_url": null,
        "published_at": "2026-10-02T18:13:20.338Z",
        "metrics": {
          "likes": 0,
          "replies": 0,
          "reposts": 0,
          "quotes": 0
        },
        "position": null,
        "text_html": "<p><span class=\"h-card\" translate=\"no\"><a href=\"https://mastodon.emmetcoughlan.com/@EccTM\" class=\"u-url mention\">@<span>EccTM</span></a></span> No</p>"
      },
      {
        "id": "117371936822094090",
        "url": "https://mastodon.social/@Gargron/117371936822094090",
        "title": null,
        "text": "@moxxi You can't edit it yourself but I can do it for you. Best to e-mail hello@joinmastodon.org with your order number and what amendments you want and I'll handle it from there.",
        "thumbnail_url": null,
        "published_at": "2026-10-02T15:07:05.826Z",
        "metrics": {
          "likes": 0,
          "replies": 1,
          "reposts": 0,
          "quotes": 0
        },
        "position": null,
        "text_html": "<p><span class=\"h-card\" translate=\"no\"><a href=\"https://mastodon.social/@moxxi\" class=\"u-url mention\">@<span>moxxi</span></a></span> You can&#39;t edit it yourself but I can do it for you. Best to e-mail hello@joinmastodon.org with your order number and what amendments you want and I&#39;ll handle it from there.</p>"
      },
      {
        "id": "117371140278995238",
        "url": "https://mastodon.social/@Gargron/117371140278995238",
        "title": null,
        "text": "@hellothalia Welcome! I have a collection here:\n\nhttps://mastodon.social/collections/116777346372109420",
        "thumbnail_url": null,
        "published_at": "2026-10-02T11:44:31.542Z",
        "metrics": {
          "likes": 1,
          "replies": 1,
          "reposts": 0,
          "quotes": 0
        },
        "position": null,
        "text_html": "<p><span class=\"h-card\" translate=\"no\"><a href=\"https://mastodon.social/@hellothalia\" class=\"u-url mention\">@<span>hellothalia</span></a></span> Welcome! I have a collection here:</p><p><a href=\"https://mastodon.social/collections/116777346372109420\" target=\"_blank\" rel=\"nofollow noopener\" translate=\"no\"><span class=\"invisible\">https://</span><span class=\"ellipsis\">mastodon.social/collections/11</span><span class=\"invisible\">6777346372109420</span></a></p>"
      },
      {
        "id": "117370824362010838",
        "url": "https://mastodon.social/@Gargron/117370824362010838",
        "title": null,
        "text": "@a1ba :polarbear:",
        "thumbnail_url": null,
        "published_at": "2026-10-02T10:24:11.038Z",
        "metrics": {
          "likes": 3,
          "replies": 0,
          "reposts": 1,
          "quotes": 0
        },
        "position": null,
        "text_html": "<p><span class=\"h-card\" translate=\"no\"><a href=\"https://suya.place/users/a1ba\" class=\"u-url mention\">@<span>a1ba</span></a></span> :polarbear:</p>"
      },
      {
        "id": "117370799433141318",
        "url": "https://mastodon.social/@Gargron/117370799433141318",
        "title": null,
        "text": "@a1ba Try again!",
        "thumbnail_url": null,
        "published_at": "2026-10-02T10:17:50.647Z",
        "metrics": {
          "likes": 4,
          "replies": 2,
          "reposts": 1,
          "quotes": 0
        },
        "position": null,
        "text_html": "<p><span class=\"h-card\" translate=\"no\"><a href=\"https://suya.place/users/a1ba\" class=\"u-url mention\">@<span>a1ba</span></a></span> Try again!</p>"
      },
      {
        "id": "117370740553888368",
        "url": "https://mastodon.social/@Gargron/117370740553888368",
        "title": null,
        "text": "@superball @Jonly https://mastodon.catgirl.cloud/@hypha/114426941003964933",
        "thumbnail_url": null,
        "published_at": "2026-10-02T10:02:52.225Z",
        "metrics": {
          "likes": 8,
          "replies": 1,
          "reposts": 1,
          "quotes": 0
        },
        "position": null,
        "text_html": "<p><span class=\"h-card\" translate=\"no\"><a href=\"https://norcal.social/@superball\" class=\"u-url mention\">@<span>superball</span></a></span> <span class=\"h-card\" translate=\"no\"><a href=\"https://mastodon.social/@Jonly\" class=\"u-url mention\">@<span>Jonly</span></a></span> <a href=\"https://mastodon.catgirl.cloud/@hypha/114426941003964933\" target=\"_blank\" rel=\"nofollow noopener\" translate=\"no\"><span class=\"invisible\">https://</span><span class=\"ellipsis\">mastodon.catgirl.cloud/@hypha/</span><span class=\"invisible\">114426941003964933</span></a></p>"
      },
      {
        "id": "117370518700816731",
        "url": "https://mastodon.social/@Gargron/117370518700816731",
        "title": null,
        "text": "@sandorspruit It's getting the massage of its life.",
        "thumbnail_url": null,
        "published_at": "2026-10-02T09:06:27.012Z",
        "metrics": {
          "likes": 10,
          "replies": 1,
          "reposts": 0,
          "quotes": 0
        },
        "position": null,
        "text_html": "<p><span class=\"h-card\" translate=\"no\"><a href=\"https://mastodon.nl/@sandorspruit\" class=\"u-url mention\">@<span>sandorspruit</span></a></span> It&#39;s getting the massage of its life.</p>"
      },
      {
        "id": "117370516770613425",
        "url": "https://mastodon.social/@Gargron/117370516770613425",
        "title": null,
        "text": "@Jonly I don't possess one, but it's been done by someone before!",
        "thumbnail_url": null,
        "published_at": "2026-10-02T09:05:57.563Z",
        "metrics": {
          "likes": 1,
          "replies": 2,
          "reposts": 0,
          "quotes": 0
        },
        "position": null,
        "text_html": "<p><span class=\"h-card\" translate=\"no\"><a href=\"https://mastodon.social/@Jonly\" class=\"u-url mention\">@<span>Jonly</span></a></span> I don&#39;t possess one, but it&#39;s been done by someone before!</p>"
      },
      {
        "id": "117370469340138396",
        "url": "https://mastodon.social/@Gargron/117370469340138396",
        "title": null,
        "text": "To demonstrate the squishiness of the #Plushtodon... which are now up for pre-order (shipping expected to start beginning of November)\n\nhttps://shop.joinmastodon.org/products/pre-order-mastodon-plushie-20cm-plushtodon",
        "thumbnail_url": "https://files.mastodon.social/media_attachments/files/117/370/476/742/573/372/small/1a194fcbd4474ba5.png",
        "published_at": "2026-10-02T08:53:53.830Z",
        "metrics": {
          "likes": 203,
          "replies": 25,
          "reposts": 119,
          "quotes": 3
        },
        "position": null,
        "text_html": "<p>To demonstrate the squishiness of the <a href=\"https://mastodon.social/tags/Plushtodon\" class=\"mention hashtag\" rel=\"tag\">#<span>Plushtodon</span></a>... which are now up for pre-order (shipping expected to start beginning of November)</p><p><a href=\"https://shop.joinmastodon.org/products/pre-order-mastodon-plushie-20cm-plushtodon\" target=\"_blank\" rel=\"nofollow noopener\" translate=\"no\"><span class=\"invisible\">https://</span><span class=\"ellipsis\">shop.joinmastodon.org/products</span><span class=\"invisible\">/pre-order-mastodon-plushie-20cm-plushtodon</span></a></p>"
      },
      {
        "id": "117370424216241550",
        "url": "https://mastodon.social/@Gargron/117370424216241550",
        "title": null,
        "text": "@DanielTaylor I don’t recall seeing an email like that, can you tell me the order number?",
        "thumbnail_url": null,
        "published_at": "2026-10-02T08:42:25.294Z",
        "metrics": {
          "likes": 0,
          "replies": 1,
          "reposts": 0,
          "quotes": 0
        },
        "position": null,
        "text_html": "<p><span class=\"h-card\" translate=\"no\"><a href=\"https://mastodon.social/@DanielTaylor\" class=\"u-url mention\">@<span>DanielTaylor</span></a></span> I don’t recall seeing an email like that, can you tell me the order number?</p>"
      },
      {
        "id": "117366276712599560",
        "url": "https://mastodon.social/@Gargron/117366276712599560",
        "title": null,
        "text": "@dlakelan I’m 33!",
        "thumbnail_url": null,
        "published_at": "2026-10-01T15:07:39.409Z",
        "metrics": {
          "likes": 29,
          "replies": 5,
          "reposts": 2,
          "quotes": 0
        },
        "position": null,
        "text_html": "<p><span class=\"h-card\" translate=\"no\"><a href=\"https://mastodon.sdf.org/@dlakelan\" class=\"u-url mention\">@<span>dlakelan</span></a></span> I’m 33!</p>"
      },
      {
        "id": "117365070974688046",
        "url": "https://mastodon.social/@Gargron/117365070974688046",
        "title": null,
        "text": "https://www.youtube.com/watch?v=XxObcVn1DMQ",
        "thumbnail_url": null,
        "published_at": "2026-10-01T10:01:01.315Z",
        "metrics": {
          "likes": 26,
          "replies": 1,
          "reposts": 3,
          "quotes": 0
        },
        "position": null,
        "text_html": "<p><a href=\"https://www.youtube.com/watch?v=XxObcVn1DMQ\" target=\"_blank\" rel=\"nofollow noopener\" translate=\"no\"><span class=\"invisible\">https://www.</span><span class=\"\">youtube.com/watch?v=XxObcVn1DMQ</span><span class=\"invisible\"></span></a></p>"
      },
      {
        "id": "117361664320582868",
        "url": "https://mastodon.social/@Gargron/117361664320582868",
        "title": null,
        "text": "@brianstorms @Mastodon Please do not tag me, I am not in charge. All I can say is I know the moderators are working hard to get rid of these accounts as quickly as they appear.",
        "thumbnail_url": null,
        "published_at": "2026-09-30T19:34:39.893Z",
        "metrics": {
          "likes": 1,
          "replies": 0,
          "reposts": 0,
          "quotes": 0
        },
        "position": null,
        "text_html": "<p><span class=\"h-card\" translate=\"no\"><a href=\"https://mastodon.social/@brianstorms\" class=\"u-url mention\">@<span>brianstorms</span></a></span> <span class=\"h-card\" translate=\"no\"><a href=\"https://mastodon.social/@Mastodon\" class=\"u-url mention\">@<span>Mastodon</span></a></span> Please do not tag me, I am not in charge. All I can say is I know the moderators are working hard to get rid of these accounts as quickly as they appear.</p>"
      },
      {
        "id": "117359276146597916",
        "url": "https://mastodon.social/@Gargron/117359276146597916",
        "title": null,
        "text": "@rhelune @privateger Ah okay. I couldn’t tell on mobile.",
        "thumbnail_url": null,
        "published_at": "2026-09-30T09:27:19.256Z",
        "metrics": {
          "likes": 1,
          "replies": 0,
          "reposts": 0,
          "quotes": 0
        },
        "position": null,
        "text_html": "<p><span class=\"h-card\" translate=\"no\"><a href=\"https://todon.eu/@rhelune\" class=\"u-url mention\">@<span>rhelune</span></a></span> <span class=\"h-card\" translate=\"no\"><a href=\"https://plasmatrap.com/@privateger\" class=\"u-url mention\">@<span>privateger</span></a></span> Ah okay. I couldn’t tell on mobile.</p>"
      },
      {
        "id": "117359115766103377",
        "url": "https://mastodon.social/@Gargron/117359115766103377",
        "title": null,
        "text": "@rhelune Before I boost, may I ask why you are apologizing for a posting a link to this site? Is it a bad site?",
        "thumbnail_url": null,
        "published_at": "2026-09-30T08:46:32.038Z",
        "metrics": {
          "likes": 1,
          "replies": 1,
          "reposts": 0,
          "quotes": 0
        },
        "position": null,
        "text_html": "<p><span class=\"h-card\" translate=\"no\"><a href=\"https://todon.eu/@rhelune\" class=\"u-url mention\">@<span>rhelune</span></a></span> Before I boost, may I ask why you are apologizing for a posting a link to this site? Is it a bad site?</p>"
      },
      {
        "id": "117353911072205197",
        "url": "https://mastodon.social/@Gargron/117353911072205197",
        "title": null,
        "text": "Sleepy baby!!\n\n#CatsOfMastodon #Caturday",
        "thumbnail_url": "https://files.mastodon.social/media_attachments/files/117/353/903/695/423/770/small/669ef22ccde5ff9a.png",
        "published_at": "2026-09-29T10:42:54.716Z",
        "metrics": {
          "likes": 285,
          "replies": 8,
          "reposts": 92,
          "quotes": 1
        },
        "position": null,
        "text_html": "<p>Sleepy baby!!</p><p><a href=\"https://mastodon.social/tags/CatsOfMastodon\" class=\"mention hashtag\" rel=\"tag\">#<span>CatsOfMastodon</span></a> <a href=\"https://mastodon.social/tags/Caturday\" class=\"mention hashtag\" rel=\"tag\">#<span>Caturday</span></a></p>"
      },
      {
        "id": "117350965088265907",
        "url": "https://mastodon.social/@Gargron/117350965088265907",
        "title": null,
        "text": "@PCMag I saw it trending on Mastodon yesterday",
        "thumbnail_url": null,
        "published_at": "2026-09-28T22:13:42.563Z",
        "metrics": {
          "likes": 1,
          "replies": 0,
          "reposts": 0,
          "quotes": 0
        },
        "position": null,
        "text_html": "<p><span class=\"h-card\" translate=\"no\"><a href=\"https://mastodon.social/@PCMag\" class=\"u-url mention\">@<span>PCMag</span></a></span> I saw it trending on Mastodon yesterday</p>"
      },
      {
        "id": "117350913791862874",
        "url": "https://mastodon.social/@Gargron/117350913791862874",
        "title": null,
        "text": "@seldo It was an amazing game for its time and I do believe it’s worth a replay now and again but I wouldn’t describe it as $$$$ 🤔",
        "thumbnail_url": null,
        "published_at": "2026-09-28T22:00:39.844Z",
        "metrics": {
          "likes": 2,
          "replies": 0,
          "reposts": 0,
          "quotes": 0
        },
        "position": null,
        "text_html": "<p><span class=\"h-card\" translate=\"no\"><a href=\"https://alpaca.gold/@seldo\" class=\"u-url mention\">@<span>seldo</span></a></span> It was an amazing game for its time and I do believe it’s worth a replay now and again but I wouldn’t describe it as $$$$ 🤔</p>"
      },
      {
        "id": "117347979956825292",
        "url": "https://mastodon.social/@Gargron/117347979956825292",
        "title": null,
        "text": "@rzeta0 ?",
        "thumbnail_url": null,
        "published_at": "2026-09-28T09:34:33.073Z",
        "metrics": {
          "likes": 0,
          "replies": 0,
          "reposts": 0,
          "quotes": 0
        },
        "position": null,
        "text_html": "<p><span class=\"h-card\" translate=\"no\"><a href=\"https://mastodon.world/@rzeta0\" class=\"u-url mention\">@<span>rzeta0</span></a></span> ?</p>"
      }
    ],
    "has_more": false,
    "next_cursor": null
  },
  "error": null,
  "credits_purchased_remaining": 0,
  "free_credits_remaining": 95,
  "free_credits_total": 100,
  "free_credits_reset_at": "2026-11-01T00:00:00.000Z",
  "cached": false
}

Recorded response, captured 3 Oct 2026. A live call returns the value at the moment you ask.

What this endpoint does not return.

A field we cannot read comes back null, never 0. A zero would be a claim about the account; null is a fact about our collection.

Where this goes wrong.

A boost is a third party's post and does not enter — 15 in every 20 of the raw feed. The outer object of a boost arrives with empty text and zeroed metrics, so counting them would report an account posting empty statuses. A reply to another person DOES enter, because the account wrote it. The body comes in two fields: text, already stripped of HTML, and text_html with the original — that one is third-party HTML and must be sanitised before it reaches a page.

Cost

1 credit per call. A call that finds nothing costs nothing.

Why are boosts excluded when they are most of the feed?

Because a boost is not a post by this account. The outer object carries empty text and zeroed metrics.

Are replies included?

Yes. The account wrote the reply, so it is the account's post.

Can I put text_html straight on a page?

No. It is third-party HTML and needs sanitising first, or you have an XSS. Use text if you want it already clean.

Other routes for this platform

← mastodon-api

Call mastodon-api/posts from your own code with one key.

Get a free API key: 1,000 credits a month, no card →