{
"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'
注册后,每个开发者都会被分配一个个人 API 访问密钥,这是一个唯一的字母和数字组合,用于访问我们的 API 端点。要使用 大象 API 进行身份验证,只需在 Authorization 标头中包含您的 bearer token。
| 标头 | 描述 |
|---|---|
授权
|
必需
应为 Bearer access_key. 订阅后,请查看上方的"您的 API 访问密钥"。
|
通过官方开放API按标签、账户或关键字发布的Mastodon帖子、流行标签和链接,以及多个实例之间的回复 清晰的JSON用于对联邦宇宙的品牌和关键字监控
通过官方开放API获取Mastodon的帖子,包括按标签、账户或关键字分类的帖子、趋势标签和链接,以及跨多个实例的回复。用于监控联邦宇宙的品牌和关键字的干净JSON
每个请求最多100个结果。通过maxItems参数设置
每个请求从公共源收集实时数据 相同的请求可以从缓存中提供最长6小时
列表参数接受多个用逗号分隔的值,例如:伦敦,巴黎
该端点接受这些查询参数,都是可选的:实例、标签、账户、关键词、语言、最大项、包含趋势、包含本地时间线、包含回复、每个帖子最大回复。实例:要读取的Mastodon服务器。标签帖子从每个实例的公共时间线读取,因此更多的实例提供更广泛的覆盖。没有服务器的账户使用第一个实例。多个值:以逗号分隔。标签:要读取的标签,可以带或不带#符号,例如python或opensource。每个标签在上述每个实例上读取。多个值:以逗号分隔。账户:您想要的公共帖子账户,作为个人资料URL。
Mastodon API根据指定的标签、账户或关键词返回帖子、热门标签和回复。每个回应包括帖子文本、作者信息和互动指标
响应中的关键字段包括“id”(帖子标识符)“url”(帖子链接)“text”(帖子内容)“createdAt”(时间戳)“author”(作者账户)以及互动计数(回复 转发 收藏)
响应数据以JSON格式结构化,包含“计数”和“项”数组。每个项表示一个帖子,具有详细属性,便于解析和利用
该端点提供关于单个帖子的资讯 流行标签和回复 用户可以根据特定标准检索数据 例如标签或账户 以增强内容发现
用户可以通过使用可选参数如“标签”、“账户”和“语言”来自定义请求。这允许进行量身定制的搜索,例如按特定主题或语言过滤帖子
接受的参数值包括以逗号分隔的“标签”和“账户”列表。例如,您可以请求诸如“python,opensource”或“user1,user2”的标签帖子
用户可以分析参与度指标(回复 转发 收藏)以评估帖子受欢迎程度 作者信息可用于追踪影响者而标签则有助于监测趋势
典型的使用案例包括品牌监测 情感分析 和在联邦宇宙中的趋势跟踪 企业和研究人员可以利用这些数据深入了解公共讨论和参与