Additional Topics
Get All Posts
This guide explains how to retrieve all posts associated with your account through different approaches, whether they originated from Ayrshare or other sources.
Getting All Posts for All User Profiles (Ayrshare origin)
-
Get all user profiles associated with the primary profile:
- Use your Authorization Bearer token in the header
- Call the Get User Profiles endpoint
-
Get profile keys:
- Extract the
refId
from each user profile - Use your internal store to create a list of associated user profile keys
- Extract the
-
Retrieve posts:
- Use the Posts History endpoint
- Get all posts associated with each user profile key
Getting Posts for a Particular Social Network for All Users (Ayrshare and non-Ayrshare origin)
-
Get all user profiles associated with the primary profile:
- Use your Authorization Bearer token in the header
- Call the Get User Profiles endpoint
-
Get profile keys:
- Extract the
refId
from each user profile - Use your internal store to create a list of associated user profile keys
- Extract the
-
Retrieve posts specific to a social network
- Use the Posts History for a Platform endpoint
- Place a platform in the
platform
path parameter. Values:facebook
,instagram
,linkedin
,pinterest
,tiktok
,twitter
- Get all platform posts associated with each user profile key