Scrape Post Content

Scrape LinkedIn post content without authentication (public posts only)

POST/linkedin/posts/scrape

Scrape Post Content

Scrape LinkedIn post content without authentication (public posts only)

LinkedIn Posts

Code Examples

curl -X POST 'https://api.connectsafely.ai/linkedin/posts/scrape' \
-H 'Content-Type: application/json' \
-d '{"postUrl":"https://www.linkedin.com/posts/john-doe-123_..."}'

Parameters

No parameters.

Request Body

FieldTypeRequiredDescription
postUrlstringYesLinkedIn post URL to scrape

Example

{
  "postUrl": "https://www.linkedin.com/posts/john-doe-123_..."
}

Responses

StatusDescription
200Successful response

200 Example

{
  "success": true,
  "originalUrl": "https://www.linkedin.com/posts/john-doe-123_...",
  "finalUrl": "https://www.linkedin.com/posts/john-doe-123_...",
  "scrapeDuration": 1500,
  "data": {
    "content": "Post content here...",
    "authorName": "John Doe",
    "authorProfileId": "john-doe-123",
    "createdAt": "2024-01-15T10:30:00Z",
    "activityUrn": "urn:li:activity:...",
    "ugcPostUrn": "urn:li:ugcPost:..."
  },
  "message": "Successfully scraped post content"
}