---
title: "Extract Posts Endpoint"
method: POST
path: "/enrich/posts"
tags: ["enrichment"]
---

# Extract Posts Endpoint

`POST /enrich/posts`

## Request

- Base URL: `https://api.dataforb2b.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.dataforb2b.ai/enrich/posts`
- Auth: none declared

Extract posts made by a LinkedIn profile

Extracts posts published by a LinkedIn user.

**Supported profile_identifier formats:**
- Full URL: `https://www.linkedin.com/in/john-doe-123456/`
- Short URL: `linkedin.com/in/john-doe`
- Public ID only: `john-doe`
- Member identity: `ACoAABxxxxxx`
- Encoded profile ID: `prof_PVXj1LZJg54zXKcnKNBusu8LgvJX5SYm5QYj`

**Pagination:**
- `offset`: Number of posts to skip (default: 0)
- `count`: Number of posts to return (default: 10, max: 100)

**Filtering:**
- `sort_by`: DATE_POSTED or RELEVANCE
- `post_type`: ARTICLE, VIDEO, PHOTO, DOCUMENT or null for all
- `keyword`: Keyword filter for post content

**Credits:** 1 credit per 10 posts (or fraction thereof)

## Headers

- `api-key` string, nullable

## Request body

- ExtractPostsRequest: Request for extracting profile posts
  - `profile_identifier` string, required: LinkedIn profile identifier. Supports: https://linkedin.com/in/john-doe, john-doe, ACoAABxxxxxx, prof_xxx
  - `offset` integer: Number of posts to skip (for pagination)
  - `count` integer: Number of posts to return (max 500 per request)
  - `sort_by` string: Sort order: date_posted or relevance
  - `post_type` string, nullable: Filter by type: ARTICLE, VIDEO, PHOTO, DOCUMENT or null for all
  - `keyword` string, nullable: Keyword filter for post content

## Response `200`

Successful Response

- ExtractPostsResponse: Response containing extracted profile posts
  - `offset` integer: Offset used for this request
  - `count` integer: Count requested
  - `has_next` boolean: Whether there are more posts to fetch
  - `credits_used` number: Credits used for this request
  - `author` PostAuthorInfo: Info about the post author
    - `name` string, nullable
    - `profile_url` string, nullable
    - `profile_picture` string, nullable
    - `headline` string, nullable
  - `results` object[]: List of extracted posts

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/dataforb2b/apis/dataforb2b-api.md) · [All operations](https://skmtc.dev/dataforb2b/apis/dataforb2b-api/llms.txt) · [OpenAPI document](https://skmtc.dev/dataforb2b/apis/dataforb2b-api/revisions/24ea79caa1a1?raw)
