The generated API clients are a work in progress, you can also find our stable clients on the Algolia documentation.

Skip to main content

Recommend API (1.0.0)

Download OpenAPI specification:Download

API powering the Recommend feature of Algolia.

Recommendations & Trending

Manage recommendations.

Get results

Returns recommendations or trending results, for a specific model and objectID.

Authorizations:
(appIdapiKey)
Request Body schema: application/json
required
Array of baseTrendingRequest (object) or baseRecommendationRequest (object) (recommendationsRequest)

The getRecommendations requests.

Array
One of
model
required
string (trendingModels)
Enum: "trending-facets" "trending-items"

The trending model to use.

facetName
string

The facet name to use for trending models.

facetValue
string

The facet value to use for trending models.

indexName
required
string (indexName)

The Algolia index name.

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 (searchParamsObject)
object (searchParamsObject)

Responses

Request samples

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

Response samples

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