Health
Entities
- Taxonomy
Assets
Collections
Namespaces
Feature Extractors
Search Assets
curl --request POST \
--url https://api.mixpeek.com/v1/assets/search \
--header 'Content-Type: application/json' \
--data '{
"query": {
"key": [
"title",
"description"
],
"value": "search term"
},
"collections": [
"col_123",
"my_collection"
],
"filters": {
"case_sensitive": true,
"AND": [
{
"key": "name",
"operator": "eq",
"value": "John"
},
{
"key": "age",
"operator": "gte",
"value": 30
}
],
"OR": [
{
"key": "status",
"operator": "eq",
"value": "active"
},
{
"key": "role",
"operator": "eq",
"value": "admin"
}
],
"NOR": [
{
"key": "department",
"operator": "eq",
"value": "HR"
},
{
"key": "location",
"operator": "eq",
"value": "remote"
}
]
},
"sort": {
"field": "score",
"direction": "desc"
},
"select": [
"<string>"
],
"return_url": true
}'
{
"results": [
{
"asset_id": "ast_123",
"collection_id": "col_123",
"status": "processing",
"file_data": {
"file_size_bytes": 1000000,
"file_type": "image/jpeg"
},
"metadata": {
"description": "A new description",
"title": "New Title"
},
"error": "<any>",
"modality": "image",
"task_id": "task123",
"file_hash": "hash123",
"updated_at": "2023-01-01T00:00:00.000Z",
"created_at": "2023-01-01T00:00:00.000Z",
"score": 0.5,
"url": "<string>",
"preview_url": "<string>",
"duplicate_of": "<string>"
}
],
"pagination": {
"total": 123,
"page": 123,
"page_size": 123,
"total_pages": 123,
"next_page": "<string>",
"previous_page": "<string>"
}
}
Headers
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'
Optional namespace for data isolation. This can be a namespace name or namespace ID. Example: 'netflix_prod' or 'ns_1234567890'. To create a namespace, use the /namespaces endpoint.
Body
List of Collection IDs or Names to search within, required
Complex nested query filters
Whether to perform case-sensitive matching
Logical AND operation
Whether to perform case-sensitive matching
Logical AND operation
Whether to perform case-sensitive matching
Logical AND operation
Logical OR operation
Logical NOR operation
Logical OR operation
Whether to perform case-sensitive matching
Logical AND operation
Logical OR operation
Logical NOR operation
Logical NOR operation
Whether to perform case-sensitive matching
Logical AND operation
Logical OR operation
Logical NOR operation
Logical OR operation
Whether to perform case-sensitive matching
Logical AND operation
Whether to perform case-sensitive matching
Logical AND operation
Logical OR operation
Logical NOR operation
Logical OR operation
Whether to perform case-sensitive matching
Logical AND operation
Logical NOR operation
Logical NOR operation
Whether to perform case-sensitive matching
Logical AND operation
Logical OR operation
Logical NOR operation
Logical NOR operation
Whether to perform case-sensitive matching
Logical AND operation
Whether to perform case-sensitive matching
Logical AND operation
Logical OR operation
Logical NOR operation
Logical OR operation
Whether to perform case-sensitive matching
Logical AND operation
Logical OR operation
Logical NOR operation
Logical NOR operation
Whether to perform case-sensitive matching
Logical AND operation
Logical OR operation
Logical NOR operation
List of fields to return in results
Return the presigned URL for the asset and preview asset, this will introduce additional latency
Response
The unique identifier for the asset
The ID of the collection the asset belongs to
The current status of the asset processing
File data associated with the asset
Additional metadata associated with the asset
The error message if the asset processing failed
The type of media
The task ID
The unique hash of the
The timestamp when the asset was last updated
The timestamp when the asset was created
The relevance score of the asset
The presigned URL for accessing the asset
The presigned URL for accessing the asset preview
The asset_id of the asset that this asset is a duplicate of
Was this page helpful?
curl --request POST \
--url https://api.mixpeek.com/v1/assets/search \
--header 'Content-Type: application/json' \
--data '{
"query": {
"key": [
"title",
"description"
],
"value": "search term"
},
"collections": [
"col_123",
"my_collection"
],
"filters": {
"case_sensitive": true,
"AND": [
{
"key": "name",
"operator": "eq",
"value": "John"
},
{
"key": "age",
"operator": "gte",
"value": 30
}
],
"OR": [
{
"key": "status",
"operator": "eq",
"value": "active"
},
{
"key": "role",
"operator": "eq",
"value": "admin"
}
],
"NOR": [
{
"key": "department",
"operator": "eq",
"value": "HR"
},
{
"key": "location",
"operator": "eq",
"value": "remote"
}
]
},
"sort": {
"field": "score",
"direction": "desc"
},
"select": [
"<string>"
],
"return_url": true
}'
{
"results": [
{
"asset_id": "ast_123",
"collection_id": "col_123",
"status": "processing",
"file_data": {
"file_size_bytes": 1000000,
"file_type": "image/jpeg"
},
"metadata": {
"description": "A new description",
"title": "New Title"
},
"error": "<any>",
"modality": "image",
"task_id": "task123",
"file_hash": "hash123",
"updated_at": "2023-01-01T00:00:00.000Z",
"created_at": "2023-01-01T00:00:00.000Z",
"score": 0.5,
"url": "<string>",
"preview_url": "<string>",
"duplicate_of": "<string>"
}
],
"pagination": {
"total": 123,
"page": 123,
"page_size": 123,
"total_pages": 123,
"next_page": "<string>",
"previous_page": "<string>"
}
}