Skip to main content
GET
Get recommendations
Fetch a ranked list for an application user and a context. Send the user’s stable ID explicitly so different visitors do not share the credential’s fallback identity.

Use the response

Read data for the ranked results and keep request_id with the rendered list. Send that ID with subsequent clicks or purchases to preserve attribution. recommendations is a compatibility alias for the same results. Item identifiers are integers. If the context enables item grouping, the result contains group aggregates rather than a flat item list. This is different from context groups, which coordinate several rails. For ordinary pagination, use the returned continuation value with starting_after. For auto sections, use mode=auto and the returned next_cursor as cursor; stop when done is true or no next cursor is available. The optional search_intent and explanation fields describe signals that contributed to the ranking. See search signals and Explainability to interpret them. See Recommendations for similar-item rails, baskets, anonymous users and filtering. Use the batch endpoint for several rails on one page.

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Scopes

neuronsearchlab-api/read

Read recommendations, items, and events.

Headers

X-Request-Id
string<uuid>

Optional stable request ID for retries and downstream event attribution. The same ID is returned in the response body and X-Request-Id response header.

X-Session-Id
string

Optional session identifier stored with served-recommendation telemetry.

X-Anonymous-Id
string

Optional anonymous identifier stored with served-recommendation telemetry when user_id is absent.

X-SDK
string

Optional SDK name stored with served-recommendation telemetry.

X-SDK-Version
string

Optional SDK version stored with served-recommendation telemetry.

X-Platform
string

Optional client platform stored with served-recommendation telemetry.

Query Parameters

user_id
string

End-user identifier to personalize for. When omitted, the API falls back to the token subject.

context_id
integer

Numeric console context ID.

Required range: x >= 1
limit
integer
default:20

Maximum number of recommendations to return. Defaults to 20 and is capped at 100.

Required range: 1 <= x <= 100
quantity
integer

Legacy alias for limit.

Required range: 1 <= x <= 100
starting_after
string

Continuation value returned by the previous response.

entity_type
enum<string>
default:User

Entity type for personalization. Defaults to User.

Available options:
User,
Item
name
string

Optional display name override for the request entity.

description
string

Optional description override for the request entity.

mode
enum<string>
default:single

Recommendation serving mode. auto chooses the next section from recent user activity and returns an auto cursor.

Available options:
single,
auto
cursor
string

Auto-mode cursor returned by a previous response.

window_days
integer
default:14

Auto-mode activity lookback window in days. Defaults to 14.

Required range: x >= 1
candidate_limit
integer
default:50

Auto-mode maximum number of recent activity anchors to evaluate. Defaults to 50.

Required range: x >= 1
served_cap
integer
default:50

Auto-mode maximum number of served section keys retained in the cursor. Defaults to 50.

Required range: x >= 1
scope
string

JSON-encoded request scope. Today only filters is honored, using objects with column, operator, value, and optional logic.

filter

Metadata filter shorthand. Repeat the parameter to combine multiple filters. Examples: category:electronics, type!=comment, OR:brand:Acme.

filters

Alias for repeated filter query parameters.

request_id
string<uuid>

Optional stable request ID. Prefer the X-Request-Id header when possible.

requestId
string<uuid>

CamelCase alias for request_id.

session_id
string

Optional session identifier. Prefer the X-Session-Id header when possible.

sessionId
string

CamelCase alias for session_id.

anonymous_id
string

Optional anonymous identifier. Prefer the X-Anonymous-Id header when possible.

anonymousId
string

CamelCase alias for anonymous_id.

item_id
integer

Seed item for related recommendations.

Required range: x >= 1
cart_item_ids
string

Comma-separated basket item IDs; excludes them from results.

page_type
string

Placement page type for attribution.

query
string

Search text; use POST /v1/search for a dedicated search request.

Response

Recommendation list

object
enum<string>
required
Available options:
list
request_id
string<uuid>
required
url
string
required
Example:

"/v1/recommendations"

data
object[]
required
recommendations
object[]
required
has_more
boolean
required
next_cursor
string | null
required
limit
integer
required
Required range: 1 <= x <= 100
quantity
integer
required
Required range: x >= 0
processing_time_ms
integer
required
Required range: x >= 0
mode
enum<string>
required
Available options:
single,
auto
message
string
Example:

"Recommendations fetched"

embedding_info
object
cold_start_fallback_used
boolean
explanation
object
excluded_viewed_items
object | null
section
object | null
done
boolean

Present in auto mode.

experiments
object[]
user_segments
string[]
pipeline_id
integer | null
search_intent
object

Present when the user's recent searches steered this response. Searches from the last 14 days are weighed against item events by event weight, each halving every 72 hours.