POST
/
features
/
search

Headers

Authorization
string | null

Bearer token authentication using your API key. Format: 'Bearer your_api_key'. To get an API key, create an account at mixpeek.com/start and generate a key in your account settings. Example: 'Bearer sk_1234567890abcdef'

X-Namespace
string | null

Optional namespace for data isolation. Example: 'netflix_prod' or 'spotify_recs_dev'. To create a namespace, use the /namespaces endpoint.

Query Parameters

offset_position
integer | null

The position to start returning results from. Used for pagination. Does not work with group_by

page_size
integer
default: 10

Number of results to return per page.

Required range: 1 < x < 100

Body

application/json
queries
object[]
required

List of search queries to perform.

    Behavior:
    - Single query: Results are returned directly from that query
    - Multiple queries: Results are combined using Reciprocal Rank Fusion (RRF)
    
    RRF combines results from multiple queries by:
    1. Taking each item's rank position in each result list
    2. Re-ranking all items by their combined RRF scores
    
    When merging lists from different sources, 
    RRF considers all items that appear in any of the input lists, 
    not just items that appear in all lists.
    
    This helps surface items that rank well across multiple queries while
    reducing the impact of outlier high rankings in single queries.
    
    NOTE: If query array is empty, it will return all features.
    
    
collection_ids
string[]
required

List of Collection IDs to search within, required

filters
object | null

Used for filtering across all indexes

group_by
object | null

Grouping options for search results

sort
object | null

List of fields to sort by, with direction (asc or desc). Supports dot notation for nested fields.

select
string[] | null

List of fields to return in results, supports dot notation. If None, all fields are returned.

reranking_options
object | null

Options for ranking the search results, including weights and feedback application

session_id
string | null

Identifier for tracking search session interactions

return_url
boolean | null
default: false

Return the presigned URL for the asset and preview asset, this will introduce additional latency

Response

200 - application/json

The response is of type object.