# Get LinkedIn person comments (https://snitchfeed.com/docs/api/linkedin/person/comments)

**Authentication:** All requests require `Authorization: Bearer <api_key>` header. Obtain your API key from the SnitchFeed platform under Integrations → API Keys.

## `POST /data/linkedin/person/comments`

**Full URL:** `https://api.snitchfeed.com/v1/data/linkedin/person/comments`

**Summary:** Get LinkedIn person comments

Fetch recent public comments a LinkedIn member wrote on other people's posts, by profile URL, one page per request. Costs 10 credits per successful page.

Returns one page at a time. When `meta.hasMore` is true, request the next page with the same `profileUrl`, `page` incremented by 1, and `paginationToken` set to the value from the previous response.

**Recommended client timeout: 90 seconds.** Most requests resolve in 2-5 seconds, but set your HTTP client timeout to at least 90 seconds to avoid false timeouts on slower lookups.

Credits

Each **successful** response deducts **10 credits** from your organization. Requests that fail (4xx / 5xx) are not billed.

See the [credits documentation](https://snitchfeed.com/docs/api/credits) for the full rate table.

### Request Body

**Content-Type:** `application/json`

#### Fields

Request body for `POST /data/linkedin/person/comments`.

| Field | Type | Required | Description |
|-------|------|:--------:|-------------|
| `profileUrl` | string | ✓ | Public LinkedIn person profile URL, e.g. `https://www.linkedin.com/in/janedoe`. (minLength: 1, maxLength: 2048) |
| `page` | integer |  | Results page number (1-based). Defaults to 1. Max 100. (min: 1, max: 100) |
| `paginationToken` | string,null |  | Cursor from a previous response's `meta.paginationToken`. Required for page 2+ when one is returned. (maxLength: 4096) |

### Responses

#### `200`: Person comments

#### Response fields

Successful `POST /data/linkedin/person/comments` response.

| Field | Type | Required | Description |
|-------|------|:--------:|-------------|
| `requestId` | string | ✓ | Server-generated id for this request (logging / support). |
| `comments` | object[] | ✓ | Comments this person authored, for the requested page. |
| `meta` | object | ✓ | Pagination metadata for LinkedIn person comments. |
| `returnedCount` | integer | ✓ | Number of comments returned in this response. (min: 0) |
| `page` | integer | ✓ | Page number echoed from the request (1-based). (min: 1) |
| `paginationToken` | string,null | ✓ | Opaque cursor for the next page, or null when there are no more comments. |
| `hasMore` | boolean | ✓ | Whether another page is available. When true, call again with the same `profileUrl`, `page` incremented, and `paginationToken` set to this value. |

#### `400`: Validation or bad request

#### Response fields

Validation error

| Field | Type | Required | Description |
|-------|------|:--------:|-------------|
| `requestId` | string | ✓ | Server-generated id for this request (logging / support). |
| `error` | object | ✓ |  |
| `code` | "validation_error" | ✓ |  |
| `message` | string | ✓ |  |
| `issues` | object[] | ✓ |  |

**Example:**
```json
{
  "requestId": "01HXYZABCDEF",
  "error": {
    "code": "validation_error",
    "message": "query: String must contain at least 1 character(s)",
    "issues": [
      {
        "path": "query",
        "message": "String must contain at least 1 character(s)"
      }
    ]
  }
}
```

#### `401`: Unauthorized

#### Response fields

Unauthorized

| Field | Type | Required | Description |
|-------|------|:--------:|-------------|
| `requestId` | string | ✓ | Server-generated id for this request (logging / support). |
| `error` | object | ✓ |  |
| `code` | "unauthorized" | ✓ |  |
| `message` | string | ✓ |  |

**Example:**
```json
{
  "requestId": "01HXYZABCDEF",
  "error": {
    "code": "unauthorized",
    "message": "Invalid or revoked API key."
  }
}
```

#### `403`: Forbidden: the credential lacks the `search:read` scope, the organization's plan does not include API access (API keys only), or the authorizing user's role lacks the required permission.

#### Response fields

Forbidden — the API key lacks a required scope, or its owner's role lacks the underlying permission.

| Field | Type | Required | Description |
|-------|------|:--------:|-------------|
| `requestId` | string | ✓ | Server-generated id for this request (logging / support). |
| `error` | object | ✓ |  |
| `code` | "forbidden" | ✓ |  |
| `message` | string | ✓ |  |

**Example:**
```json
{
  "requestId": "01HXYZABCDEF",
  "error": {
    "code": "forbidden",
    "message": "This credential does not have the \"search:read\" scope."
  }
}
```

#### `429`: Rate limited (20 requests per minute per surface) or too many concurrent in-flight requests (max 2 per organization)

#### Response fields

Rate limited or too many concurrent in-flight requests

| Field | Type | Required | Description |
|-------|------|:--------:|-------------|
| `requestId` | string | ✓ | Server-generated id for this request (logging / support). |
| `error` | object | ✓ |  |
| `code` | "rate_limited" | ✓ |  |
| `message` | string | ✓ |  |
| `retryAfter` | integer | ✓ | Seconds until the rate limit resets (same value as the `Retry-After` response header). |

**Example:**
```json
{
  "requestId": "01HXYZABCDEF",
  "error": {
    "code": "rate_limited",
    "message": "Rate limit exceeded for linkedin. Try again later.",
    "retryAfter": 42
  }
}
```

#### `502`: Upstream error

#### Response fields

Upstream error

| Field | Type | Required | Description |
|-------|------|:--------:|-------------|
| `requestId` | string | ✓ | Server-generated id for this request (logging / support). |
| `error` | object | ✓ |  |
| `code` | "upstream_error" | ✓ |  |
| `message` | string | ✓ |  |

**Example:**
```json
{
  "requestId": "01HXYZABCDEF",
  "error": {
    "code": "upstream_error",
    "message": "LinkedIn search could not be completed. You won't be charged for this request."
  }
}
```

#### `503`: LinkedIn person comments temporarily unavailable

#### Response fields

LinkedIn search temporarily unavailable

| Field | Type | Required | Description |
|-------|------|:--------:|-------------|
| `requestId` | string | ✓ | Server-generated id for this request (logging / support). |
| `error` | object | ✓ |  |
| `code` | "linkedin_unavailable" | ✓ |  |
| `message` | string | ✓ |  |

**Example:**
```json
{
  "requestId": "ce8f36c6-c9e6-4ab1-93b3-d11bbbe886aa",
  "error": {
    "code": "linkedin_unavailable",
    "message": "LinkedIn search is temporarily unavailable. Retry later. You won't be charged for this request."
  }
}
```
