跳转到主要内容
GET
Targeting X/Twitter? Starting March 31, 2026, all X operations require your own API credentials. After linking X via OAuth, include these 2 headers in your request:

X-Twitter-OAuth1-Api-Key — Your API Key (Consumer Key)
X-Twitter-OAuth1-Api-Secret — Your API Key Secret (Consumer Secret)

One-time setup per Ayrshare account. You create one X Developer App and reuse the same API Key and Secret across every sub-profile / end-user you link. You do not create a new app per customer.

Not linked yet? See the full setup guide to connect your X account.

Your keys are never logged or stored by Ayrshare.
通过提供底层 Social post ID,获取并非通过 Ayrshare 发布的帖子的历史记录。Social Post ID 在 post 接口响应的 postIds 字段中返回,或来自获取全部历史接口的 id 字段,或来自帖子 URL 中的 ID,例如这条 Facebook 帖子。 已关联的账户必须是该帖子的所有者,才能获取其历史记录。 支持的平台:Facebook、Instagram、LinkedIn、Threads、TikTok、Twitter 和 YouTube,对应的 platform 取值为:facebook、instagram、linkedin、threads、tiktok、twitter、youtube。

请求头参数

路径参数

string
必填
帖子的 Social Post ID。
Facebook Social Post ID 104923907983682_108329000309742 的另一个示例 请参见 /post 接口 的 Response 200。

查询参数

boolean
必填
始终为 true
string
必填
取值:facebook、instagram、linkedin、threads、tiktok、twitter、youtube