# Get post transcript

Reads available first-party video captions from a public post, with language selection, time-window filtering and bounded timed segments.

- Platform: [LinkedIn](https://docs.upscrape.com/docs/platforms/linkedin)
- Capability ID: `linkedin.post.transcript.get`
- Cost: 1 credit per request
- Maximum runtime: 60 seconds
- Execute endpoint: `POST https://data.upscrape.com/execute`

## Request

Use the exact public capability ID in the shared execute envelope.

```bash
curl --request POST \
  --url https://data.upscrape.com/execute \
  --header "Authorization: Bearer $UPSCRAPE_API_KEY" \
  --header "Content-Type: application/json" \
  --header "Prefer: wait=30" \
  --data '{
  "input": {
    "format": "both",
    "max_segments": 2000,
    "url": "https://www.linkedin.com/feed/update/urn:li:activity:7508957863713714180/"
  },
  "capability": "linkedin.post.transcript.get"
}'
```

## Input

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `end_seconds` | `number` | No | Exclusive upper time bound, greater than start_seconds. Omit for the complete exposed file. |
| `format` | `string` | No | Return transcript text, timed segments, or both. count reports selected cues even for text-only output. |
| `language` | `string` | No | Optional exposed-language match, e.g. en. Does not translate or request an unobserved track. |
| `max_segments` | `integer` | No | Maximum matching cues returned. The source is one caption file, not a paginated endpoint. |
| `start_seconds` | `number` | No | Include cues overlapping this lower bound, preserving original cue timestamps. |
| `url` | `string` | Yes | Public LinkedIn post URL, numeric activity ID, or urn:li:activity:<id>. A caption URL is never required or accepted. |
| `video_index` | `integer` | No | Zero-based video position within the public post. |

### Example input

```json
{
  "format": "both",
  "max_segments": 2000,
  "url": "https://www.linkedin.com/feed/update/urn:li:activity:7508957863713714180/"
}
```

## Response

Successful output is returned in `results[0].data`. Raw platform output is intentionally open-ended and may evolve with the upstream source.

### Illustrative sample output

This redacted fixture is an example, not a fixed response schema.

```json
{
  "available": true,
  "available_languages": [
    "en"
  ],
  "count": 1,
  "coverage": {
    "limitations": [
      "Synthetic illustration; not a live scrape result."
    ],
    "missing_fields": [],
    "source": "linkedin_public_video_captions",
    "status": "partial_public",
    "truncated_fields": []
  },
  "language": "en",
  "matched_count": 1,
  "segments": [
    {
      "end_seconds": 1.5,
      "start_seconds": 0,
      "text": "Synthetic caption."
    }
  ],
  "text": "Synthetic caption.",
  "truncated": false,
  "url": "https://www.linkedin.com/feed/update/urn:li:activity:100",
  "video_count": 1,
  "video_index": 0
}
```
### Illustrative output fields

Derived from the sample above for orientation only. These fields are not a fixed response schema.

| Path | Observed type | Example |
| --- | --- | --- |
| `available` | `boolean` | true |
| `available_languages` | `array` | 1 items |
| `available_languages` | `array` | 1 items |
| `count` | `integer` | 1 |
| `coverage` | `object` | 5 fields |
| `coverage.limitations` | `array` | 1 items |
| `coverage.missing_fields` | `array` | 0 items |
| `coverage.source` | `string` | linkedin_public_video_captions |
| `coverage.status` | `string` | partial_public |
| `coverage.truncated_fields` | `array` | 0 items |
| `language` | `string` | en |
| `matched_count` | `integer` | 1 |
| `segments` | `array` | 1 items |
| `segments` | `array` | 1 items |
| `text` | `string` | Synthetic caption. |
| `truncated` | `boolean` | false |
| `url` | `string` | https://www.linkedin.com/feed/update/urn:li:activity:100 |
| `video_count` | `integer` | 1 |
| `video_index` | `integer` | 0 |

## Execution behavior

A `200` response completed inline. A `202` response was queued; poll `GET /jobs/{id}` until the job reaches `completed` or `failed`. Use an `Idempotency-Key` when retrying must not create a duplicate logical job.

## Related documentation

- [Authentication](https://docs.upscrape.com/docs/api/authentication)
- [Jobs and results](https://docs.upscrape.com/docs/api/jobs)
- [Errors and retries](https://docs.upscrape.com/docs/api/errors)
- [Idempotency](https://docs.upscrape.com/docs/api/idempotency)
