Pull API \ Retrieve the posts of a LinkedIn company page

Resource/URI HTTP GET
Facebook · Retrieve a user's likes /pull/identities/<identity_token>/facebook/likes.json Retrieve
Likes
Facebook · Retrieve a user's posts /pull/identities/<identity_token>/facebook/posts.json Retrieve
Posts
Facebook · Retrieve a user's pages /pull/identities/<identity_token>/facebook/pages.json Retrieve
Pages
Facebook · Retrieve a user's page posts /pull/identities/<identity_token>/facebook/page/<pageid>/posts.json Retrieve
Page Posts
LinkedIn · Retrieve a user's companies /pull/identities/<identity_token>/linkedin/companies.json Retrieve
Companies
LinkedIn · Retrieve a user's company posts /pull/identities/<identity_token>/linkedin/company/<companyid>/posts.json Retrieve
Company Posts
Pinterest · Retrieve a user's boards /pull/identities/<identity_token>/pinterest/boards.json Retrieve
Boards
Steam · Retrieve a user's games /pull/identities/<identity_token>/steam/games.json Retrieve
Games
Twitter · Retrieve a user's tweets /pull/identities/<identity_token>/twitter/tweets.json Retrieve
Tweets
YouTube · Retrieve a user's channels /pull/identities/<identity_token>/youtube/channels.json Retrieve
Channels
YouTube · Retrieve a user's playlists /pull/identities/<identity_token>/youtube/playlists.json Retrieve
Playlists
YouTube · Retrieve a user's playlist videos /pull/identities/<identity_token>/youtube/playlist/<playlist_id>/videos.json Retrieve
Playlist Videos

Workflow

Request: the code to send to the API

Send a GET request to /pull/identities/<identity_token>/linkedin/company/<companyid>/posts.json to retrieve the posts published on the LinkedIn page of a company.

The <identity_token> is obtained whenever one of your users connects using LinkedIn. The <companyid> must be part of the companies that the identity is currently configured to be an administrator of.

To order to use this endpoint the permission Manage Company Pages (rw_organization_admin) must be enabled in the LinkedIn settings in your OneAll account and the user must have granted that permission when he logged in with LinkedIn. You can publish content for a company using our Push API.

The following URL parameters can optionally be used with this endpoint.

URL Parameter Description
num_posts
integer
Indicates how many entries should be included in the resultset. The valid range is between 1 an 200.
Default: 50
page
integer
Indicates the page that should be retrieved. To paginate the resultset, simply start with page 1 and make subsequent requests to this endpoint while incrementing the page number with each call.
Default: 1

Result: the code returned by the API

Response Example

{
  "response": {
    "request": {
      "date": "Thu, 11 Apr 2019 11:20:17 +0200",
      "resource": "/pull/identities/918f9d85-ee4a-496f-923a-c7c402232f96/linkedin/company/7787405/posts.json?num_posts=1&page=1",
      "status": {
        "flag": "success",
        "code": 200,
        "info": "Your request has been processed successfully"
      }
    },
    "result": {
      "data": {
        "count": 1,
        "entries": [
          {
            "id": 6521391149503127552,
            "key": "urn:li:share:6521391149503127552",
            "location": "https://www.linkedin.com/feed/update/urn:li:share:6521391149503127552/",
            "comment": "Integrate 35+ social networks with our web-delivered tools. Reunite your existing user data in a state-of-the-art security environment that is 100% compliant with all US & EU data protection laws.",
            "media": [
              {
                "url": "http://www.oneall.com/",
                "title": "User Integration as a service"
              }
            ],
            "date_creation": "Mon, 23 Apr 51240 06:53:52 +0100",
            "visibility": "PUBLIC",
            "origin": "API",
            "num_comments": 1,
            "num_likes": 1
          }
        ]
      }
    }
  }
}

User Contributed Notes