Quick Start
Find specific moments in your videos instantly. Upload a video, and then search for anything inside it using natural language.
Installation
Section titled “Installation”npm install zapdos-js
Get your API key from https://app.zapdoslabs.com:
import { createClient } from "zapdos-js";
const client = createClient({ apiKey: "your-api-key-here",});
Upload & Index a Video
Section titled “Upload & Index a Video”Upload a video file and it gets automatically indexed for search:
// Upload single fileconst result = await client.upload("./my-video.mp4", { onCompleted: ({ object_id }) => { console.log("Video uploaded:", object_id); }, job: { onIndexingCompleted: ({ object_id }) => { console.log("Video ready for search:", object_id); }, },});
Search Inside Videos
Section titled “Search Inside Videos”Search for specific moments using natural language:
const searchResults = await client.search("when the bug gets fixed");
if (searchResults.data) { searchResults.data.items.forEach((scene) => { console.log( `Found at ${scene.metadata.start_ms}ms in video ${scene.metadata.object_id}` ); });}
That’s it! Your video is now searchable by content.