# Get company posts

List recent posts published by a company page.

**POST** `https://api.up2data.ai/v1/companies/posts`

**Credits:** 1 credit per returned post - **Mode:** synchronous

Identify the company with one of `url`, `domain`, or `linkedin_id`; provide exactly one. Companies have no public comments or reactions activity feed on LinkedIn, so this returns authored posts only.

> **Info:** For a profile's posts, comments, reactions, or reposts, use [profile activity](https://up2data.ai/docs/v1/api/profiles-activity/). For who engaged with one company post, use the per-post [comments](https://up2data.ai/docs/v1/api/posts-engagement-comments/), [reactions](https://up2data.ai/docs/v1/api/posts-engagement-reactions/), or [reposts](https://up2data.ai/docs/v1/api/posts-engagement-reposts/) endpoints.

> **Info:** Send many as batch operation items (operation companies.posts); up to 500 posts per item, 1 credit per post returned. See the [batch endpoint](https://up2data.ai/docs/v1/api/batch-create/).

## Request

| Field | Type | Notes |
|---|---|---|
| `url` | `string` | Company page URL or slug. Provide url, domain, or linkedin_id. |
| `domain` | `string` | Company website domain, e.g. anthropic.com. Provide url, domain, or linkedin_id. |
| `linkedin_id` | `string` | Numeric LinkedIn company ID. Provide url, domain, or linkedin_id. |
| `page` | `integer` | Default 1. |
| `per_page` | `integer` | Default 25. 1 to 25. |
| `max_results` | `integer` | Caps how many posts are returned across pages. 1 to 100, defaults to per_page. |
| `pagination_token` | `string` | Required for pages after the first, when returned by a prior response. |

## Call it

**cURL**

```bash
curl -X POST "https://api.up2data.ai/v1/companies/posts" \
  -H "X-API-Key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "url": "https://linkedin.com/company/anthropic",
  "page": 1
}'
```

**Python**

```python
import requests

url = "https://api.up2data.ai/v1/companies/posts"
headers = {
    "X-API-Key": "YOUR_API_KEY",
    "Content-Type": "application/json",
}
payload = {
    "url": "https://linkedin.com/company/anthropic",
    "page": 1
}

response = requests.post(url, headers=headers, json=payload)
print(response.json())
```

**Node**

```javascript
const url = "https://api.up2data.ai/v1/companies/posts";
const headers = {
  "X-API-Key": "YOUR_API_KEY",
  "Content-Type": "application/json",
};
const body = {
  "url": "https://linkedin.com/company/anthropic",
  "page": 1
};

const response = await fetch(url, {
  method: "POST",
  headers,
  body: JSON.stringify(body),
});
const data = await response.json();
console.log(data);
```

**Go**

```go
package main

import (
	"bytes"
	"fmt"
	"io"
	"net/http"
)

func main() {
	url := "https://api.up2data.ai/v1/companies/posts"
	body := bytes.NewBufferString(`{
  "url": "https://linkedin.com/company/anthropic",
  "page": 1
}`)
	req, err := http.NewRequest("POST", url, body)
	if err != nil {
		panic(err)
	}
	req.Header.Set("X-API-Key", "YOUR_API_KEY")
	req.Header.Set("Content-Type", "application/json")

	client := &http.Client{}
	resp, err := client.Do(req)
	if err != nil {
		panic(err)
	}
	defer resp.Body.Close()

	respBody, _ := io.ReadAll(resp.Body)
	fmt.Println(string(respBody))
}
```

## Response

**200**

```json
{
  "data": {
    "posts": [{ "url": "https://www.linkedin.com/posts/anthropic_launch-activity-7267273010393358336-ab12", "urn": "7267273010393358336", "author": {"name": "Anthropic", "url": "https://www.linkedin.com/company/anthropicresearch/posts", "headline": "1,204,800 followers"}, "text": "Today we are announcing Claude 4, our most capable model yet.", "posted_at": "2026-07-06T18:45:00Z", "reactions_count": 4200, "comments_count": 312, "reposts_count": 890, "scraped_at": "2026-07-08T12:00:00Z", "share_urn": "7315779815297421316", "media": [{ "type": "image", "url": "https://media.licdn.com/dms/image/v2/D4E22AQExample/feedshare-shrink_2048_1536/0/claude" }] }],
    "pagination": {"returned": 1, "max_results": 25, "pages_scraped": 1, "page": 1, "per_page": 25, "has_more": true, "total_estimate": 234},
    "pagination_token": "eyJwYWdlIjoyfQ"
  },
  "meta": { "creditsUsed": 1, "creditsRemaining": 98419, "billed": true, "reason": "success", "requestId": "req_example", "latencyMs": 2100 }
}
```

## Errors

| Status | Type | When | Billed |
|---|---|---|---|
| 400 | `invalid_request` | Malformed body, unknown field, bad URL format, or an invalid pagination_token. | No |
| 401 | `invalid_api_key` | Missing, malformed, or revoked key. | No |
| 402 | `insufficient_credits` | Balance can't cover a full page. | No |
| 422 | `unprocessable_target` | Company not found, private, deleted, or unreachable. Billed as 1 credit. | Yes |
| 429 | `rate_limited` | Over the 300 requests/min per-key limit. Honor Retry-After. | No |
| 500 | `internal_error` | Something broke on the server side. | No |
| 504 | `upstream_timeout` | The live scrape didn't complete in time. | No |

See the [Errors guide](https://up2data.ai/docs/v1/guides/errors/) for every error type this version can return.
