Transcripts

Search words in transcript

GET
Search through the transcript for keywords. You can search for individual words, numbers, or phrases containing up to five words or numbers.

Path parameters

transcript_idstringRequired
ID of the transcript

Query parameters

wordsstringOptional
Keywords to search for

Response

This endpoint returns an object
id
string
The ID of the transcript
total_count
integer

The total count of all matched instances. For e.g., word 1 matched 2 times, and word 2 matched 3 times, total_count will equal 5.

matches
list of objects
The matches of the search
GET
1curl -G https://api.assemblyai.com/v2/transcript/:transcript_id/word-search \
2 -H "Authorization: <apiKey>" \
3 -d words=string
200
Retrieved
1{
2 "id": "string",
3 "total_count": 0,
4 "matches": [
5 {
6 "text": "string",
7 "count": 0,
8 "timestamps": [
9 [
10 0
11 ]
12 ],
13 "indexes": [
14 0
15 ]
16 }
17 ]
18}