Retrieve history for a post that did not originate via Ayrshare.
GET
/
history
/
:socialId
curl\-H"Authorization: Bearer API_KEY"\-X GET https://api.ayrshare.com/api/history/104923907983682_108329000309742?searchPlatformId=true&platform=facebook
[{"commentsCount":0,"created":"2024-01-25T23:01:23Z","from":{"name":"Ayrshare","id":"18930271191"},"id":"18930271191_39392923","mediaUrls":[{"media":{"image":{"height":720,"src":"https://scontent-lga3-2.xx.fbcdn.net/v/...","width":405},"source":"https://video-lga3-2.xx.fbcdn.net/o1/..."},"title":"🔥 Sneaker time!"}],"messageTags":[{"id":"434786466522","name":"#sneakerswap365","offset":242,"length":15}],"post":"🔥 Sneaker Time for all!","postUrl":"https://www.facebook.com/reel/72681340799/","lastUpdated":"2024-01-25T23:29:58.014Z","nextUpdate":"2024-01-25T23:40:58.014Z"}]
Available on Business, Enterprise plans.
Retrieve history for posts that did not originate via Ayrshare by providing the low-level Social post ID. This Social Post ID is returned in the postIds field of the post endpoint or the id field from the get all history endpoint or the ID from a post URL, such as from this Facebook post.
The linked account must be the owner of the post to retrieve the history.
Supported platforms: Facebook, Instagram, LinkedIn, TikTok, Twitter, and YouTube with the following platform values: facebook, instagram, linkedin, tiktok, twitter, youtube.
curl\-H"Authorization: Bearer API_KEY"\-X GET https://api.ayrshare.com/api/history/104923907983682_108329000309742?searchPlatformId=true&platform=facebook
[{"commentsCount":0,"created":"2024-01-25T23:01:23Z","from":{"name":"Ayrshare","id":"18930271191"},"id":"18930271191_39392923","mediaUrls":[{"media":{"image":{"height":720,"src":"https://scontent-lga3-2.xx.fbcdn.net/v/...","width":405},"source":"https://video-lga3-2.xx.fbcdn.net/o1/..."},"title":"🔥 Sneaker time!"}],"messageTags":[{"id":"434786466522","name":"#sneakerswap365","offset":242,"length":15}],"post":"🔥 Sneaker Time for all!","postUrl":"https://www.facebook.com/reel/72681340799/","lastUpdated":"2024-01-25T23:29:58.014Z","nextUpdate":"2024-01-25T23:40:58.014Z"}]
curl\-H"Authorization: Bearer API_KEY"\-X GET https://api.ayrshare.com/api/history/104923907983682_108329000309742?searchPlatformId=true&platform=facebook
[{"commentsCount":0,"created":"2024-01-25T23:01:23Z","from":{"name":"Ayrshare","id":"18930271191"},"id":"18930271191_39392923","mediaUrls":[{"media":{"image":{"height":720,"src":"https://scontent-lga3-2.xx.fbcdn.net/v/...","width":405},"source":"https://video-lga3-2.xx.fbcdn.net/o1/..."},"title":"🔥 Sneaker time!"}],"messageTags":[{"id":"434786466522","name":"#sneakerswap365","offset":242,"length":15}],"post":"🔥 Sneaker Time for all!","postUrl":"https://www.facebook.com/reel/72681340799/","lastUpdated":"2024-01-25T23:29:58.014Z","nextUpdate":"2024-01-25T23:40:58.014Z"}]