{
"count": 5,
"items": [
{
"type": "post",
"id": "117611919697712807",
"url": "https://sunny.garden/@WanderingInDigitalWorlds/117611919649078490",
"text": "I...Did the \"Apply Discount Function\" Lab by writing my own skeleton function of if/elif/else and adapting some solid code that I fixed the broken logic first before adding it into",
"html": "<p>I...Did the \"Apply Discount Function\" Lab by writing my own skeleton function of if/elif/else and adapting some solid code that I fixed the broken logic first before adding it i",
"createdAt": "2026-11-14T00:17:53Z",
"language": "en",
"author": "[email protected]",
"authorName": "He Dreams of Shork",
"authorUrl": "https://sunny.garden/@WanderingInDigitalWorlds",
"repliesCount": 0,
"reblogsCount": 0,
"favouritesCount": 0,
"hashtags": [
"tonight",
"python",
"learning",
"freecodecamp"
],
"mediaUrls": [],
"cardUrl": null,
"inReplyToId": null,
"instance": "mastodon.social",
"sourceHashtag": "python",
"scrapedAt": "2026-11-14T00:22:17Z"
},
{
"type": "post",
"id": "117611740102816897",
"url": "https://infosec.exchange/@ubernostrum/117611740064560395",
"text": "The latest release of pip supports installing specific dependency groups from a standard lock file, which means I can simplify the last little rough edge of my recommended “boring”",
"html": "<p>The latest release of pip supports installing specific dependency groups from a standard lock file, which means I can simplify the last little rough edge of my recommended “bori",
"createdAt": "2026-11-13T23:32:12Z",
"language": "en",
"author": "[email protected]",
"authorName": "James Bennett",
"authorUrl": "https://infosec.exchange/@ubernostrum",
"repliesCount": 0,
"reblogsCount": 1,
"favouritesCount": 1,
"hashtags": [
"python"
],
"mediaUrls": [],
"cardUrl": "https://www.b-list.org/weblog/2022/may/13/boring-python-dependencies/",
"inReplyToId": null,
"instance": "mastodon.social",
"sourceHashtag": "python",
"scrapedAt": "2026-11-14T00:22:17Z"
},
{
"type": "post",
"id": "117611614805317090",
"url": "https://mastodon.social/@hugovalters/117611614805317090",
"text": "243 lines of Python that pull consumer lag per group and partition, so you can spot slow consumers before they back up. Advanced level, kafka-python. #kafka #python #messaging http",
"html": "<p>243 lines of Python that pull consumer lag per group and partition, so you can spot slow consumers before they back up. Advanced level, kafka-python. <a href=\"https://mastodon.s",
"createdAt": "2026-11-13T23:00:21Z",
"language": "en",
"author": "[email protected]",
"authorName": "Hugo | DevOps | Cybersecurity",
"authorUrl": "https://mastodon.social/@hugovalters",
"repliesCount": 0,
"reblogsCount": 0,
"favouritesCount": 0,
"hashtags": [
"kafka",
"python",
"messaging"
],
"mediaUrls": [
"https://files.mastodon.social/media_attachments/files/117/611/614/770/572/918/original/ac0c24b459b63543.png"
],
"cardUrl": null,
"inReplyToId": null,
"instance": "mastodon.social",
"sourceHashtag": "python",
"scrapedAt": "2026-11-14T00:22:17Z"
},
{
"type": "post",
"id": "117611609604251987",
"url": "https://mastodon.social/@driscollis/117611609604251987",
"text": "Who's using the walrus operator in #Python lately?\n\nIf you don't know, it's also called an assignment expression.\n\nHere are some examples:",
"html": "<p>Who's using the walrus operator in <a href=\"https://mastodon.social/tags/Python\" class=\"mention hashtag\" rel=\"tag\">#<span>Python</span></a> lately?</p><p>If you don't kn",
"createdAt": "2026-11-13T22:59:02Z",
"language": "en",
"author": "[email protected]",
"authorName": "Mike Driscoll",
"authorUrl": "https://mastodon.social/@driscollis",
"repliesCount": 1,
"reblogsCount": 0,
"favouritesCount": 1,
"hashtags": [
"python"
],
"mediaUrls": [
"https://files.mastodon.social/media_attachments/files/117/611/609/561/920/272/original/81f6547c0dfaef81.png"
],
"cardUrl": null,
"inReplyToId": null,
"instance": "mastodon.social",
"sourceHashtag": "python",
"scrapedAt": "2026-11-14T00:22:17Z"
},
{
"type": "post",
"id": "117611419279226964",
"url": "https://mastodon.me.uk/@Alastair/117611419185981022",
"text": "More Fractals: An Interactive Explorer and Some Python\n\n## mandelbrot5: an interactive explorer\n\nhttps://blog.0x32.co.uk/posts/more-fractals-explorer-and-python/\n\n#tech #fractals #",
"html": "<p>More Fractals: An Interactive Explorer and Some Python</p><p>## mandelbrot5: an interactive explorer</p><p><a href=\"https://blog.0x32.co.uk/posts/more-fractals-explorer-and-pyth",
"createdAt": "2026-11-13T22:10:36Z",
"language": "en",
"author": "[email protected]",
"authorName": "Alastair :wq",
"authorUrl": "https://mastodon.me.uk/@Alastair",
"repliesCount": 0,
"reblogsCount": 0,
"favouritesCount": 0,
"hashtags": [
"tech",
"fractals",
"mandelbrot",
"pascal",
"freepascal",
"python",
"claude",
"ai",
"vibecoding",
"terminal"
],
"mediaUrls": [],
"cardUrl": "https://blog.0x32.co.uk/posts/more-fractals-explorer-and-python/",
"inReplyToId": null,
"instance": "mastodon.social",
"sourceHashtag": "python",
"scrapedAt": "2026-11-14T00:22:17Z"
}
]
}
curl --location --request GET 'https://zylalabs.com/api/14868/mastodon+api/38701/mastodon+api?instances=mastodon.social&hashtags=python&maxItems=5&includeTrends=false&includeLocalTimeline=false&includeReplies=false&maxRepliesPerPost=20' --header 'Authorization: Bearer YOUR_API_KEY'
After signing up, every developer is assigned a personal API access key, a unique combination of letters and digits provided to access to our API endpoint. To authenticate with the Mastodon API simply include your bearer token in the Authorization header.
| Header | Description |
|---|---|
Authorization
|
Required
Should be Bearer access_key. See "Your API Access Key" above when you are subscribed.
|
No long-term commitment. Upgrade, downgrade, or cancel anytime.
Mastodon posts by hashtag, account or keyword, trending tags and links, and replies across several instances, from the official open API. Clean JSON for brand and keyword monitoring of the fediverse.
Mastodon posts by hashtag, account or keyword, trending tags and links, and replies across several instances, from the official open API. Clean JSON for brand and keyword monitoring of the fediverse.
Up to 100 results per request. Set it with the maxItems parameter.
Every request collects live data from the public source. Identical requests may be served from a cache for up to 6 hours.
List parameters accept several values separated by commas, for example: london,paris.
The endpoint accepts these query parameters, all optional: instances, hashtags, accounts, keywords, language, maxItems, includeTrends, includeLocalTimeline, includeReplies, maxRepliesPerPost. Instances: Mastodon servers to read from. Hashtag posts are read from each instance's public timeline, so more instances give wider coverage. Accounts without a server use the first instance. Several values: comma separated. Hashtags: Hashtags to read, with or without the # sign, for example python or opensource. Each hashtag is read on every instance listed above. Several values: comma separated. Accounts: Accounts whose public posts you want, as a profile URL.
The Mastodon API returns posts, trending tags, and replies based on specified hashtags, accounts, or keywords. Each response includes details like post text, author information, and engagement metrics.
Key fields in the response include "id" (post identifier), "url" (link to the post), "text" (post content), "createdAt" (timestamp), "author" (author's account), and engagement counts (replies, reblogs, favourites).
The response data is structured in JSON format, containing a "count" of results and an "items" array. Each item represents a post with detailed attributes, making it easy to parse and utilize.
The endpoint provides information on individual posts, trending hashtags, and replies. Users can retrieve data based on specific criteria like hashtags or accounts, enhancing content discovery.
Users can customize requests by using optional parameters such as "hashtags," "accounts," and "language." This allows for tailored searches, like filtering posts by specific topics or languages.
Accepted parameter values include comma-separated lists for "hashtags" and "accounts." For example, you can request posts for hashtags like "python,opensource" or accounts like "user1,user2."
Users can analyze engagement metrics (replies, reblogs, favourites) to gauge post popularity. The author information can be used for tracking influencers, while hashtags help in monitoring trends.
Typical use cases include brand monitoring, sentiment analysis, and trend tracking within the fediverse. Businesses and researchers can leverage this data for insights into public discussions and engagement.
To obtain your API key, first sign in to your account and navigate to the API you want to use. From the API's Pricing section, choose a plan and complete the subscription process. Once subscribed, return to the API page and you will see your API Access Key displayed at the top of the documentation page. You can use this key to authenticate your requests.
You can’t switch APIs during the free trial. If you subscribe to a different API, your trial will end and the new subscription will start as a paid plan.
The free trial lasts for 7 days and allows you to make up to 50 API requests.
No, the free trial is available only once, so we recommend using it on the API that interests you the most. Most of our APIs offer a free trial, but some may not include this option.
Yes. If the API offers a free trial, you will see a "Free 7-Day Trial" option in its Pricing section. The trial lasts for 7 days and allows up to 50 API requests, enabling you to evaluate the API before subscribing to a paid plan.
Zyla API Hub is like a big store for APIs, where you can find thousands of them all in one place. We also offer dedicated support and real-time monitoring of all APIs. Once you sign up, you can pick and choose which APIs you want to use. Just remember, each API needs its own subscription. But if you subscribe to multiple ones, you'll use the same key for all of them, making things easier for you.
You can monitor your API usage through the response headers included with every request:
x-zyla-api-calls-monthly-used: Shows the total number of API requests you have used during the current billing period.
x-zyla-api-calls-monthly-remaining: Shows the number of API requests you have remaining for the current billing period.
Yes, you can cancel your subscription at any time. Simply go to the Pricing section of the API you're subscribed to and click the "Unsubscribe" button.
Please note that upgrades, downgrades, and cancellations take effect immediately. Once your subscription is canceled, access to the service will end immediately, regardless of any remaining API calls in your quota.
Please have a look at our Refund Policy: https://zylalabs.com/terms#refund