Skip to main content

Recommend API (0.1.0)

API powering the Recommend feature of Algolia.

Authentication

appId

Security Scheme Type API Key
Header parameter name: X-Algolia-Application-Id

apiKey

Security Scheme Type API Key
Header parameter name: X-Algolia-API-Key

recommend

Returns recommendations for a specific model and objectID.

Returns recommendations for a specific model and objectID.

Authorizations:
Request Body schema: application/json
required
Array of objects (recommendationRequest) [ items ]

The getRecommendations requests.

Array
indexName
required
string (indexName)

The Algolia index name.

objectID
required
string (objectID)

Unique identifier of the object.

model
required
string
Enum: "related-products" "bought-together"

The recommendation model to use.

threshold
required
integer [ 0 .. 100 ]

The threshold to use when filtering recommendations by their score.

maxRecommendations
integer
Default: 0

The max number of recommendations to retrieve. If it's set to 0, all the recommendations of the objectID may be returned.

object (searchParams)
object (searchParams)

Responses

Request samples

Content type
application/json
{
  • "requests": [
    ]
}

Response samples

Content type
application/json
{
  • "results": [
    ]
}