transcript
Search words in transcript
Search through the transcript for keywords. You can search for individual words, numbers, or phrases containing up to five words or numbers.
GET
/
v2
/
transcript
/
{transcript_id}
/
word-search
Copy
curl --request GET \
--url https://api.assemblyai.com/v2/transcript/{transcript_id}/word-search \
--header 'Authorization: <api-key>'
Copy
{
"id": "d5a3d302-066e-43fb-b63b-8f57baf185db",
"total_count": 10,
"matches": [
{
"text": "smoke",
"count": 6,
"timestamps": [
[
250,
650
],
[
49168,
49398
],
[
55284,
55594
],
[
168888,
169118
],
[
215108,
215386
],
[
225944,
226170
]
],
"indexes": [
0,
136,
156,
486,
652,
698
]
},
{
"text": "wildfires",
"count": 4,
"timestamps": [
[
1668,
2346
],
[
33852,
34546
],
[
50118,
51110
],
[
231356,
232354
]
],
"indexes": [
4,
90,
140,
716
]
}
]
}
Authorizations
Path Parameters
ID of the transcript
Query Parameters
Keywords to search for
Response
200
application/json
Word search response
The response is of type object
.
Copy
curl --request GET \
--url https://api.assemblyai.com/v2/transcript/{transcript_id}/word-search \
--header 'Authorization: <api-key>'
Copy
{
"id": "d5a3d302-066e-43fb-b63b-8f57baf185db",
"total_count": 10,
"matches": [
{
"text": "smoke",
"count": 6,
"timestamps": [
[
250,
650
],
[
49168,
49398
],
[
55284,
55594
],
[
168888,
169118
],
[
215108,
215386
],
[
225944,
226170
]
],
"indexes": [
0,
136,
156,
486,
652,
698
]
},
{
"text": "wildfires",
"count": 4,
"timestamps": [
[
1668,
2346
],
[
33852,
34546
],
[
50118,
51110
],
[
231356,
232354
]
],
"indexes": [
4,
90,
140,
716
]
}
]
}
Assistant
Responses are generated using AI and may contain mistakes.