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)

  1. Get all user profiles associated with the primary profile:

  2. Get profile keys:

    • Extract the refId from each user profile
    • Use your internal store to create a list of associated user profile keys
  3. 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)

  1. Get all user profiles associated with the primary profile:

  2. Get profile keys:

    • Extract the refId from each user profile
    • Use your internal store to create a list of associated user profile keys
  3. 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