Skip to main content
Qdrant provides powerful search capabilities including vector similarity search, recommendation systems, and flexible query APIs. These endpoints help you find similar vectors and implement semantic search.

Search Points

Retrieve the closest points based on vector similarity and optional filtering conditions.
Path Parameters
string
required
Name of the collection to search in
Query Parameters
string
Read consistency level: majority, quorum, or all
integer
Request timeout in seconds
Request Body
array | object
required
Vector to search for. Can be a dense vector array, sparse vector, or named vector.
integer
Maximum number of results to return. Default is 10.
integer
Offset for pagination. Default is 0.
object
Filter conditions to apply
array
All conditions must match
array
At least one condition must match
array
All conditions must NOT match
object
Search parameters
integer
HNSW graph exploration factor. Higher values = more accurate but slower.
boolean
If true, perform exact search instead of approximate
object
Quantization search parameters
float
Only return results with a score above this threshold
boolean | array | object
Whether to return payload. Can be true, false, array of field names, or include/exclude object.
boolean | array
Whether to return vectors. Can be true, false, or array of vector names.
Response
array
Array of scored points
integer | string
Point ID
float
Similarity score
object
Point payload (if requested)
array | object
Point vector (if requested)
Perform multiple search queries in a single request for better performance.
Path Parameters
string
required
Name of the collection to search in
Query Parameters
string
Read consistency level
integer
Request timeout in seconds
Request Body
array
required
Array of search requests. Each search has the same parameters as the single search endpoint.
Response
array
Array of result arrays, one for each search query

Search Groups

Search for points grouped by a specific payload field.
Path Parameters
string
required
Name of the collection to search in
Query Parameters
string
Read consistency level
integer
Request timeout in seconds
Request Body
array | object
required
Vector to search for
string
required
Payload field to group results by
integer
required
Maximum number of groups to return
integer
required
Maximum number of points per group
object
Filter conditions
boolean | array | object
Whether to return payload
boolean | array
Whether to return vectors
object
Join payload from another collection
Response
object
array
Array of groups
any
Group identifier (value of the group_by field)
array
Points in this group

Recommend Points

Get recommendations based on positive and negative example points.
Path Parameters
string
required
Name of the collection
Query Parameters
string
Read consistency level
integer
Request timeout in seconds
Request Body
array
required
Array of point IDs or vectors to use as positive examples
array
Array of point IDs or vectors to use as negative examples
integer
Maximum number of results to return
integer
Offset for pagination
object
Filter conditions
string
Vector name to use for recommendation (for named vectors)
object
Lookup positive/negative examples from another collection
float
Minimum score threshold
boolean | array | object
Whether to return payload
boolean | array
Whether to return vectors
Response
array
Array of scored points with id, score, payload, and vector

Recommend Batch

Perform multiple recommendation queries in a single request.
Path Parameters
string
required
Name of the collection
Query Parameters
string
Read consistency level
integer
Request timeout in seconds
Request Body
array
required
Array of recommendation requests
Response
array
Array of result arrays, one for each recommendation query

Recommend Groups

Get recommendations grouped by a payload field.
Parameters are similar to search groups, but with positive/negative examples instead of a query vector.

Query Points

Unified query API that supports multiple query types including nearest neighbors, discovery, and context-based search.
Path Parameters
string
required
Name of the collection
Query Parameters
string
Read consistency level
integer
Request timeout in seconds
Request Body
array | object
required
Query specification. Can be:
  • Dense vector array for nearest neighbor search
  • Object with nearest for vector search
  • Object with recommend for recommendation
  • Object with discover for discovery search
  • Object with context for context-based search
  • Object with order_by for payload-based ordering
integer
Maximum number of results
integer
Offset for pagination
object
Filter conditions
float
Minimum score threshold
boolean | array | object
Whether to return payload
boolean | array
Whether to return vectors
Response
object
array
Array of scored points

Query Batch

Perform multiple query operations in a single request.
Path Parameters
string
required
Name of the collection
Query Parameters
string
Read consistency level
integer
Request timeout in seconds
Request Body
array
required
Array of query requests
Response
array
Array of query results

Query Groups

Perform query operations with results grouped by a payload field.
Path Parameters
string
required
Name of the collection
Query Parameters
string
Read consistency level
integer
Request timeout in seconds
Request Body
array | object
required
Query specification (same as query points)
string
required
Payload field to group by
integer
required
Maximum number of groups
integer
required
Maximum points per group
object
Filter conditions
boolean | array | object
Whether to return payload
boolean | array
Whether to return vectors
Response
object
array
Array of groups with grouped query results

Search Matrix (Pairs)

Compute similarity scores between all pairs of points.
Path Parameters
string
required
Name of the collection
Request Body
integer
Number of points to sample for matrix computation
integer
Number of neighbors per point
object
Filter to select points
Response
object
array
Array of point pairs with similarity scores

Search Matrix (Offsets)

Compute similarity matrix in offset format.
Parameters are identical to search matrix pairs, but returns results in a compressed offset format suitable for large matrices.

Count Points

Count points in a collection that match a given filter.
Path Parameters
string
required
Name of the collection to count in
Query Parameters
string
Read consistency level: majority, quorum, or all
integer
Request timeout in seconds
Request Body
object
Filter conditions to apply. Only points matching this filter will be counted.
boolean
If true, provide exact count. If false, may provide approximate count for better performance.
Response
object
integer
Number of points matching the filter

Facet

Count points for each unique value of a payload key, optionally with filtering.
Path Parameters
string
required
Name of the collection to facet in
Query Parameters
string
Read consistency level: majority, quorum, or all
integer
Request timeout in seconds
Request Body
string
required
Payload key to facet by
integer
Maximum number of unique values to return. Default is 10.
object
Filter conditions to apply before faceting
boolean
If true, provide exact counts. If false, may use approximations for better performance.
Response
object
array
Array of facet results
any
The unique value of the payload key
integer
Number of points with this value
Example: Count products by category

Discover Points

Look for points that satisfy context pairs (positive/negative examples) and optionally approach a target.
Path Parameters
string
required
Name of the collection to search in
Query Parameters
string
Read consistency level: majority, quorum, or all
integer
Request timeout in seconds
Request Body
array
Array of positive-negative example pairs. Each pair consists of a positive point ID and a negative point ID. Results will be points that are more similar to positives than negatives.
array | object
Optional target vector to approach. Can be a dense vector or named vector.
integer
Maximum number of results to return. Default is 10.
object
Filter conditions to apply
boolean | array | object
Whether to return payload
boolean | array
Whether to return vectors
Response
array
Array of scored points. The score combines context ranking and distance to target.
integer | string
Point ID
float
Combined score. Integer part represents context rank, decimal part represents distance to target.
object
Point payload (if requested)
Use Case: Analogical Search Find items that have a similar relationship to the target as the positive/negative pairs demonstrate.