Skip to main content
POST
Search
Search the catalogue using a free-text query and optional context. This is application search; the Platform API’s console search serves a different purpose.

Search and behaviour

When you supply a user or anonymous ID, the request also records a search event. Result items are impressions, not clicks. Record the user’s actual engagement separately with the response’s request_id. If your own engine ran the search, include its NSL integer result_item_ids. NSL records those results and returns complementary recommendations that exclude the supplied items. search.source identifies whether the search originated in NSL or your application, and search.event_recorded indicates whether it was attached to a user. Read data for results; recommendations is a compatibility alias. Preserve explicit attribution when displaying multiple lists or sharing an SDK instance between visitors. See Search for retrieval controls and Events for search signals.

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.

Body

application/json
query
string
required

The search text.

Minimum string length: 1
user_id
string

Your stable user identifier.

anonymous_id
string

Visitor identifier before sign-in.

context_id
integer

Context created in your workspace.

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

Result count as a numeric string, from 1 to 100.

filter

Metadata filter shorthand, such as category:footwear.

scope
string

JSON-encoded request scope containing structured filters.

result_item_ids
integer[]

Item IDs shown by your search engine. NSL records the search and excludes these from complementary results.

Required range: x >= 1
query_retrieval_enabled
enum<string>
Available options:
true,
false
fusion_method
enum<string>
Available options:
rrf,
weighted
semantic_weight
string

Semantic retrieval weight as a numeric string.

keyword_weight
string

Keyword retrieval weight as a numeric string.

keyword_fields
string

Comma-separated fields used for keyword matching.

request_id
string

Optional request correlation identifier.

session_id
string
debug
boolean
explain
string
include_suppressed
boolean

Response

Ranked results with request attribution

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.