# LinkedIn Person posts API (linkedin.person_posts)

- Canonical page: https://everyinfra.com/en/linkedin-api/person_posts
- Endpoint: POST /api/v1/social with {"platform": "linkedin", "action": "person_posts", "params": {...}}
- Price: $0.004 per call ($4 per 1,000 requests); failed and empty results are not charged
- Returns: list, default 10, max 50 per call (larger values are capped)
- Mode: sync; add "mode": "async" for slow tasks

## Health

- Live health (24h percent, hourly and daily trends): https://api.everyinfra.com/api/v1/social/availability?platform=linkedin&action=person_posts

## Parameters

| name | type | required | default | description |
|---|---|---|---|---|
| username | not declared | yes | not declared | The member's /in/ username or full profile link, such as `williamhgates`. A display name with spaces is not recognised. |
| limit | integer (1–50) | no | 10 | The most rows to return in this call, an integer from 1 to 50. The default applies when you leave it out, and a call can return fewer rows. Larger values are accepted and capped at the maximum. |

## Response fields (items in `results`)

| field | meaning |
|---|---|
| id | The record's unique ID on the platform. Unique only within one platform; IDs can repeat across platforms. |
| url | Link to the record on the platform. |
| text | Body text with HTML removed, returned in full and never cut short (on a few platforms the list results themselves carry only an excerpt; the platform's field notes say so). |
| author_name | Author's display name. |
| author_username | Author's username (@handle), usually usable in URLs. |
| author_headline | platform-native meaning |
| author_id | Numeric member ID of the post author (search). |
| author_url | Profile link of the post author (search), without tracking parameters. |
| author_avatar_url | Avatar link of the post author (search). |
| author_type | platform-native meaning |
| reactions | Reaction counts by type (search): each entry has type (like, appreciation, empathy and so on) and count. |
| attachment | Card attached to the post (search): type (for example job or article), title, description, subtitle, url and image_url. |
| like_count | Likes. null means the platform or this capability does not disclose it; it is not 0. |
| comment_count | Comments. null means not disclosed, not 0. |
| share_count | Number of times the post was reshared. |
| hashtags | Hashtag list of the company page or post. |
| is_reshare | Whether the post is a reshare of another post. |
| posted_at | Publish time in ISO 8601, UTC (for example 2026-08-07T12:34:56+00:00). Non-standard strings from the platform are passed through as is, so parse defensively. null means the platform does not disclose it. |
| platform | Source platform identifier, the same as platform in the request (for example xiaohongshu, tiktok). |

## Example

```bash
curl -X POST 'https://api.everyinfra.com/api/v1/social' \
  -H "Authorization: Bearer $EVERYINFRA_API_KEY" \
  -H 'Content-Type: application/json' \
  --data-raw '{
  "platform": "linkedin",
  "action": "person_posts",
  "params": {
    "username": "williamhgates"
  }
}'
```

```python
import os
import requests

response = requests.post(
    "https://api.everyinfra.com/api/v1/social",
    headers={"Authorization": f"Bearer {os.environ['EVERYINFRA_API_KEY']}"},
    json={
        "platform": "linkedin",
        "action": "person_posts",
        "params": {
            "username": "williamhgates",
        },
    },
    timeout=120,
)
print(response.status_code)
print(response.json())
```

## Response example

No real sample for these example parameters yet: structure only, every value is a placeholder (…).

```text
{
  "id": "req_…",
  "platform": "linkedin",
  "action": "person_posts",
  "results": [
    {
      "id": …,
      "url": …,
      "text": …,
      "author_name": …,
      "author_username": …,
      "author_headline": …,
      "author_id": …,
      "author_url": …,
      "author_avatar_url": …,
      "author_type": …,
      "reactions": …,
      "attachment": …,
      "like_count": …,
      "comment_count": …,
      "share_count": …,
      "hashtags": …,
      "is_reshare": …,
      "posted_at": …,
      "platform": …
    }
  ],
  "count": …,
  "billing": {
    "charged": …,
    "charged_usd": …,
    "balance_after_usd": …,
    …
  },
  "quota": { … }
}
```

## Also

- Capability catalog (no key): https://api.everyinfra.com/api/v1/social/catalog?platform=linkedin
- OpenAPI: https://everyinfra.com/openapi.json · Agents guide: https://everyinfra.com/agents.md
