LinkedIn Company Posts API

List a LinkedIn company page's recent posts by URL: full text, canonical link, publish date, author, engagement counts with a per-reaction breakdown, and attached media.

USD 0.005000 / successful call

Public ID: social.linkedin.company.posts · Version 1

Pricing

USD 0.005000 / successful call

Quick start

Discover this tool with your API key, then inspect the returned provider and endpoint before running it.

Set GLOOP_API_BASE to your API origin and GLOOP_API_KEY to your server-side key.

curl

curl --fail-with-body "${GLOOP_API_BASE%/}/v1/discover" \
  -H "Authorization: Bearer $GLOOP_API_KEY" \
  -H 'Content-Type: application/json' \
  --data-raw '{
  "limit": 5,
  "query": "LinkedIn Company Posts"
}'

Python

import os, json, urllib.request

url = os.environ['GLOOP_API_BASE'].rstrip('/') + "/v1/discover"
headers = {'Authorization': 'Bearer ' + os.environ['GLOOP_API_KEY']}
headers['Content-Type'] = 'application/json'
data = "{\n  \"limit\": 5,\n  \"query\": \"LinkedIn Company Posts\"\n}".encode('utf-8')
request = urllib.request.Request(url, data=data, headers=headers)
with urllib.request.urlopen(request) as response:
    print(json.load(response))

Node.js

const url = process.env.GLOOP_API_BASE.replace(/\/$/, '') + "/v1/discover";
const headers = { Authorization: `Bearer ${process.env.GLOOP_API_KEY}` };
headers['Content-Type'] = 'application/json';
const response = await fetch(url, { method: 'POST', headers, body: JSON.stringify({
  "limit": 5,
  "query": "LinkedIn Company Posts"
}) });
if (!response.ok) throw new Error(`HTTP ${response.status}`);
console.log(await response.json());
Tool API documentation · POST /v1/inspect

Input schema

{
  "additionalProperties": false,
  "properties": {
    "includeQuotePosts": {
      "description": "Include quote posts (posts shared with an added comment). Defaults to true; set false to exclude them.",
      "type": "boolean"
    },
    "includeReposts": {
      "description": "Include reposts (posts shared without an added comment). Defaults to true; set false to exclude them.",
      "type": "boolean"
    },
    "limit": {
      "description": "Maximum number of posts to return.",
      "maximum": 50,
      "minimum": 1,
      "type": "integer"
    },
    "postedLimit": {
      "description": "Only return posts published within this window (default any).",
      "enum": [
        "any",
        "1h",
        "24h",
        "week",
        "month",
        "3months",
        "6months",
        "year"
      ],
      "type": "string"
    },
    "url": {
      "description": "Full LinkedIn company page URL.",
      "type": "string"
    }
  },
  "required": [
    "url"
  ],
  "title": "LinkedIn company posts input",
  "type": "object"
}

Output schema

{
  "type": "object"
}

Tools in the same category