Everything you need to integrate the RichAPI API into your product.
Get recent posts published by a LinkedIn company. Supports filtering by date recency and cursor-based pagination.
/api/v1/company_postsParameters
| Field | Type | Required | Description |
|---|---|---|---|
company | string | No | LinkedIn company URL (use this, companyId, or companyUniversalName) |
companyId | string | No | LinkedIn company numeric ID (fastest lookup) |
companyUniversalName | string | No | Last path segment of the company LinkedIn URL (e.g. texauhq) |
postedLimit | string | No | Pre-filter posts by recency: 24h, week, or month (applied on LinkedIn side) |
scrapePostedLimit | string | No | Post-filter posts by recency after scraping: 1h, 24h, week, month, 3months, 6months, or year |
page | integer | No | Page number for pagination (1-based, default 1) |
paginationToken | string | No | Cursor token returned by the previous page response (required for pages > 1 on most queries) |
Response fields
| Field | Type | Description |
|---|---|---|
elements | array | List of company posts (billed at 0.2 credit per element) |
elements[].id | string | Post ID |
elements[].linkedinUrl | string | LinkedIn post URL |
elements[].content | string | Post text content |
elements[].author | object | Author info (id, name, type, linkedinUrl, avatar) |
elements[].postedAt | object | Post timestamp (timestamp ms, ISO date, postedAgoText) |
elements[].postImages | array | Attached images (url, width, height) |
elements[].postVideo | object | Attached video (thumbnailUrl, videoUrl) — null if no video |
elements[].document | object | Attached document/carousel (title, coverPages, totalPageCount) — null if none |
elements[].poll | object | Poll data (question, options, totalVotes, closed) — null if no poll |
elements[].engagement | object | Engagement stats: likes, comments, shares, reactions[] |
pagination | object | Pagination info including paginationToken for next page |
status | string | HTTP status from upstream provider |
Code
curl -X POST https://api.richapi.ai/api/v1/company_posts \
-H "x-api-key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"page": 1,
"company": "https://www.linkedin.com/company/texauhq/"
}'Try it
Sign in to test this endpoint with your API key.
Sign in to try