Skip to main content
The videos endpoint allows you to search for videos using AI to understand and refine your query based on conversation context.

Endpoint

Replace localhost:3000 with your Perplexica instance URL if running on a different host or port.

Request body

string
required
The video search query.
object
required
Defines the chat model to be used for understanding and refining the query. Get available providers and models from the /api/providers endpoint.
array
An array of message pairs representing the conversation history. Each pair consists of a role (either human or assistant) and the message content.Example:

Response

array
A list of video search results. The structure of each video object depends on the search provider’s response format.

Request example

Response example

The AI model processes your query and conversation history to refine the search and return more relevant results.

Error responses

Internal Server Error
Returned if an error occurs while searching videos.