Chuyển đến nội dung chính
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.
Truy xuất lịch sử cho các bài đăng không bắt nguồn từ Ayrshare bằng cách cung cấp Social post ID cấp thấp. Social Post ID này được trả về trong trường postIds của endpoint post hoặc trường id từ endpoint get all history hoặc ID từ URL của một bài đăng, chẳng hạn như từ bài đăng Facebook này. Tài khoản được liên kết phải là chủ sở hữu của bài đăng để có thể truy xuất lịch sử. Các nền tảng được hỗ trợ: Facebook, Instagram, LinkedIn, Threads, TikTok, Twitter và YouTube với các giá trị platform sau: facebook, instagram, linkedin, threads, tiktok, twitter, youtube.

Header Parameters

Path Parameters

string
bắt buộc
Social Post ID của bài đăng.
Vui lòng xem endpoint /post Response 200 để có thêm một ví dụ về Facebook Social Post ID 104923907983682_108329000309742

Query Parameters

boolean
bắt buộc
Luôn bằng true
string
bắt buộc
Giá trị: facebook, instagram, linkedin, threads, tiktok, twitter, youtube