Using Cloudglue’s Extract API, transform your video content into programmable, structured data that you can easily integrate into your applications. In this guide, we’ll demonstrate a simple schema that extracts basic concepts like people, objects, and locations - but you can define any custom schema that matches your specific needs and downstream applications.
Copy
Ask AI
from cloudglue import CloudGlue# Initialize client (API key will be loaded from environment)client = CloudGlue()# Upload your video fileuploaded = client.files.upload( 'path/to/local/video.mp4', wait_until_finish=True)# Define the extraction schemaschema = { "people": ["string"], "objects": ["string"], "locations": ["string"]}# Start extraction using the uploaded file URIextraction = client.extract.run( url=uploaded.uri, prompt="Extract all people, notable objects, and locations that appear in this video", schema=schema,)# Print the resultsprint(extraction.data)