Lobsters

Lobsters API

读 Lobsters 技术链接社区的 story:首页热门、最新、按标签分页的列表,单个 story 的得分、评论数、标签和外链,story 下的全部评论(带层级),以及用户的公开资料。

请求发到 POST https://api.everyinfra.com/api/v1/social,platform 填 lobsters,action 填下方列表里的能力名,例如 trending。只要一把 API Key,不用 Lobsters 账号和 Cookie;也能当 MCP 工具接进 Claude、Cursor。可以先领 $1 免费额度试用。

  • 6 个能力
  • $0.79 / 千次
  • 失败和空结果都不收费

平台运行状态

24h 健康值
正常
正常

30 天趋势

Lobsters 能力清单

能力做什么单价空白行均为 $0.79 / 千次24 小时运行状态 · 全部正常
首页热门trending用 trending 按首页顺序读 Lobsters 首页的 story,每页 25 条。正常
最新帖子latest_posts用 latest_posts 读 Lobsters 最新页的 story,每页 25 条,字段和首页一样。正常
标签下的帖子tag_posts用 tag_posts 按标签名列 Lobsters 的 story,每页 25 条。正常
内容详情post_detail用 post_detail 按 story 链接或 short_id 读一个 story,回一个对象。正常
评论comments用 comments 一次读一个 story 下的全部评论,按页面顺序,不翻页。正常
主页或对象详情profile用 profile 按用户名或主页链接读 Lobsters 用户的公开资料,回一个对象。正常

选 Lobsters 数据接口前常问的 5 件事

调用时要不要提供 Lobsters 账号或 Cookie?

不用,请求头带 Authorization: Bearer 和 API Key 就能调,请求体写 platform、action 和能力参数。不用扫码、维护登录状态,也不用开浏览器。

怎么收费?失败了收不收钱?有免费额度吗?

按调用次数计费,每千次 $0.79 起。失败、空结果、参数错误和鉴权失败都不收费。给 GitHub 上 everyinfra-agent-plugins 和 seo-skills 点星,可在控制台「余额与充值」领 $1 赠送额度,24 小⁠时内有效,不用信用卡。

能把 Lobsters 接口接进 Claude、Cursor 吗?

能,远程 MCP 地址是 https://api.everyinfra.com/mcp,请求头加 Authorization: Bearer 和 API Key,不用装本地程序。Claude、Cursor、ChatGPT、Claude Code 配置见 https://everyinfra.com/mcp-server。

用 Lobsters 数据要注意哪些合规问题?

EveryInfra 服务条款要求你自行确保数据用法符合适用法律和相关平台条款,禁止用于违法、侵犯隐私或知识产权,或批量抓取用于骚扰、欺诈等恶意用途。用到昵称、头像等个人信息时,只留业务用得上的字段。

可以拿到 Lobsters 的哪些数据?

Lobsters 有 6 个能力:首页热门、最新帖子、标签下的帖子、内容详情、评论、主页或对象详情。每个能力的参数和返回字段见本页接口说明。

请求填写示例

trending 不用填参数;翻页把 next_page_token 原样作 page_token 传回。

以下为填写格式示意,并非成功调用记录。请替换 API Key 和尖括号中的目标,确认可选筛选项后再调用;示例不保证目标当前有数据。

lobsters_trending.sh
curl -X POST https://api.everyinfra.com/api/v1/social \
  -H "Authorization: Bearer $EVERYINFRA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"platform":"lobsters","action":"trending","params":{}}'

记录字段预览(非真实响应)

仅展示 trending 的记录字段,不包含外层响应、计费或任务状态。null 只作展示占位,不表示字段类型或实际空值;完整响应须以接口文档与实际调用为准。

fields.preview.json
{
  "id": null,
  "url": null,
  "title": null,
  "text": null,
  "upvote_count": null,
  "comment_count": null,
  "author_username": null,
  "tags": null,
  "links": null,
  "posted_at": null,
  "rank": null,
  "collected_at": null,
  "platform": null
}

常见用例

以下是基于现有接口的接入思路,不是开箱即用的分析或告警功能。字段以实际返回为准,缺失值不按零处理。

Lobsters API 如何读首页热门 story?

用 trending 按首页顺序读 Lobsters 首页的 story,每页 25 条。

查看 trending 的 page_token 参数
  • 不用填参数;翻页把 next_page_token 原样作 page_token 传回,每页算一次调用。
  • 每条有标题、讨论页 url、外链 links、净得分 upvote_count(赞减踩)、评论数、标签、作者和时间。

Lobsters API 如何读最新页的 story?

用 latest_posts 读 Lobsters 最新页的 story,每页 25 条,字段和首页一样。

查看 latest_posts 的 page_token 参数
  • 不用填参数;翻页把 next_page_token 原样作 page_token 传回,每页算一次调用。
  • text 只有 story 自带文字时才有,纯链接 story 没有;外链在 links 里。

Lobsters API 如何按标签列 story?

用 tag_posts 按标签名列 Lobsters 的 story,每页 25 条。

查看 tag_posts 的 tag 参数
  • tag 填标签名,如 programming、rust,就是标签页链接 lobste.rs/t/<标签名> 里的那一段,大小写都收。
  • 每条的 tags 是这个 story 带的标签,不只是查的那一个;翻页把 next_page_token 原样作 page_token 传回。

Lobsters API 如何读一个 story 的得分和外链?

用 post_detail 按 story 链接或 short_id 读一个 story,回一个对象。

查看 post_detail 的 url 参数
  • url 填 story 链接,如 https://lobste.rs/s/5kmyma,后面带不带标题那一段都收,也可以只给 short_id 5kmyma。
  • upvote_count 是净得分,平台不分开给赞和踩;评论用 comments 读。

Lobsters API 如何一次读完一个 story 的评论?

用 comments 一次读一个 story 下的全部评论,按页面顺序,不翻页。

查看 comments 的 url 参数
  • url 填 story 链接或 short_id。
  • text 是纯文本,text_html 保留格式;parent_id 是被回复的那条评论,回复别的评论时才有;post_comment_count 是这个 story 的评论数。

Lobsters API 如何读一个用户的公开资料?

用 profile 按用户名或主页链接读 Lobsters 用户的公开资料,回一个对象。

查看 profile 的 username 参数
  • username 填用户名,如 jcs,也收 https://lobste.rs/u/jcs 这样的主页链接。
  • 有用户名、主页链接、显示名和头像;简介 bio、注册时间 joined_at、发帖数 post_count 只有主页上显示时才有。

Lobsters 每个接口分别做什么

下面逐个解释 action、必填参数、可选筛选项和允许值。 请求都发到 POST /api/v1/social, 切换 action 时,也要按对应接口调整参数。 同名参数在不同平台、不同接口中可能指向不同对象;请以该条说明中的格式和适用范围为准。

下方只展示平台官方资料,用于核对对象与术语,不表示平台对 EveryInfra 的授权或背书。 本接口接受的参数、字段与能力边界以各条说明为准,不与平台官方 API 直接等同。

所有能力都是同步调用。

能力必填参数可选参数单次条数单价空白行均为 $0.79 / 千次返回字段
trending—page_token每页 25 条id · url · title · text · upvote_count · comment_count · author_username · tags · links · posted_at · rank · collected_at · platform
latest_posts—page_token每页 25 条id · url · title · text · upvote_count · comment_count · author_username · tags · links · posted_at · rank · collected_at · platform
tag_poststagpage_token每页 25 条id · url · title · text · upvote_count · comment_count · author_username · tags · links · posted_at · rank · collected_at · platform
post_detailurl——id · url · title · text · upvote_count · comment_count · author_username · tags · links · posted_at · collected_at · platform
commentsurllimit—id · post_id · text · text_html · posted_at · author_username · upvote_count · depth · parent_id · rank · post_comment_count · collected_at · platform
profileusername——username · url · display_name · avatar_url · bio · joined_at · post_count · collected_at · platform

怎么调用 Lobsters 最新帖子 API?

latest_posts

使用 platform="lobsters"、action="latest_posts" 调用“最新帖子”能力;返回列表,每次一页、固定 25 条,更多用 next_page_token 翻页,主要包含 id、url、title、text、upvote_count、comment_count 等 13 个字段。

查看完整接口文档:参数、代码示例、响应样例与健康状态

Lobsters latest_posts 的参数分别是什么意思?

page_token可选
翻页令牌:把上一次响应里的 next_page_token 原样传回,拿下一页,其他参数和第一页一样;不传从第一页开始。每页算一次调用;没有 next_page_token 就是最后一页。每页最多 25 条,按最新页的顺序。
Lobsters 返回字段与含义(8)
id
编号:story 的 short_id(如 5kmyma,trending、latest_posts、tag_posts、post_detail),或评论的 short_id(comments)。
url
Lobsters 上的链接:story 的讨论页(trending、latest_posts、tag_posts、post_detail),或用户主页(profile)。
text
正文:story 自带的文字(没有自带文字的链接 story 没有这个字段),或评论的纯文本(comments)。
links
story 提交的外部链接列表(trending、latest_posts、tag_posts、post_detail)。
upvote_count
净得分:赞减踩(story 和评论都有);平台不分开给赞和踩。
comment_count
story 的评论数(trending、latest_posts、tag_posts、post_detail)。
rank
这一行在这一次结果里的位置,从 1 开始(trending、latest_posts、tag_posts、comments)。
collected_at
这条数据的抓取时刻(ISO 8601,UTC)。

怎么调用 Lobsters 标签下的帖子 API?

tag_posts

使用 platform="lobsters"、action="tag_posts" 调用“标签下的帖子”能力;返回列表,每次一页、固定 25 条,更多用 next_page_token 翻页,主要包含 id、url、title、text、upvote_count、comment_count 等 13 个字段。

查看完整接口文档:参数、代码示例、响应样例与健康状态

tag 填标签名,如 programming、rust。

JSON
{
  "platform": "lobsters",
  "action": "tag_posts",
  "params": {
    "tag": "programming"
  }
}

Lobsters tag_posts 的参数分别是什么意思?

tag必填
Lobsters 标签名,如 programming、rust,就是标签页链接 https://lobste.rs/t/<标签名> 里的那一段;大小写都收。

Lobsters 的 About 页说明,提交的链接和 story 必须由提交者从预定义的标签表里打标签,每个标签有自己的页面和订阅源(如 lobste.rs/t/programming),所有用户默认看到全部 story。这里支撑 tag 填标签名、按标签列 story;本接口的参数由 EveryInfra 定义,该来源不证明结果。官方来源:Lobsters About:Tags来源核查:

page_token可选
翻页令牌:把上一次响应里的 next_page_token 原样传回,拿下一页,其他参数和第一页一样;不传从第一页开始。每页算一次调用;没有 next_page_token 就是最后一页。每页最多 25 条,按标签页的顺序。
Lobsters 返回字段与含义(8)
id
编号:story 的 short_id(如 5kmyma,trending、latest_posts、tag_posts、post_detail),或评论的 short_id(comments)。
url
Lobsters 上的链接:story 的讨论页(trending、latest_posts、tag_posts、post_detail),或用户主页(profile)。
text
正文:story 自带的文字(没有自带文字的链接 story 没有这个字段),或评论的纯文本(comments)。
links
story 提交的外部链接列表(trending、latest_posts、tag_posts、post_detail)。
upvote_count
净得分:赞减踩(story 和评论都有);平台不分开给赞和踩。
comment_count
story 的评论数(trending、latest_posts、tag_posts、post_detail)。
rank
这一行在这一次结果里的位置,从 1 开始(trending、latest_posts、tag_posts、comments)。
collected_at
这条数据的抓取时刻(ISO 8601,UTC)。

怎么调用 Lobsters 内容详情 API?

post_detail

使用 platform="lobsters"、action="post_detail" 调用“内容详情”能力;返回单个对象,主要包含 id、url、title、text、upvote_count、comment_count 等 12 个字段。

查看完整接口文档:参数、代码示例、响应样例与健康状态

url 填 story 链接,也可以只给 short_id。

JSON
{
  "platform": "lobsters",
  "action": "post_detail",
  "params": {
    "url": "https://lobste.rs/s/5kmyma"
  }
}

Lobsters post_detail 的参数分别是什么意思?

url必填
Lobsters story 链接,如 https://lobste.rs/s/5kmyma,后面带不带标题那一段都收;也可以只给 short_id 5kmyma。认不出的写法在扣费前被拒。
Lobsters 返回字段与含义(7)
id
编号:story 的 short_id(如 5kmyma,trending、latest_posts、tag_posts、post_detail),或评论的 short_id(comments)。
url
Lobsters 上的链接:story 的讨论页(trending、latest_posts、tag_posts、post_detail),或用户主页(profile)。
text
正文:story 自带的文字(没有自带文字的链接 story 没有这个字段),或评论的纯文本(comments)。
links
story 提交的外部链接列表(trending、latest_posts、tag_posts、post_detail)。
upvote_count
净得分:赞减踩(story 和评论都有);平台不分开给赞和踩。
comment_count
story 的评论数(trending、latest_posts、tag_posts、post_detail)。
collected_at
这条数据的抓取时刻(ISO 8601,UTC)。

怎么调用 Lobsters 评论 API?

comments

使用 platform="lobsters"、action="comments" 调用“评论”能力;返回列表,主要包含 id、post_id、text、text_html、posted_at、author_username 等 13 个字段。

查看完整接口文档:参数、代码示例、响应样例与健康状态

url 填 story 链接;一次给全部评论,不翻页。

JSON
{
  "platform": "lobsters",
  "action": "comments",
  "params": {
    "url": "https://lobste.rs/s/5kmyma"
  }
}

Lobsters 的 About 页「Ranking」一节说明,站上 story 和评论的排序都来自用户活动,所有用户票数相同,版主不能调高或调低排序,各标签的热度系数公开。这里支撑首页 story 和评论的先后由用户投票决定;本接口的参数由 EveryInfra 定义,该来源不证明结果。官方来源:Lobsters About:Ranking来源核查:

Lobsters comments 的参数分别是什么意思?

url必填
Lobsters story 链接,如 https://lobste.rs/s/5kmyma,后面带不带标题那一段都收;也可以只给 short_id 5kmyma。认不出的写法在扣费前被拒。
limit可选
正整数(≥1),本次最多返回的条数:不传则返回本次取到的全部结果,传了只把结果截短到这个条数以内,不会多取,也不会变多。扣费不受 limit 影响。
Lobsters 返回字段与含义(10)
id
编号:story 的 short_id(如 5kmyma,trending、latest_posts、tag_posts、post_detail),或评论的 short_id(comments)。
text
正文:story 自带的文字(没有自带文字的链接 story 没有这个字段),或评论的纯文本(comments)。
upvote_count
净得分:赞减踩(story 和评论都有);平台不分开给赞和踩。
rank
这一行在这一次结果里的位置,从 1 开始(trending、latest_posts、tag_posts、comments)。
collected_at
这条数据的抓取时刻(ISO 8601,UTC)。
text_html
评论带格式的 HTML 原文(comments)。
post_id
评论所在 story 的 short_id(comments)。
depth
评论的嵌套层级(comments),照页面给的数;谁回复谁以 parent_id 为准。
parent_id
被回复的那条评论的 short_id(comments),回复别的评论时才有。
post_comment_count
这个 story 的评论数(comments),来自这一次的汇总。

怎么调用 Lobsters 主页或对象详情 API?

profile

使用 platform="lobsters"、action="profile" 调用“主页或对象详情”能力;返回单个对象,主要包含 username、url、display_name、avatar_url、bio、joined_at 等 9 个字段。

查看完整接口文档:参数、代码示例、响应样例与健康状态

username 填用户名或主页链接。

JSON
{
  "platform": "lobsters",
  "action": "profile",
  "params": {
    "username": "jcs"
  }
}

Lobsters profile 的参数分别是什么意思?

username必填
Lobsters 用户名,如 jcs,也收 https://lobste.rs/u/jcs 这样的主页链接;认不出的写法在扣费前被拒。
Lobsters 返回字段与含义(4)
url
Lobsters 上的链接:story 的讨论页(trending、latest_posts、tag_posts、post_detail),或用户主页(profile)。
collected_at
这条数据的抓取时刻(ISO 8601,UTC)。
joined_at
注册时间(profile),ISO 8601、UTC;用户没公开时没有。
post_count
发帖数(profile);用户没公开时没有。
Lobsters trending 调用流程一次 Lobsters trending 调用的全过程:向 POST /api/v1/social 发送 platform="lobsters"、action="trending";返回结构化 JSON,含 id、url、title、text、upvote_count 等字段;返回列表,每次一页、固定 25 条,计费 $0.79 / 千次,失败与空结果不计费。1 · 请求POST /api/v1/socialplatform: "lobsters"action: "trending"无必填参数EveryInfra$0.79 / 千次2 · 响应 · 列表idurltitletextupvote_count
一次 Lobsters trending 调用的全过程:向 POST /api/v1/social 发送 platform="lobsters"、action="trending";返回结构化 JSON,含 id、url、title、text、upvote_count 等字段;返回列表,每次一页、固定 25 条,计费 $0.79 / 千次,失败与空结果不计费。

Lobsters 的稀有字段名(当前目录)

这些字段名在当前目录中只出现在不超过 3 个平台,Lobsters 是其中之一。 这是字段命名的分布,不代表其他平台没有同类信息,也不保证每次响应都含这些字段;具体含义和返回条件仍需逐接口核对。

  • upvote_count
  • text_html
  • post_comment_count

返回字段含义

通用字段采用统一命名;切换平台时仍需核对目标格式、字段是否存在、类型、空值与平台特有含义。 机器可读版:/api/v1/social/fields

id
编号:story 的 short_id(如 5kmyma,trending、latest_posts、tag_posts、post_detail),或评论的 short_id(comments)。
url
Lobsters 上的链接:story 的讨论页(trending、latest_posts、tag_posts、post_detail),或用户主页(profile)。
title
标题。平台无标题概念时(如纯文本帖)为 null。
text
正文:story 自带的文字(没有自带文字的链接 story 没有这个字段),或评论的纯文本(comments)。
upvote_count
净得分:赞减踩(story 和评论都有);平台不分开给赞和踩。
comment_count
story 的评论数(trending、latest_posts、tag_posts、post_detail)。
author_username
作者用户名(@handle),通常可用于拼 URL。
tags
标签数组。无标签时为空数组,不是 null。
links
story 提交的外部链接列表(trending、latest_posts、tag_posts、post_detail)。
posted_at
发布时间,ISO 8601 格式、UTC 时区(如 2026-08-07T12:34:56+00:00)。平台只给非标准字符串时原样透传,解析前建议做容错。null 表示平台未公开。
rank
这一行在这一次结果里的位置,从 1 开始(trending、latest_posts、tag_posts、comments)。
collected_at
这条数据的抓取时刻(ISO 8601,UTC)。
platform
数据来源平台标识,与请求里的 platform 一致(如 xiaohongshu、tiktok)。
post_id
评论所在 story 的 short_id(comments)。
text_html
评论带格式的 HTML 原文(comments)。
depth
评论的嵌套层级(comments),照页面给的数;谁回复谁以 parent_id 为准。
parent_id
被回复的那条评论的 short_id(comments),回复别的评论时才有。
post_comment_count
这个 story 的评论数(comments),来自这一次的汇总。
username
用户名(@handle)。
display_name
显示名,可能与 username 不同。
avatar_url
头像图片链接。部分平台给的是带尺寸参数的 CDN 链接,可能有时效。
bio
个人简介,账号自己填写的文本。可能含换行和 emoji。
joined_at
注册时间(profile),ISO 8601、UTC;用户没公开时没有。
post_count
发帖数(profile);用户没公开时没有。

Lobsters API 常见问题

Lobsters API 怎么调用?

调用 POST /api/v1/social,请求体传 platform="lobsters"、action 和 params。以 trending 为例,必填 无参数,可选 page_token。trending 不用填参数;翻页把 next_page_token 原样作 page_token 传回。 Lobsters 共 6 个 action,鉴权用 Authorization: Bearer <API Key>,同一把 Key 通 113 个平台。

Lobsters API 一次能返回多少条数据?

Lobsters 有 4 个列表接口,包括 trending、latest_posts、tag_posts、comments。其余 2 个接口返回单个对象;对象内仍可能包含数组。数量参数要逐接口区分目标数、页数和记录数,不能将目录数值直接当作保证返回的条数;具体限制见对应参数与用例,不保证完整历史。

Lobsters API 返回哪些字段?

当前目录为 trending 列出 id、url、title、text、upvote_count、comment_count 等 13 个字段名。字段不保证每次齐全,嵌套位置、类型与空值须按各接口说明核对,同名字段不代表语义可互换。

Lobsters API 如何读首页热门 story?

用 trending 按首页顺序读 Lobsters 首页的 story,每页 25 条。 不用填参数;翻页把 next_page_token 原样作 page_token 传回,每页算一次调用。 每条有标题、讨论页 url、外链 links、净得分 upvote_count(赞减踩)、评论数、标签、作者和时间。

Lobsters API 如何读最新页的 story?

用 latest_posts 读 Lobsters 最新页的 story,每页 25 条,字段和首页一样。 不用填参数;翻页把 next_page_token 原样作 page_token 传回,每页算一次调用。 text 只有 story 自带文字时才有,纯链接 story 没有;外链在 links 里。

Lobsters API 如何按标签列 story?

用 tag_posts 按标签名列 Lobsters 的 story,每页 25 条。 tag 填标签名,如 programming、rust,就是标签页链接 lobste.rs/t/<标签名> 里的那一段,大小写都收。 每条的 tags 是这个 story 带的标签,不只是查的那一个;翻页把 next_page_token 原样作 page_token 传回。

Lobsters API 如何读一个 story 的得分和外链?

用 post_detail 按 story 链接或 short_id 读一个 story,回一个对象。 url 填 story 链接,如 https://lobste.rs/s/5kmyma,后面带不带标题那一段都收,也可以只给 short_id 5kmyma。 upvote_count 是净得分,平台不分开给赞和踩;评论用 comments 读。

开始调用 Lobsters API

在 GitHub 给两个仓库点星领 $1 额度,注册后在控制台领取,24 小⁠时内有效,先选一个 Lobsters 接口验证结果。

免费开始

Google Analytics 同意才加载 隐私