GET Posts API - Retrieve Watchlist Posts

K
Kavya M

GET Posts

Provide a Watchlist ID to retrieve the posts associated with one or more watchlists.

Once the request is processed, the response will include the watchlist details along with the corresponding posts.

Quick Set up Guide

  • To get your API KEY mail us support@outx.ai
  • Create a watchlist using the POST endpoint
  • Retrieve posts using the GET endpoint with your watchlist ID
  • Update watchlist settings as needed using the PUT endpoint
  • Like and Comment using Engagement APIs

Curl

curl -X GET "https://cafqluqomuhgtchexldv.supabase.co/functions/v1/api-posts?watchlist_id=<Watchlist_ID>"
  -H "x-api-key: YOUR_TEAM_API_KEY_HERE"

Multiple Watchlist_ID Curl

curl -X GET "https://cafqluqomuhgtchexldv.supabase.co/functions/v1/api-posts?watchlist_id=<Watchlist_ID1>,<Watchlist_ID2>,<Watchlist_ID3>&current_page=1&lang=true"
  -H "x-api-key: YOUR_TEAM_API_KEY_HERE"

Retrieve all posts from the team watchlist

curl -X GET "https://cafqluqomuhgtchexldv.supabase.co/functions/v1/api-posts"
  -H "x-api-key: YOUR_API_KEY"

Filter posts from all teams

curl -X GET "https://cafqluqomuhgtchexldv.supabase.co/functions/v1/api-posts?labels=AI Technology,Machine Learning"
  -H "x-api-key: YOUR_API_KEY"

Parameters

Required Parameters

Field NameTypeDescription
watchlist_idstring / arrayWatchlist ID(s). Use comma-separated values for multiple IDs.

Optional Parameters

Field NameTypeDescription
current_pagenumberPage number for pagination. Default: 1.
sort_bystringSort order. Allowed values: "recent_first", "popular_first".
is_savedbooleanFilter for bookmarked posts only. Values: true, false.
langstringLanguage filter. Use "true" for English posts only.
start_datestringDate range start. Format: YYYY-MM-DD.
end_datestringDate range end. Format: YYYY-MM-DD.
post_typestringPost type filter Values: person, company, job_update and birthday_update
trendingbooleanFilter for posts with 100+ likes. Values: true, false.
interactedbooleanFilter for posts you've liked or commented on. Values: true, false.
seniority_levelstringFilter by author's seniority level.
labelsarrayFilter by tags. Use comma-separated values. Special value: "no labels" for posts without tags.

Response

{
  "data": [
    {
      "id": "string",
      "linkedin_post_url": "string",
      "tracking_lists_id": "string",
      "content": "string",
      "image_url": "string",
      "image_text": "string",
      "author_name": "string",
      "author_url": "string",
      "created_at": "2024-01-01T00:00:00Z",
      "posted_at": "2024-01-01T00:00:00Z",
      "likes_count": 0,
      "shares_count": 0,
      "influence_score": 0,
      "sentiment": "string",
      "comments_count": 0,
      "bookmark": false,
      "post_type": "string",
      "language": "string",
      "tags": ["tag1", "tag2"],
      "commented": false,
      "author_headline": "string",
      "author_image_url": "string",
      "image_urls": ["url1", "url2"],
      "videos": null,
      "seniority_level": "string",
      "liked": false,
      "tagDescriptions": [
        {
          "tag": "string",
          "description": "string"
        }
      ]
    }
  ],
  "count": 100
}

Response Field

FieldTypeDescription
dataarrayArray of LinkedIn post objects returned in the response.
countnumberTotal number of posts matching the query.

Inside data array (Post Object)

FieldTypeDescription
idstringUnique identifier for the post.
linkedin_post_urlstringDirect URL to the LinkedIn post.
tracking_lists_idstringIdentifier of the watchlist or tracking list associated with this post.
contentstringText content of the post.
image_urlstringPrimary image URL of the post (if any).
image_textstringExtracted text from the post image (OCR).
author_namestringName of the author.
author_urlstringURL of the author’s LinkedIn profile.
created_atstringDate/time when the record was created in the system (ISO 8601).
posted_atstringDate/time when the post was published on LinkedIn (ISO 8601).
likes_countnumberNumber of likes the post has received.
shares_countnumberNumber of times the post has been shared.
influence_scorenumberCalculated influence score for the post.
comments_countnumberNumber of comments on the post.
bookmarkbooleanWhether the post is bookmarked by the user.
post_typestringType of post (text, image, video, etc.).
languagestringLanguage of the post.
tagsarrayList of tags assigned to the post.
commentedbooleanWhether the authenticated user has commented on the post.
author_headlinestringHeadline/job title of the post author.
author_image_urlstringProfile image URL of the author.
image_urlsarrayList of all image URLs in the post.
videosarray/nullList of video URLs in the post (if any).
seniority_levelstringSeniority level of the post author.
likedbooleanWhether the authenticated user has liked the post.
tagDescriptionsarrayArray of tag objects with additional details.

Inside tagDescriptions array

FieldTypeDescription
tagstringThe tag name.
descriptionstringDescription of the tag.

Errors

Status CodeError MessageDescription
400"Missing or invalid watchlist_id parameter"The watchlist_id parameter is missing or invalid.
403"Access denied: You don't have permission to access these watchlists"User does not have permission to access the specified watchlist(s).
500"Internal server error"Generic server-side error occurred while processing the request. Contact support @OutXAI

For more information about the OutXAI API, feel free to contact us at support@outx.ai.


Track LinkedIn posts, job changes, birthdays, and keywords — never miss a sales trigger.
No Credit Card Required. Cancel anytime.