Get Company Posts
GET /get-company-posts
Retrieve posts published by a LinkedIn company page.
Pricing
1 credit per call.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
linkedin_url | string | Yes | LinkedIn company URL |
type | string | No | Post type: posts or reposts (default: posts) |
start | integer | No | Starting offset (default: 0) |
pagination_token | string | No | Token for pagination |
Example Request
- cURL
- Python
- Node.js
curl --request GET \
--url 'https://api.infoplug.io/get-company-posts?linkedin_url=https://www.linkedin.com/company/apple/&type=posts' \
--header 'X-INFOPLUG-API-KEY: YOUR_API_KEY'
import requests
url = "https://api.infoplug.io/get-company-posts"
params = {
"linkedin_url": "https://www.linkedin.com/company/apple/",
"type": "posts",
"start": 0
}
headers = {
"X-INFOPLUG-API-KEY": "YOUR_API_KEY"
}
response = requests.get(url, headers=headers, params=params)
print(response.json())
const response = await fetch(
'https://api.infoplug.io/get-company-posts?linkedin_url=https://www.linkedin.com/company/apple/&type=posts',
{
headers: {
'X-INFOPLUG-API-KEY': 'YOUR_API_KEY'
}
}
);
const data = await response.json();
console.log(data);
Example Response
- 200 OK
- 400 Bad Request
- 401 Unauthorized
{
"data": {
"posts": [
{
"urn": "urn:li:activity:1234567890",
"text": "Post content here...",
"posted_at": "2024-01-15T10:30:00Z",
"reactions_count": 1500,
"comments_count": 250,
"reposts_count": 100
}
],
"paging": {
"start": 0,
"count": 10,
"total": 500
}
}
}
{
"message": "invalid_parameter",
"parameter": "linkedin_url",
"details": "LinkedIn URL is required"
}
{
"message": "unauthorized",
"details": "Invalid or missing API key"
}