Developer guide
Work with video
in your own code.
This read-only API exposes the public WitLabs example collection. All requests below work without an API key.
For developers
Make your first request.
Search the public collection, fetch one timecoded action or find visually related frames. Run the request here, then take the same URL into your application.
WitLabs APIPublic sample
curl --silent \
"https://witlabs.org/api/v1/moments?q=dunk"GET · application/json
Read a moment
Every record includes an ID, a source video, and start and end times in seconds relative to that video. Open the poster for a frame preview and follow the source link for attribution. Action examples also include a downloadable annotated MP4.
Choose a query
- GET /api/v1/moments
- List the collection. Add
?q=dunkto rank matching titles, descriptions and labels. - GET /api/v1/moments/court-2
- Retrieve a single record. Unknown IDs return HTTP 404.
- GET /api/v1/moments?similar_to=court-2
- Retrieve the nearest reference frames from the visual index. Use one search method per request.
Use the result
The response uses site-relative media paths. Resolve them against https://witlabs.org. Seek a player to start, stop at end, or download the ready-made clip when clip_url is present.