Get Started
API Reference
- Index or Embed Videos
- Manage Collections
- Search Video Moments
- Generate Text Embedding
- Embed UI Widget
Search Video Moments
Search within videos
POST
/
search
/
Copy
curl --request POST \
--url https://api.trytldw.ai/v1/search/ \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"collection_id": "c1a2b3c4-1a2b-3c4d-5e6f-7g8h9i0j1k2l",
"media_ids": "m1a2b3c4-1a2b-3c4d-5e6f-7g8h9i0j1k2l",
"search_term": "sunset beach",
"similarity_threshold": 0.28,
"offset": 10,
"limit": 30,
"configs": {
"smart_remove_false_positive": false
},
"filter": {
"user_id": "1221"
}
}'
Copy
{
"scenes": [
{
"media_id": "<string>",
"external_id": "<string>",
"start_ms": 123,
"end_ms": 123,
"max_similarity": 123,
"fragments": [
{
"uuid": "<string>",
"start_ms": 123,
"end_ms": 123,
"similarity": 123,
"description": "<string>"
}
]
}
],
"metadata": {}
}
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Body
application/json
Response
200
application/json
Successful Response
The response is of type object
.
Was this page helpful?
Copy
curl --request POST \
--url https://api.trytldw.ai/v1/search/ \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"collection_id": "c1a2b3c4-1a2b-3c4d-5e6f-7g8h9i0j1k2l",
"media_ids": "m1a2b3c4-1a2b-3c4d-5e6f-7g8h9i0j1k2l",
"search_term": "sunset beach",
"similarity_threshold": 0.28,
"offset": 10,
"limit": 30,
"configs": {
"smart_remove_false_positive": false
},
"filter": {
"user_id": "1221"
}
}'
Copy
{
"scenes": [
{
"media_id": "<string>",
"external_id": "<string>",
"start_ms": 123,
"end_ms": 123,
"max_similarity": 123,
"fragments": [
{
"uuid": "<string>",
"start_ms": 123,
"end_ms": 123,
"similarity": 123,
"description": "<string>"
}
]
}
],
"metadata": {}
}
Assistant
Responses are generated using AI and may contain mistakes.