Scrape Post Content
Scrape LinkedIn post content without authentication (public posts only)
POST
/linkedin/posts/scrapeScrape 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
| Field | Type | Required | Description |
|---|---|---|---|
postUrl | string | Yes | LinkedIn post URL to scrape |
Example
{
"postUrl": "https://www.linkedin.com/posts/john-doe-123_..."
}Responses
| Status | Description |
|---|---|
| 200 | Successful 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"
}