Ayrshare API Documentation home page
Search...
⌘K
Ask AI
Blog
Dashboard
Dashboard
Search...
Navigation
Additional Topics
Get All Posts
Documentation
Help Center
Help Center
Help Center Overview
Account
Product
Technical Support
Technical Support Overview
Facebook & Instagram
Other Social Networks
Error Responses
Additional Topics
Character limits
Commenting on other users' social media posts
Dealing with Duplicate Posts
Errors making requests with the API
Get All Posts
Get an Unsplash Image URL
How to Retrieve refId for User Profile
Link Users' Social Media Accounts from Backend Code
Linked Social Accounts Not Showing
Post with @mentions didn't go through
On this page
Getting All Posts for All User Profiles (Ayrshare origin)
Getting Posts for a Particular Social Network for All Users (Ayrshare and non-Ayrshare origin)
Additional Topics
Get All Posts
Copy page
Copy page
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
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
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
,
snapchat
,
threads
,
tiktok
,
twitter
,
youtube
Get all platform posts associated with each user profile key
Errors making requests with the API
Get an Unsplash Image URL
Assistant
Responses are generated using AI and may contain mistakes.