The response

The response is an object which contains the following fields:

  • data: A list of objects representing the search results, each of which contains the following fields:
    • score: A quantitative value determined by the platform representing the level of confidence that the results match your search terms.
    • start: The start time of the matching video clip, expressed in seconds.
    • end: The end time of the matching video clip, expressed in seconds.
    • video_id: The unique identifier of the video that matched your search terms.
    • confidence: A qualitative indicator based on the value of the score field. This field can take one of the following values:
      • high
      • medium
      • low
      • extremely_low
    • (Optional) thumbnail_url: If thumbnail generation has been enabled for this index, the platform returns a string representing the URL of the segment's thumbnail. Note that the URL expires in one hour.
  • page_info: An object that provides information about pagination. The platform returns the results one page at a time, with a default limit of 10 results per page. For details about retrieving the subsequent pages of results and configuring the pagination behavior, see the Pagination > Search results page.
  • pool: An object that contains the total number of videos within the index, the total duration of the videos, and the unique identifier of the index that you've searched.

For a description of each field in the response, see the API Reference > Any-to-video search page.