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

# Get a transcript excerpt around a moment

> Returns one segment of an episode's transcript: the latest segment starting at or before `at` (seconds), or the opening segment when `at` is omitted. A moment falling between two segments resolves to the earlier one, and a moment outside the episode clamps to the first or last segment, so the returned range does not always contain `at` — `segment_start_seconds` and `segment_end_seconds` report what was actually returned. Every caller gets the same excerpt for a given moment regardless of plan, so unlike the full transcript this response is cacheable and safe to render for signed-out visitors. Use this to open a deep link on a moment; use get-episode-transcript for the whole episode.



## OpenAPI

````yaml /openapi.json get /v1/podcasts/episodes/{id}/transcript/preview
openapi: 3.1.0
info:
  description: Public API for Particle — news intelligence, financial data, and analysis.
  title: Particle API
  version: 0.1.0
servers:
  - url: https://api.particle.pro
security:
  - ApiKeyHeader: []
  - BearerAuth: []
paths:
  /v1/podcasts/episodes/{id}/transcript/preview:
    get:
      tags:
        - Podcast Transcripts
        - tier:standard
      summary: Get a transcript excerpt around a moment
      description: >-
        Returns one segment of an episode's transcript: the latest segment
        starting at or before `at` (seconds), or the opening segment when `at`
        is omitted. A moment falling between two segments resolves to the
        earlier one, and a moment outside the episode clamps to the first or
        last segment, so the returned range does not always contain `at` —
        `segment_start_seconds` and `segment_end_seconds` report what was
        actually returned. Every caller gets the same excerpt for a given moment
        regardless of plan, so unlike the full transcript this response is
        cacheable and safe to render for signed-out visitors. Use this to open a
        deep link on a moment; use get-episode-transcript for the whole episode.
      operationId: get-episode-transcript-preview
      parameters:
        - description: Episode slug or ID
          in: path
          name: id
          required: true
          schema:
            description: Episode slug or ID
            type: string
        - description: >-
            A moment in the episode, in seconds. Returns the latest segment
            starting at or before it, which is not always a segment containing
            it: a value falling in the gap between two segments resolves to the
            earlier one, and a value outside the episode clamps to the first or
            last segment. Read segment_start_seconds/segment_end_seconds for the
            range actually returned. Omit for the opening segment.
          explode: false
          in: query
          name: at
          schema:
            description: >-
              A moment in the episode, in seconds. Returns the latest segment
              starting at or before it, which is not always a segment containing
              it: a value falling in the gap between two segments resolves to
              the earlier one, and a value outside the episode clamps to the
              first or last segment. Read
              segment_start_seconds/segment_end_seconds for the range actually
              returned. Omit for the opening segment.
            format: double
            type: number
        - description: >-
            Output format: dialogue (speaker-attributed lines), text (plain
            text), srt (SubRip subtitles)
          explode: false
          in: query
          name: format
          schema:
            default: dialogue
            description: >-
              Output format: dialogue (speaker-attributed lines), text (plain
              text), srt (SubRip subtitles)
            enum:
              - dialogue
              - text
              - srt
            type: string
      responses:
        '200':
          content:
            application/json:
              schema: {}
          description: OK
          headers:
            Cache-Control:
              schema:
                type: string
        default:
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/PlatformError'
          description: Error
      x-codeSamples:
        - label: cURL
          lang: curl
          source: |-
            curl -H "X-API-Key: $PARTICLE_API_KEY" \
              "https://api.particle.pro/v1/podcasts/episodes/{id}/transcript/preview?format=dialogue"
components:
  schemas:
    PlatformError:
      additionalProperties: false
      properties:
        detail:
          description: >-
            A human-readable explanation specific to this occurrence of the
            problem.
          examples:
            - Property foo is required but is missing.
          type: string
        error_code:
          type: string
        errors:
          description: Optional list of individual error details
          items:
            $ref: '#/components/schemas/ErrorDetail'
          type:
            - array
            - 'null'
        instance:
          description: >-
            A URI reference that identifies the specific occurrence of the
            problem.
          examples:
            - https://example.com/error-log/abc123
          format: uri
          type: string
        resolve:
          $ref: '#/components/schemas/ErrorResolve'
        status:
          description: HTTP status code
          examples:
            - 400
          format: int64
          type: integer
        title:
          description: >-
            A short, human-readable summary of the problem type. This value
            should not change between occurrences of the error.
          examples:
            - Bad Request
          type: string
        type:
          default: about:blank
          description: A URI reference to human-readable documentation for the error.
          examples:
            - https://example.com/errors/example
          format: uri
          type: string
      type: object
    ErrorDetail:
      additionalProperties: false
      properties:
        location:
          description: >-
            Where the error occurred, e.g. 'body.items[3].tags' or
            'path.thing-id'
          type: string
        message:
          description: Error message text
          type: string
        value:
          description: The value at the given location
      type: object
    ErrorResolve:
      additionalProperties: false
      properties:
        action:
          type: string
        endpoint:
          type: string
        message:
          type: string
        method:
          type: string
        url:
          type: string
      required:
        - message
      type: object
  securitySchemes:
    ApiKeyHeader:
      description: Pass your API key in the X-API-Key header (recommended).
      in: header
      name: X-API-Key
      type: apiKey
    BearerAuth:
      description: Pass your API key as a Bearer token in the Authorization header.
      scheme: bearer
      type: http

````