{ "status": "success", "commentID": "IUDSCfdYfFkw_dWhW9PLI", // Ayrshare Comment ID. Used for replying to a comment. "id": "Ut1fWU6XkqlMayHGnJZ", // Ayrshare Post ID "bluesky": { "status": "success", "commentId": "at://did:plc:62musrcyanhro2lydyhlw7ci/app.bsky.feed.post/3lf4b4j3dqy2i", "cid": "bafyreiaoivcafelkpzhbbjco23pguyqmy7wucuvfxaifgj34qoyp7nrhhy", "comment": "Nice one this is", "platform": "bluesky", "postUrl": "https://bsky.app/profile/ayrshare.com/post/3lf4b4j3dqy2i" }, "facebook": { "status": "success", "commentId": "358482752285927_363474831785719", // Facebook Social Comment ID "comment": "The best comment ever!", "platform": "facebook" }, "instagram": { "status": "success", "commentId": "17060111860440276", // Instagram Social Comment ID "comment": "The best comment ever!", "platform": "instagram" }, "linkedin": { "status": "success", "commentId": "urn:li:comment:(urn:li:activity:7141202289402236928,7141205176207503360)", // LinkedIn Social Comment ID "comment": "Someone's sitting in the shade today because someone planted a tree a long time ago. - Warren Buffett", "commentUrn": "urn:li:comment:(urn:li:activity:7141202289402236928,7141205176207503360)", // Social comment Id from LinkedIn "platform": "linkedin" }, "tiktok": { "status": "success", "commentId": "7260964914699764524", // TikTok Social Comment ID "comment": "The best comment ever!", "platform": "tiktok", "videoId": "7260964048362310959" }, "twitter": { "status": "success", "commentId": "1525632403262101648", // Twitter Social Comment ID "comment": "The best comment ever!", "postUrl": "https://twitter.com/ayrshare/status/1525632403262101648" }, "youtube": { "status": "success", "commentId": "UgzIEZsDQKXgHsEnwTR4AaABAa", // YouTube Social Comment ID "comment": "The best comment ever!", "platform": "youtube" },}
{ "commentId": "5GizKtM9TFRFFWNDgBZ", "twitter": { "status": "success", "commentId": "1842266484032016", "comment": "Having a meeting on this", "platform": "twitter", "postUrl": "https://twitter.com/ayrshare/status/18422664840320" }, "action": "post", "status": "error", "code": 156, "message": "Instagram is not linked. Please confirm the linkage on the Social Accounts page in the dashboard.", "platform": "instagram", "id": "1w3QI6bU7KE9XyxrN0u", // Ayrshare Post ID "errors": [ { "action": "post", "status": "error", "code": 156, "message": "Facebook is not linked. Please confirm the linkage on the Social Accounts page in the dashboard.", "platform": "facebook" }, { "action": "post", "status": "error", "code": 156, "message": "Instagram is not linked. Please confirm the linkage on the Social Accounts page in the dashboard.", "platform": "instagram" } ]}
{ "twitter": { "action": "post", "status": "error", "code": 134, "message": "The social network detected duplicate content and blocked this post. Please change the content and try again.", "post": "Having a meeting on this", "detail": "You are not allowed to create a Tweet with duplicate content." }, "code": 134, "status": "error", "id": "1w3QI6bU7KE9XyxrN", // Ayrshare Post ID "errors": [ { "action": "post", "status": "error", "code": 134, "message": "The social network detected duplicate content and blocked this post. Please change the content and try again.", "post": "Having a meeting on this", "detail": "You are not allowed to create a Tweet with duplicate content.", "id": "1w3QI6bU7KE9XyxrN", "platform": "twitter" } ]}
{ "status": "success", "commentID": "IUDSCfdYfFkw_dWhW9PLI", // Ayrshare Comment ID. Used for replying to a comment. "id": "Ut1fWU6XkqlMayHGnJZ", // Ayrshare Post ID "bluesky": { "status": "success", "commentId": "at://did:plc:62musrcyanhro2lydyhlw7ci/app.bsky.feed.post/3lf4b4j3dqy2i", "cid": "bafyreiaoivcafelkpzhbbjco23pguyqmy7wucuvfxaifgj34qoyp7nrhhy", "comment": "Nice one this is", "platform": "bluesky", "postUrl": "https://bsky.app/profile/ayrshare.com/post/3lf4b4j3dqy2i" }, "facebook": { "status": "success", "commentId": "358482752285927_363474831785719", // Facebook Social Comment ID "comment": "The best comment ever!", "platform": "facebook" }, "instagram": { "status": "success", "commentId": "17060111860440276", // Instagram Social Comment ID "comment": "The best comment ever!", "platform": "instagram" }, "linkedin": { "status": "success", "commentId": "urn:li:comment:(urn:li:activity:7141202289402236928,7141205176207503360)", // LinkedIn Social Comment ID "comment": "Someone's sitting in the shade today because someone planted a tree a long time ago. - Warren Buffett", "commentUrn": "urn:li:comment:(urn:li:activity:7141202289402236928,7141205176207503360)", // Social comment Id from LinkedIn "platform": "linkedin" }, "tiktok": { "status": "success", "commentId": "7260964914699764524", // TikTok Social Comment ID "comment": "The best comment ever!", "platform": "tiktok", "videoId": "7260964048362310959" }, "twitter": { "status": "success", "commentId": "1525632403262101648", // Twitter Social Comment ID "comment": "The best comment ever!", "postUrl": "https://twitter.com/ayrshare/status/1525632403262101648" }, "youtube": { "status": "success", "commentId": "UgzIEZsDQKXgHsEnwTR4AaABAa", // YouTube Social Comment ID "comment": "The best comment ever!", "platform": "youtube" },}
{ "commentId": "5GizKtM9TFRFFWNDgBZ", "twitter": { "status": "success", "commentId": "1842266484032016", "comment": "Having a meeting on this", "platform": "twitter", "postUrl": "https://twitter.com/ayrshare/status/18422664840320" }, "action": "post", "status": "error", "code": 156, "message": "Instagram is not linked. Please confirm the linkage on the Social Accounts page in the dashboard.", "platform": "instagram", "id": "1w3QI6bU7KE9XyxrN0u", // Ayrshare Post ID "errors": [ { "action": "post", "status": "error", "code": 156, "message": "Facebook is not linked. Please confirm the linkage on the Social Accounts page in the dashboard.", "platform": "facebook" }, { "action": "post", "status": "error", "code": 156, "message": "Instagram is not linked. Please confirm the linkage on the Social Accounts page in the dashboard.", "platform": "instagram" } ]}
{ "twitter": { "action": "post", "status": "error", "code": 134, "message": "The social network detected duplicate content and blocked this post. Please change the content and try again.", "post": "Having a meeting on this", "detail": "You are not allowed to create a Tweet with duplicate content." }, "code": 134, "status": "error", "id": "1w3QI6bU7KE9XyxrN", // Ayrshare Post ID "errors": [ { "action": "post", "status": "error", "code": 134, "message": "The social network detected duplicate content and blocked this post. Please change the content and try again.", "post": "Having a meeting on this", "detail": "You are not allowed to create a Tweet with duplicate content.", "id": "1w3QI6bU7KE9XyxrN", "platform": "twitter" } ]}
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.
Comments APIを使用して、Ayrshare Post ID(Ayrshare経由で送信された投稿)またはSocial Post ID(Ayrshare外で送信された投稿)を持つ投稿にコメントを追加します。
Facebook、Instagram、TikTok では、あなた自身が接続したアカウントまたはページの投稿(たとえば Instagram アプリで直接公開した投稿)にのみコメントできます。これらのプラットフォームでは、Social Post ID を使用しても、他ユーザーの投稿にはコメントできません。LinkedIn と X では、Ayrshare は投稿の所有者を確認しません。他ユーザーの投稿へのコメントが成功するかどうかは、そのネットワークのルールと投稿の返信設定によって決まります。他ユーザーのソーシャル投稿へのコメント を参照してください。
/postエンドポイントから取得したAyrshare Post IDまたはSocial Post ID。
string
必須
投稿に追加する新しいコメントのテキスト。
boolean
デフォルト:false
ソーシャルネットワークからの投稿idであるSocial Post IDを使用してコメントを投稿する場合は、trueに設定します。
array
必須
コメントを追加するプラットフォームを指定します。Ayrshare Post IDを使用する場合、サポートされるプラットフォームは以下のとおりです: bluesky、facebook、instagram、linkedin、reddit、tiktok、twitter、youtube。プラットフォームが指定されていない場合、コメントはコメントをサポートするすべての接続済みプラットフォームに公開されます。
{ "status": "success", "commentID": "IUDSCfdYfFkw_dWhW9PLI", // Ayrshare Comment ID. Used for replying to a comment. "id": "Ut1fWU6XkqlMayHGnJZ", // Ayrshare Post ID "bluesky": { "status": "success", "commentId": "at://did:plc:62musrcyanhro2lydyhlw7ci/app.bsky.feed.post/3lf4b4j3dqy2i", "cid": "bafyreiaoivcafelkpzhbbjco23pguyqmy7wucuvfxaifgj34qoyp7nrhhy", "comment": "Nice one this is", "platform": "bluesky", "postUrl": "https://bsky.app/profile/ayrshare.com/post/3lf4b4j3dqy2i" }, "facebook": { "status": "success", "commentId": "358482752285927_363474831785719", // Facebook Social Comment ID "comment": "The best comment ever!", "platform": "facebook" }, "instagram": { "status": "success", "commentId": "17060111860440276", // Instagram Social Comment ID "comment": "The best comment ever!", "platform": "instagram" }, "linkedin": { "status": "success", "commentId": "urn:li:comment:(urn:li:activity:7141202289402236928,7141205176207503360)", // LinkedIn Social Comment ID "comment": "Someone's sitting in the shade today because someone planted a tree a long time ago. - Warren Buffett", "commentUrn": "urn:li:comment:(urn:li:activity:7141202289402236928,7141205176207503360)", // Social comment Id from LinkedIn "platform": "linkedin" }, "tiktok": { "status": "success", "commentId": "7260964914699764524", // TikTok Social Comment ID "comment": "The best comment ever!", "platform": "tiktok", "videoId": "7260964048362310959" }, "twitter": { "status": "success", "commentId": "1525632403262101648", // Twitter Social Comment ID "comment": "The best comment ever!", "postUrl": "https://twitter.com/ayrshare/status/1525632403262101648" }, "youtube": { "status": "success", "commentId": "UgzIEZsDQKXgHsEnwTR4AaABAa", // YouTube Social Comment ID "comment": "The best comment ever!", "platform": "youtube" },}
{ "commentId": "5GizKtM9TFRFFWNDgBZ", "twitter": { "status": "success", "commentId": "1842266484032016", "comment": "Having a meeting on this", "platform": "twitter", "postUrl": "https://twitter.com/ayrshare/status/18422664840320" }, "action": "post", "status": "error", "code": 156, "message": "Instagram is not linked. Please confirm the linkage on the Social Accounts page in the dashboard.", "platform": "instagram", "id": "1w3QI6bU7KE9XyxrN0u", // Ayrshare Post ID "errors": [ { "action": "post", "status": "error", "code": 156, "message": "Facebook is not linked. Please confirm the linkage on the Social Accounts page in the dashboard.", "platform": "facebook" }, { "action": "post", "status": "error", "code": 156, "message": "Instagram is not linked. Please confirm the linkage on the Social Accounts page in the dashboard.", "platform": "instagram" } ]}
{ "twitter": { "action": "post", "status": "error", "code": 134, "message": "The social network detected duplicate content and blocked this post. Please change the content and try again.", "post": "Having a meeting on this", "detail": "You are not allowed to create a Tweet with duplicate content." }, "code": 134, "status": "error", "id": "1w3QI6bU7KE9XyxrN", // Ayrshare Post ID "errors": [ { "action": "post", "status": "error", "code": 134, "message": "The social network detected duplicate content and blocked this post. Please change the content and try again.", "post": "Having a meeting on this", "detail": "You are not allowed to create a Tweet with duplicate content.", "id": "1w3QI6bU7KE9XyxrN", "platform": "twitter" } ]}