> ## Documentation Index
> Fetch the complete documentation index at: https://docs.vidnavigator.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Get LIVE Transcription

> The state of a session and its final sentences, in order. Read the transcript in pages: pass the `pagination.next_after_seq` of an answer as `after_seq` of the next call to receive only what was said since. While the session is `listening`, call again to follow the LIVE; this is also how to catch up after an interruption of the event stream.

A session and its sentences stay readable for 24 hours after it ends.

Get a [LIVE transcription session](https://docs.vidnavigator.com/api-reference/endpoint/tiktok-live-transcribe.md) and its final sentences, in order, a page at a time.

## Overview

Use this endpoint to:

- **follow a LIVE by polling**: call it again with the `pagination.next_after_seq` of the previous answer as `after_seq`, and receive only what was said since;
- **catch up** after an interruption of the [event stream](https://docs.vidnavigator.com/api-reference/endpoint/tiktok-live-transcribe-events.md) or of your own service;
- **check a session**: is it still listening, why did it end, how much was transcribed;
- **read the whole transcript** of a session, up to 24 hours after it ends.

Reading a session costs nothing.

## Request Parameters

| Parameter    | In    | Required | Description                                                                                        |
| ------------ | ----- | -------- | -------------------------------------------------------------------------------------------------- |
| `session_id` | path  | Yes      | The `id` of the session, as returned when it was started.                                          |
| `after_seq`  | query | No       | Return the final sentences whose `seq` is greater than this. Default `0`: from the first sentence. |
| `limit`      | query | No       | Maximum number of sentences returned, between `1` and `500`. Default `200`.                        |

## Example Usage

```bash cURL
curl "https://api.vidnavigator.com/v1/tiktok/live/transcribe/3f0c1c1e-7a52-4d0e-9a3b-0d2f8c1b7e55?after_seq=56" \
  -H "X-API-Key: YOUR_API_KEY"
```

```python Python
from vidnavigator import VidNavigatorClient

client = VidNavigatorClient(api_key="YOUR_API_KEY")
resp = client.get_tiktok_live_transcription("3f0c1c1e-7a52-4d0e-9a3b-0d2f8c1b7e55", after_seq=56)

print(resp.data.session.status)
for segment in resp.data.segments:
    print(segment.seq, segment.start, segment.text)
print("next after_seq:", resp.data.pagination.next_after_seq)
```

```javascript JavaScript
import { VidNavigatorClient } from 'vidnavigator';

const vn = new VidNavigatorClient({ apiKey: 'YOUR_API_KEY' });
const { session, segments, pagination } = await vn.getTikTokLiveTranscription(
  '3f0c1c1e-7a52-4d0e-9a3b-0d2f8c1b7e55',
  { after_seq: 56 }
);

console.log(session.status);
for (const s of segments) console.log(s.seq, s.start, s.text);
console.log('next after_seq:', pagination.next_after_seq);
```

## Success Response (200)

```json
{
  "status": "success",
  "data": {
    "session": {
      "id": "3f0c1c1e-7a52-4d0e-9a3b-0d2f8c1b7e55",
      "status": "listening",
      "end_reason": null,
      "error": null,
      "room": {
        "id": "7705498471838665494",
        "title": "Late night Q&A",
        "url": "https://www.tiktok.com/@creator/live",
        "author": { "unique_id": "creator", "nickname": "Creator" }
      },
      "language": null,
      "include_partials": true,
      "include_speakers": true,
      "max_duration_minutes": 120,
      "created_at": "2026-12-03T11:18:19.412Z",
      "started_at": "2026-12-03T11:18:20.031Z",
      "ended_at": null,
      "duration_seconds": 109.2,
      "segments_count": 58,
      "stop_requested": false
    },
    "segments": [
      {
        "seq": 57,
        "start": 103.29,
        "end": 104.88,
        "text": "I'm from Gambia.",
        "language": "en",
        "speaker": "B",
        "timestamp": "2026-12-03T11:20:03.290Z"
      },
      {
        "seq": 58,
        "start": 105.4,
        "end": 108.02,
        "text": "Welcome, thank you for joining us tonight.",
        "language": "en",
        "speaker": "A",
        "timestamp": "2026-12-03T11:20:05.400Z"
      }
    ],
    "partial": { "text": "So the next question is", "start": 108.6 },
    "pagination": {
      "after_seq": 56,
      "next_after_seq": 58,
      "has_more": false
    }
  }
}
```

## Understanding the Response

#### `session`

The session, in the shape described on [TikTok LIVE Transcription](https://docs.vidnavigator.com/api-reference/endpoint/tiktok-live-transcribe.md#the-session): its `status` (`starting`, `listening`, `ended`, `failed`), why it ended (`end_reason`) or failed (`error`), the room, and the seconds and sentences transcribed so far.

#### `segments`

The final sentences after `after_seq`, in order, at most `limit`. A final sentence never changes.

| Field       | Description                                                                                                                                                                                         |
| ----------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `seq`       | Number of the sentence in its session, from 1, without gaps                                                                                                                                         |
| `start`     | Seconds from the start of the session to the start of the sentence                                                                                                                                  |
| `end`       | Seconds from the start of the session to the end of the sentence                                                                                                                                    |
| `text`      | The sentence                                                                                                                                                                                        |
| `language`  | The language detected for this sentence, as a two-letter code, or `null`                                                                                                                            |
| `speaker`   | Only with `include_speakers`: a label (`A`, `B`...) that tells the voices of the session apart. It does not identify a person, and labels can be assigned anew after an interruption of the stream. |
| `timestamp` | When the sentence started, to within a few seconds (UTC, ISO 8601)                                                                                                                                  |

#### `partial`

The sentence being said (`text`, and its `start` in seconds), for a session started with `include_partials`. It can still change, and is `null` between two sentences and on a session started without `include_partials`.

#### `pagination`

| Field            | Description                                                                                                                       |
| ---------------- | --------------------------------------------------------------------------------------------------------------------------------- |
| `after_seq`      | The `after_seq` of this call                                                                                                      |
| `next_after_seq` | The `seq` of the last sentence returned: pass it as `after_seq` of the next call. Equal to `after_seq` when nothing new was said. |
| `has_more`       | `true` when sentences after `next_after_seq` already exist: call again at once                                                    |

## Following a LIVE by Polling

1. Call with `after_seq=0`, handle `segments`, keep `pagination.next_after_seq`.
2. While `has_more` is `true`, call again at once with `after_seq` set to that value.
3. Otherwise wait a second or two, and call again.
4. Stop when `session.status` is `ended` or `failed` and `has_more` is `false`: every sentence was read.

To follow many rooms, the [event stream](https://docs.vidnavigator.com/api-reference/endpoint/tiktok-live-transcribe-events.md) is the better fit: one connection carries every session.

## Error Cases

| Status | `error`             | When                                                                               |
| ------ | ------------------- | ---------------------------------------------------------------------------------- |
| `400`  | `invalid_parameter` | `after_seq` is not an integer of 0 or more, or `limit` is outside 1-500            |
| `403`  | `access_denied`     | LIVE transcription is not enabled for your organization                            |
| `404`  | `session_not_found` | No session with this `id` in your organization, or it ended more than 24 hours ago |

## OpenAPI

````yaml GET /tiktok/live/transcribe/{session_id}
openapi: 3.0.3
info:
  title: VidNavigator Developer API
  version: 1.0.0
servers:
  - url: https://api.vidnavigator.com/v1
    description: Production server
security:
  - ApiKeyAuth: []
paths:
  /tiktok/live/transcribe/{session_id}:
    get:
      summary: Get a LIVE transcription session and its transcript
      description: |-
        The state of a session and its final sentences, in order. Read the transcript in pages: pass the `pagination.next_after_seq` of an answer as `after_seq` of the next call to receive only what was said since. While the session is `listening`, call again to follow the LIVE; this is also how to catch up after an interruption of the event stream.

        A session and its sentences stay readable for 24 hours after it ends.
      operationId: getTikTokLiveTranscription
      tags:
        - Speech to text
      parameters:
        - name: session_id
          in: path
          required: true
          description: The `id` of the session, as returned when it was started.
          schema:
            type: string
            format: uuid
        - name: after_seq
          in: query
          required: false
          description: Return the final sentences whose `seq` is greater than this.
          schema:
            type: integer
            minimum: 0
            default: 0
        - name: limit
          in: query
          required: false
          schema:
            type: integer
            minimum: 1
            maximum: 500
            default: 200
      responses:
        "200":
          description: The session and a page of its final sentences.
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: string
                    enum:
                      - success
                  data:
                    type: object
                    properties:
                      session:
                        $ref: "#/components/schemas/LiveTranscriptionSession"
                      segments:
                        type: array
                        items:
                          $ref: "#/components/schemas/LiveTranscriptSegment"
                      partial:
                        type: object
                        nullable: true
                        description: The sentence being said, for a session started with `include_partials`; null between two sentences.
                        properties:
                          text:
                            type: string
                          start:
                            type: number
                            description: Seconds from the start of the session.
                      pagination:
                        type: object
                        properties:
                          after_seq:
                            type: integer
                          next_after_seq:
                            type: integer
                            description: "The `seq` of the last sentence returned: the `after_seq` of the next call."
                          has_more:
                            type: boolean
                            description: True when sentences after `next_after_seq` already exist.
        "400":
          $ref: "#/components/responses/BadRequest"
        "401":
          $ref: "#/components/responses/Unauthorized"
        "403":
          description: LIVE transcription is not enabled for the organization of this API key (`access_denied`).
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: string
                    enum:
                      - error
                  error:
                    type: string
                    enum:
                      - access_denied
                      - insufficient_scope
                  error_code:
                    type: string
                    enum:
                      - access_denied
                      - insufficient_scope
                  message:
                    type: string
        "404":
          description: No session with this id in your organization (`session_not_found`).
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: string
                    enum:
                      - error
                  error:
                    type: string
                    enum:
                      - session_not_found
                  error_code:
                    type: string
                    enum:
                      - session_not_found
                  message:
                    type: string
        "429":
          $ref: "#/components/responses/RateLimitExceeded"
        "500":
          $ref: "#/components/responses/InternalServerError"
        "503":
          $ref: "#/components/responses/ServiceUnavailable"
components:
  schemas:
    LiveTranscriptionSession:
      type: object
      description: A real-time transcription session on one TikTok LIVE room.
      properties:
        id:
          type: string
          format: uuid
        status:
          type: string
          enum:
            - starting
            - listening
            - ended
            - failed
          description: "`starting`: accepted, not listening yet (a second or two). `listening`: the room is being transcribed. `ended`: over, see `end_reason`. `failed`: could not go on, see `error`."
        end_reason:
          type: string
          nullable: true
          enum:
            - live_ended
            - stopped
            - max_duration_reached
            - insufficient_credits
            - no_reader
          description: "Why an `ended` session ended: the LIVE ended, you stopped it, `max_duration_minutes` was reached, the organization ran out of credits, or nobody followed the session for a while (`no_reader`: no event stream open on it, no read of it, no webhook delivering; see https://docs.vidnavigator.com/guides/tiktok-live-transcription). Null otherwise."
        error:
          type: object
          nullable: true
          description: Why a `failed` session failed. Null otherwise.
          properties:
            code:
              type: string
              enum:
                - transcription_unavailable
                - stream_unavailable
                - internal_error
              description: "`transcription_unavailable`: the transcription could not go on. `stream_unavailable`: the sound of the LIVE could not be read. `internal_error`: an unexpected error."
            message:
              type: string
        room:
          type: object
          description: The room being transcribed.
          properties:
            id:
              type: string
              example: "7705498471838665494"
            title:
              type: string
              nullable: true
            url:
              type: string
              nullable: true
              example: https://www.tiktok.com/@tiktok/live
            author:
              type: object
              properties:
                unique_id:
                  type: string
                  nullable: true
                nickname:
                  type: string
                  nullable: true
        language:
          type: string
          nullable: true
          description: The `language` given when the session was started, if any.
        include_partials:
          type: boolean
        include_speakers:
          type: boolean
        max_duration_minutes:
          type: integer
        created_at:
          type: string
          format: date-time
        started_at:
          type: string
          format: date-time
          nullable: true
          description: When the session started listening.
        ended_at:
          type: string
          format: date-time
          nullable: true
        duration_seconds:
          type: number
          description: Seconds of the LIVE transcribed so far.
        segments_count:
          type: integer
          description: "Final sentences so far: the `seq` of the last one."
        stop_requested:
          type: boolean
          description: True once a stop was asked and until the session has ended.
    LiveTranscriptSegment:
      type: object
      description: "A final sentence of a LIVE transcription: it will not change."
      properties:
        seq:
          type: integer
          description: Number of the sentence in its session, from 1, without gaps.
          example: 57
        start:
          type: number
          description: Seconds from the start of the session to the start of the sentence.
          example: 103.29
        end:
          type: number
          description: Seconds from the start of the session to the end of the sentence.
          example: 104.88
        text:
          type: string
          example: I'm from Gambia.
        language:
          type: string
          nullable: true
          description: The language detected for this sentence, as a two-letter code.
          example: en
        speaker:
          type: string
          nullable: true
          description: "Only with `include_speakers`: a label (`A`, `B`...) that tells the voices of the session apart. It does not identify a person, and labels can be assigned anew after an interruption of the stream."
          example: A
        timestamp:
          type: string
          format: date-time
          nullable: true
          description: When the sentence started, to within a few seconds (UTC).
  responses:
    BadRequest:
      description: Bad request - invalid parameters. On /transcribe the `error` field may be `missing_parameter`, `unsupported_url`, `invalid_url`, `request_body_required`, `video_too_long`, or `no_videos_found` (the post carries no video).
      content:
        application/json:
          schema:
            type: object
            properties:
              status:
                type: string
                enum:
                  - error
              error:
                type: string
              message:
                type: string
    Unauthorized:
      description: The API key is missing (`missing_api_key`), unknown or malformed (`invalid_api_key`), or deactivated (`api_key_deactivated`).
      content:
        application/json:
          schema:
            type: object
            properties:
              status:
                type: string
                enum:
                  - error
              error:
                type: string
                enum:
                  - missing_api_key
                  - invalid_api_key
                  - api_key_deactivated
              error_code:
                type: string
                description: Same as `error`.
              message:
                type: string
    RateLimitExceeded:
      description: "Too many requests (`rate_limit_exceeded`). Wait `Retry-After` seconds before the next call. Limits: https://docs.vidnavigator.com/api-reference/rate-limiting"
      headers:
        Retry-After:
          description: Seconds to wait before the next call.
          schema:
            type: integer
        X-RateLimit-Limit:
          description: Calls allowed in the current window for this kind of call.
          schema:
            type: integer
        X-RateLimit-Remaining:
          description: "Calls left in the current window: 0 on this answer."
          schema:
            type: integer
      content:
        application/json:
          schema:
            type: object
            properties:
              status:
                type: string
                enum:
                  - error
              error:
                type: string
                enum:
                  - rate_limit_exceeded
              error_code:
                type: string
                description: Same as `error`.
              message:
                type: string
              retry_after_seconds:
                type: integer
                description: Same as the `Retry-After` header.
    InternalServerError:
      description: Internal server error
      content:
        application/json:
          schema:
            type: object
            properties:
              status:
                type: string
                enum:
                  - error
              error:
                type: string
                enum:
                  - metadata_fetch_failed
                  - audio_extraction_failed
                  - transcription_failed
                  - internal_server_error
              message:
                type: string
    ServiceUnavailable:
      description: "The service is briefly unable to authenticate or bill the request (`service_unavailable`). Nothing was charged: retry after the `Retry-After` seconds."
      content:
        application/json:
          schema:
            type: object
            properties:
              status:
                type: string
                enum:
                  - error
              error:
                type: string
                enum:
                  - service_unavailable
              error_code:
                type: string
                description: Same as `error`.
              message:
                type: string
      headers:
        Retry-After:
          description: Seconds to wait before retrying.
          schema:
            type: integer
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key
      description: API key authentication. Include your VidNavigator API key in the X-API-Key header.
````
