跳轉到主要內容
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 中回傳,例如這則 Facebook 貼文。 已連結的帳號必須是該貼文的擁有者,才能擷取其歷史記錄。 支援的平台:Facebook、Instagram、LinkedIn、Threads、TikTok、Twitter 與 YouTube,對應的 platform 值為:facebook、instagram、linkedin、threads、tiktok、twitter、youtube。

標頭參數

路徑參數

string
必填
貼文的 Social Post ID。
另請參閱 /post 端點 Response 200 中 Facebook Social Post ID 104923907983682_108329000309742 的另一個範例。

查詢參數

boolean
必填
必須固定為 true
string
必填
值:facebook、instagram、linkedin、threads、tiktok、twitter、youtube