# Scrape LinkedIn Posts to Structured JSON

**Use case:** 

Turn a profile URL into clean JSON: post text, reactions, comments, date, and author. One row per post, newest first.

## Input

```json
{
  "profileUrls": [
    "https://www.linkedin.com/in/williamhgates"
  ],
  "maxPostsPerProfile": 20,
  "startDate": "2025-01-01",
  "endDate": "2025-12-31"
}
```

## Output

```json
{
  "result_type": {
    "label": "Result Type",
    "format": "string"
  },
  "authorName": {
    "label": "Author",
    "format": "string"
  },
  "text": {
    "label": "Text",
    "format": "string"
  },
  "numLikes": {
    "label": "Reactions",
    "format": "integer"
  },
  "numComments": {
    "label": "Comments",
    "format": "integer"
  },
  "datePosted": {
    "label": "Date Posted",
    "format": "string"
  },
  "postUrl": {
    "label": "Post URL",
    "format": "string"
  },
  "summary": {
    "label": "Summary",
    "format": "string"
  }
}
```

## About this Actor

This example demonstrates how to use [LinkedIn Posts API | Scrape Profile Posts & Engagement](https://apify.com/johnvc/linkedin-posts-api) with a specific input configuration. Visit the [Actor detail page](https://apify.com/johnvc/linkedin-posts-api) to learn more, explore other use cases, and run it yourself.