API ReferenceTranscript

Search transcripts

Search the transcripts in a workspace and return matching snippets with their recording, timestamps and speakers. Defaults to semantic search (find by meaning); pass mode=exact for literal keyword matching. Optionally narrow by folder, speaker, or recording date.

GET/spaces/{spaceId}/recordings/search

Authorization API key in the x-api-key header

Path parameters

  • spaceIdstringrequired

    ID of the workspace.

Query parameters

  • qstringrequired

    What to look for in the transcripts.

  • modestring

    "semantic" (default) finds results by meaning; "exact" matches the literal keywords.

    One of"semantic""exact"

  • folderIdsarray of string

    Restrict to these folder IDs. Repeat the param or comma-separate.

  • speakerIdsarray of string

    Restrict to chunks where these speakers talk. Repeat the param or comma-separate.

  • dateFromstring · date-time

    Only recordings created on/after this ISO 8601 date.

  • dateTostring · date-time

    Only recordings created on/before this ISO 8601 date.

Responses

  • 200Matching transcript snippets

    application/json · array of object

    • documentIdstring
    • textstring

      Speaker-labeled snippet of the matching chunk.

    • startnumber

      Chunk start within the recording, in seconds.

    • endnumber

      Chunk end within the recording, in seconds.

    • speakersarray of string

      Speaker names present in the snippet.

    • scorenumber

      Similarity score (0-1); present for semantic results only.

    • transcriptIdstring
    • recordingRecording
      Show 14 properties
      • idstringrequired
      • createdAtstringrequired
      • updatedAtstringrequired
      • workspaceIdstringrequired
      • titlestringrequired
      • sourceUrlstringrequired

        Only when recording is created using a URL

      • mediaTypeMediaTyperequired

        One of"AUDIO""VIDEO"

      • sourcestringrequired
      • durationnumber
      • statusRecordingStatusrequired

        One of"MEDIA_IMPORT_UPLOADING""MEDIA_IMPORT_PENDING""MEDIA_IMPORT_COMPLETE""MEDIA_IMPORT_FAILED""TRANSCRIPTION_QUEUED""TRANSCRIPTION_PENDING""TRANSCRIPTION_COMPLETE""TRANSCRIPTION_FAILED"

      • recordingFolderIdstring

        Only if it is part of a folder

      • isMediaDeletedboolean
      • createdByIdstringrequired
      • autoDeleteMediaAfterstring

        If set, media of the recording will be auto-deleted after this date

  • 400Invalid input

    application/json · ApiError

    • errorstringrequired

      short description of the error

    • errorDetailsobject

      additional details for the cause of the error if available

  • 401Authentication failed

    application/json · ApiError

    • errorstringrequired

      short description of the error

    • errorDetailsobject

      additional details for the cause of the error if available

  • 402Insufficient credits or need payment

    application/json · ApiError

    • errorstringrequired

      short description of the error

    • errorDetailsobject

      additional details for the cause of the error if available

  • 403You don't have access

    application/json · ApiError

    • errorstringrequired

      short description of the error

    • errorDetailsobject

      additional details for the cause of the error if available

  • 404Not found or don't have access

    application/json · ApiError

    • errorstringrequired

      short description of the error

    • errorDetailsobject

      additional details for the cause of the error if available

curl 'https://transcript.lol/api/v1/spaces/string/recordings/search?q=string' \
  --header 'x-api-key: YOUR_API_KEY'
const response = await fetch("https://transcript.lol/api/v1/spaces/string/recordings/search?q=string", {
  method: "GET",
  headers: {
    "x-api-key": "YOUR_API_KEY"
  },
});
const text = await response.text();
import requests

response = requests.get(
    "https://transcript.lol/api/v1/spaces/string/recordings/search?q=string",
    headers={
        "x-api-key": "YOUR_API_KEY"
    },
)
print(response.text)
[
  {
    "documentId": "string",
    "text": "string",
    "start": 0,
    "end": 0,
    "speakers": [
      "string"
    ],
    "score": 0,
    "transcriptId": "string",
    "recording": {
      "id": "string",
      "createdAt": "string",
      "updatedAt": "string",
      "workspaceId": "string",
      "title": "string",
      "sourceUrl": "string",
      "mediaType": "AUDIO",
      "source": "string",
      "duration": 0,
      "status": "MEDIA_IMPORT_UPLOADING",
      "recordingFolderId": "string",
      "isMediaDeleted": true,
      "createdById": "string",
      "autoDeleteMediaAfter": "string"
    }
  }
]
{
  "error": "string",
  "errorDetails": {}
}
{
  "error": "string",
  "errorDetails": {}
}
{
  "error": "string",
  "errorDetails": {}
}
{
  "error": "string",
  "errorDetails": {}
}
{
  "error": "string",
  "errorDetails": {}
}