curl --request POST \
--url https://api.cloudglue.dev/v1/extract \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"url": "<string>",
"prompt": "<string>",
"schema": {},
"enable_video_level_entities": false,
"enable_segment_level_entities": true,
"segmentation_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"segmentation_config": {
"strategy": "uniform",
"uniform_config": {
"window_seconds": 31,
"hop_seconds": 30.5
},
"shot_detector_config": {
"threshold": 1,
"min_seconds": 31,
"max_seconds": 31,
"detector": "adaptive"
},
"start_time_seconds": 1,
"end_time_seconds": 1
}
}'
{
"job_id": "<string>",
"status": "pending",
"url": "<string>",
"created_at": 123,
"extract_config": {
"prompt": "<string>",
"schema": {},
"enable_video_level_entities": false,
"enable_segment_level_entities": true
},
"data": {
"entities": {},
"segment_entities": [
{
"start_time": 123,
"end_time": 123,
"entities": {}
}
]
},
"error": "<string>"
}
Creates a new extract
curl --request POST \
--url https://api.cloudglue.dev/v1/extract \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"url": "<string>",
"prompt": "<string>",
"schema": {},
"enable_video_level_entities": false,
"enable_segment_level_entities": true,
"segmentation_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"segmentation_config": {
"strategy": "uniform",
"uniform_config": {
"window_seconds": 31,
"hop_seconds": 30.5
},
"shot_detector_config": {
"threshold": 1,
"min_seconds": 31,
"max_seconds": 31,
"detector": "adaptive"
},
"start_time_seconds": 1,
"end_time_seconds": 1
}
}'
{
"job_id": "<string>",
"status": "pending",
"url": "<string>",
"created_at": 123,
"extract_config": {
"prompt": "<string>",
"schema": {},
"enable_video_level_entities": false,
"enable_segment_level_entities": true
},
"data": {
"entities": {},
"segment_entities": [
{
"start_time": 123,
"end_time": 123,
"entities": {}
}
]
},
"error": "<string>"
}
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Extract structured data from a video
The body is of type object
.
Successful response
The response is of type object
.