Grouping
Grouping and ungrouping allow you to organize search results in different ways. The platform organizes matching clips under their respective videos when you group them by video. This helps when building a user interface, because it allows your users to better understand and navigate the search results. When you ungroup, the platform presents all matching clips in a flat list, which is useful for a simple view of all results.
Python
Node.js
When you set group_by
to “video”, the response contains an array of objects, each object corresponding to a video that matches your query and includes the following fields:
id
: The unique identifier of the video.clips
: An array that groups the information about all the matching video clips in that video.
Python