# Video detail

Exact public video metadata, author, engagement and native media fields via HTTP.

- Platform: [TikTok](https://docs.upscrape.com/docs/platforms/tiktok)
- Capability ID: `tiktok.post.get`
- Cost: 1 credit per request
- Maximum runtime: 45 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": {
    "handle": "tiktok",
    "video_id": "7680721699171601694"
  },
  "capability": "tiktok.post.get"
}'
```

## Input


| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `handle` | `string` | No | Account handle. |
| `url` | `string` | No | Public URL of the page to fetch. |
| `video_id` | `string` | No | Video identifier. |

### Example input

```json
{
  "handle": "tiktok",
  "video_id": "7680721699171601694"
}
```

## 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 example shows one response. Values and optional fields vary with the data available.

```json
{
  "video": {
    "author_handle": "tiktok",
    "comment_count": 2357,
    "create_time": 1788307388,
    "id": "7680721699171601694",
    "like_count": 13800,
    "play_count": 309400,
    "share_count": 1391
  }
}
```
### Illustrative output fields

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

| Path | Observed type | Example |
| --- | --- | --- |
| `video` | `object` | 7 fields |
| `video.author_handle` | `string` | tiktok |
| `video.comment_count` | `integer` | 2357 |
| `video.create_time` | `integer` | 1788307388 |
| `video.id` | `string` | 7680721699171601694 |
| `video.like_count` | `integer` | 13800 |
| `video.play_count` | `integer` | 309400 |
| `video.share_count` | `integer` | 1391 |

## 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)
