Skip to main content
GET
/
extract
/
{job_id}
Retrieve the current state of an extraction job
curl --request GET \
  --url https://api.cloudglue.dev/v1/extract/{job_id} \
  --header 'Authorization: Bearer <token>'
{
  "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
  },
  "segmentation_id": "<string>",
  "data": {
    "entities": {},
    "segment_entities": [
      {
        "start_time": 123,
        "end_time": 123,
        "entities": {}
      }
    ]
  },
  "total": 123,
  "limit": 123,
  "offset": 123,
  "error": "<string>"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

job_id
string
required

The unique identifier of the extraction job

Query Parameters

limit
integer
default:50

Maximum number of segment entities to return

Required range: 1 <= x <= 100
offset
integer
default:0

Number of segment entities to skip

Required range: x >= 0

Response

Successful response with job details

job_id
string
required
status
enum<string>
required
Available options:
pending,
processing,
completed,
failed,
not_applicable
url
string

The URL of the processed video

created_at
integer

Unix timestamp of when the job was created

extract_config
object

Configuration for automatic entity extraction from videos

segmentation_id
string

The ID of the segmentation job used for this extraction

data
object

The structured data extracted from the video based on prompt or schema. Only present when status is 'completed'.

total
integer

Total number of segment entities available. Only present when status is 'completed'.

limit
integer

Maximum number of segment entities returned per request. Only present when status is 'completed'.

offset
integer

Number of segment entities skipped. Only present when status is 'completed'.

error
string

Error message if status is 'failed'