> ## Documentation Index
> Fetch the complete documentation index at: https://docs.socq.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# LinkedIn Posts

> Collect public LinkedIn post data.

# LinkedIn Posts

```json theme={"system"}
{
  "urls": ["https://www.linkedin.com/posts/example_activity-123456789"]
}
```

## Use with MCP

| Interface      | Value                                            |
| -------------- | ------------------------------------------------ |
| REST           | `POST /v1/linkedin/posts`                        |
| Compact MCP    | `socq_execute` with `endpoint: "linkedin/posts"` |
| Typed MCP      | `socq_linkedin_posts`                            |
| Exact-tool URL | `https://api.socq.ai/mcp?tools=linkedin_posts`   |
| CLI            | `socq linkedin posts`                            |

Use the JSON request body above as the nested `input` object for `socq_execute`, or pass the same fields directly to the typed tool. Typed tools also accept `_wait_seconds`, `_result_limit`, and `_idempotency_key`.

<Info>
  A successful collection returns a `task_id`. Continue with `socq_get_task` until the task succeeds, then read normalized records from `results.items`.
</Info>

See [MCP quickstart](/integrations/mcp) for the complete submission and polling flow.

Post text is returned in `text`; author, engagement metrics, media, and publication time use the standard post structure.

## Completed Task Response

```json theme={"system"}
{
  "code": 200,
  "data": {
    "task_id": "A1B2C3D4E5F6G7H8",
    "status": "succeeded",
    "public_id": "linkedin/posts",
    "result_count": 1,
    "credits_amount": 1,
    "results": {
      "limit": 50,
      "next_cursor": null,
      "has_more": false,
      "items": [{
        "id": "123456789",
        "platform": "linkedin",
        "resource": "posts",
        "type": "post",
        "url": "https://www.linkedin.com/posts/example_activity-123456789",
        "text": "Sharing our latest product update.",
        "author": {"id": "example", "username": "Example Person", "name": "Example Person", "url": "https://www.linkedin.com/in/example"},
        "metrics": {"likes_count": 320, "comments_count": 18, "reposts_count": 6},
        "media": [],
        "created_at": "2026-07-16T08:00:00",
        "collected_at": "2026-07-17T10:30:00",
        "extra": {"post_type": "original", "hashtags": ["product"]}
      }]
    }
  }
}
```


## OpenAPI

````yaml api-manual/agent-api/agent-api.json POST /v1/linkedin/posts
openapi: 3.1.0
info:
  title: SocQ Agent API
  version: v1-063d1c96173a
  description: Asynchronous social data API generated from the SocQ Capability Registry.
servers:
  - url: https://api.socq.ai
security: []
paths:
  /v1/linkedin/posts:
    post:
      tags:
        - linkedin
      summary: LinkedIn Posts API
      description: LinkedIn Posts API
      operationId: socq_linkedin_posts
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $schema: https://json-schema.org/draft/2020-12/schema
              type: object
              additionalProperties: false
              properties:
                urls:
                  type: array
                  items:
                    type: string
                    minLength: 1
                  minItems: 1
                  description: Public profile or content URLs.
              required:
                - urls
      responses:
        '200':
          description: Task accepted
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AgentSubmitResponse'
      security:
        - bearerAuth: []
        - apiKeyAuth: []
components:
  schemas:
    AgentSubmitResponse:
      type: object
      properties:
        code:
          type: integer
          const: 200
        data:
          type: object
          properties:
            task_id:
              type: string
            status:
              type: string
            created_time:
              type:
                - string
                - 'null'
            idempotent_replay:
              type: boolean
          required:
            - task_id
            - status
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
    apiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key

````