# LinkedIn Post details API (linkedin.post_detail)

- Canonical page: [https://everyinfra.com/en/linkedin-api/post_detail](https://everyinfra.com/en/linkedin-api/post_detail?utm_medium=ai_doc&utm_campaign=page_md)
- Endpoint: POST https://api.everyinfra.com/api/v1/social with {"platform": "linkedin", "action": "post_detail", "params": {...}}
- Price: $0.000792 per call ($0.79 per 1,000 requests); failed calls and empty results are not charged
- Returns: single object
- 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=post_detail

## Parameters

| name | type | required | default | description |
|---|---|---|---|---|
| url | not declared | yes | not declared | A LinkedIn post link (https://www.linkedin.com/posts/<name>-activity-<digits>-<suffix> or https://www.linkedin.com/feed/update/urn:li:activity:<digits>/), an activity URN (urn:li:activity:<digits>), or the 15 to 25 digit activity number. The ugcPost and share forms of the links and URN also work, and a query string after the link is ignored. LinkedIn article links (https://www.linkedin.com/pulse/<slug>) work too; articles also carry title. Company, profile and job links are not posts; they return 422 and are not charged. |

## 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. |
| title | Title. null when the platform has no titles (for example text-only posts). |
| 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). |
| 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. |
| is_edited | platform-native meaning |
| 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. |
| media_type | Content type the post carries (post_detail): text, image, video, article (links an article) or document. |
| image_urls | Array of image links in the platform's display order; absent when there are no images. |
| video_url | Video address (post_detail); present only on video posts. |
| thumbnail_url | Thumbnail link, lower resolution than image_url. |
| links | Array of external links in the post text (post_detail); absent when there are none. |
| mentions | Array of short names of the accounts mentioned in the post text (post_detail), such as microsoft; absent when there are none. |
| hashtags | Hashtag list of the company page or post. |
| author_name | Author's display name. |
| author_username | Author's username (@handle), usually usable in URLs. |
| author_url | Profile link of the post author (search, post_detail), without tracking parameters. |
| author_avatar_url | Avatar link of the post author (search, post_detail). |
| author_headline | platform-native meaning |
| author_type | platform-native meaning |
| author_follower_count | Author's follower count. null means not disclosed. |
| reshared_post | The post that was reshared (post_detail), present only on a reshare: id, url, text, posted_at, author_name, author_username, author_url and author_type. |
| 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": "post_detail",
  "params": {
    "url": "https://www.linkedin.com/feed/update/urn:li:activity:7529230174937169921/"
  }
}'
```

```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": "post_detail",
        "params": {
            "url": "https://www.linkedin.com/feed/update/urn:li:activity:7529230174937169921/",
        },
    },
    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": "post_detail",
  "results": {
    "id": …,
    "url": …,
    "title": …,
    "text": …,
    "posted_at": …,
    "is_edited": …,
    "like_count": …,
    "comment_count": …,
    "media_type": …,
    "image_urls": …,
    "video_url": …,
    "thumbnail_url": …,
    "links": …,
    "mentions": …,
    "hashtags": …,
    "author_name": …,
    "author_username": …,
    "author_url": …,
    "author_avatar_url": …,
    "author_headline": …,
    "author_type": …,
    "author_follower_count": …,
    "reshared_post": …,
    "platform": …
  },
  "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
