Data schemas
Response metadata
AnalyticsMeta · Schema · Search analytics and rule models
periodAnalyticsPeriodDataRequiredReporting period and its boundaries.
request_idStringRequiredRequest identifier; in response metadata this identifies the HTTP request.
minLength:1maxLength:100
Additional fields: No
Reporting period and its boundaries
AnalyticsPeriodData · Schema · Search analytics and rule models
as_ofStringRequiredTime to which the reported data applies.
format:"date-time"daysIntegerRequiredReporting period in days.
started_atStringRequiredStart date and time.
format:"date-time"
Additional fields: No
List search queries — Response
AnalyticsResponse_list_MetricData__ · Fields, types and constraints of data accepted or returned by the API.
dataArray <MetricData> RequiredResponse example · AnalyticsResponse_list_MetricData__.
metaAnalyticsPageMetaAnalyticsMetaRequiredResponse metadata.
Additional fields: No
List occurrences of a search query — Response
AnalyticsResponse_list_OccurrenceData__ · Fields, types and constraints of data accepted or returned by the API.
dataArray <OccurrenceData> RequiredResponse example · AnalyticsResponse_list_OccurrenceData__.
metaAnalyticsPageMetaAnalyticsMetaRequiredResponse metadata.
Additional fields: No
Get search analytics — Response
AnalyticsResponse_OverviewData_ · Fields, types and constraints of data accepted or returned by the API.
dataOverviewDataRequiredResponse example · OverviewData.
metaAnalyticsPageMetaAnalyticsMetaRequiredResponse metadata.
Additional fields: No
List search rules — Response
ApiResponse_list_RuleSummaryData__ · Fields, types and constraints of data accepted or returned by the API.
dataArray <RuleSummaryData> RequiredResponse example · ApiResponse_list_RuleSummaryData__.
metaContextPageMetaContextMetaPageMetaRequestMetaRequiredResponse metadata.
Additional fields: No
Get a search rule — Response
ApiResponse_RuleDetailData_ · Fields, types and constraints of data accepted or returned by the API.
dataRuleDetailDataRequiredResponse example · RuleDetailData.
metaContextPageMetaContextMetaPageMetaRequestMetaRequiredResponse metadata.
Additional fields: No
List search queries — Response
MetricData · Fields, types and constraints of data accepted or returned by the API.
clicksIntegerRequiredNumber of clicks.
last_seen_atStringRequiredMost recent occurrence time.
format:"date-time"query_displayStringRequiredSearch phrase displayed to an administrator.
query_hashStringRequiredStable identifier of the grouped search phrase.
searchesIntegerRequiredNumber of searches.
zero_resultsIntegerRequiredNumber of searches with no results.
Additional fields: No
List occurrences of a search query — Response
OccurrenceData · Fields, types and constraints of data accepted or returned by the API.
category_idString nullRequiredCategory identifier.
category_result_countIntegerRequiredNumber of category results.
currency_codeStringRequiredCurrency code.
is_zero_resultsBooleanRequiredWhether the search returned no results.
locale_codeStringRequiredLanguage code.
market_idStringRequiredMarket identifier returned by the context endpoint.
max_priceString nullRequiredMaximum price in the reported range.
min_priceString nullRequiredMinimum price in the reported range.
occurred_atStringRequiredEvent date and time.
format:"date-time"pageIntegerRequiredCMS page information.
product_result_countIntegerRequiredNumber of product search results.
query_displayStringRequiredSearch phrase displayed to an administrator.
request_idStringRequiredRequest identifier; in response metadata this identifies the HTTP request.
resultsArray <ResultSnapshotData> nullRequiredRecorded search results.
sort_keyStringRequiredOrdering key.
sourceStringRequiredSource of the recorded activity.
Constraints
enum["results", "autocomplete"]
Additional fields: No
Get search analytics — Response
OverviewData · Fields, types and constraints of data accepted or returned by the API.
click_through_rateNumberRequiredClick-through rate for the selected search data.
clicked_searchesIntegerRequiredNumber of searches with a click.
recentArray <RecentSearchData> RequiredRecent search information.
searchesIntegerRequiredNumber of searches.
zero_result_rateNumberRequiredShare of searches that returned no results.
zero_resultsIntegerRequiredNumber of searches with no results.
Additional fields: No
Sort order selected for the results
QueryMetricSort · Fields, types and constraints of data accepted or returned by the API.
StringConstraints
enum["last_seen_desc", "last_seen_asc", "searches_desc", "searches_asc", "clicks_desc", "clicks_asc"]
Additional fields: Yes
Recent search information
RecentSearchData · Schema · Search analytics and rule models
is_zero_resultsBooleanRequiredWhether the search returned no results.
locale_codeStringRequiredLanguage code.
occurred_atStringRequiredEvent date and time.
format:"date-time"query_displayStringRequiredSearch phrase displayed to an administrator.
query_hashStringRequiredStable identifier of the grouped search phrase.
request_idStringRequiredRequest identifier; in response metadata this identifies the HTTP request.
result_countIntegerRequiredNumber of search results.
sourceStringRequiredSource of the recorded activity.
Constraints
enum["results", "autocomplete"]
Additional fields: No
Recorded search results
ResultSnapshotData · Schema · Search analytics and rule models
clickedBooleanRequiredWhether the result was clicked.
entity_idStringRequiredIdentifier of the referenced entity.
entity_typeStringRequiredType of the referenced entity.
Constraints
enum["product", "category"]
image_urlString nullRequiredImage URL.
numberString nullRequiredHuman-facing order or request number.
placement_sourceStringRequiredSource from which the order was placed.
Constraints
enum["organic", "merchandising"]
positionIntegerRequiredPosition in the ordered collection.
skuStringRequiredStock keeping unit code.
slugStringRequiredURL path segment in the selected language.
titleStringRequiredTitle in the selected language.
Additional fields: No
Create a search rule — Request body
RuleCreate · Fields, types and constraints of data accepted or returned by the API.
category_idsArray <String> OptionalIdentifiers of related categories.
maxItems:100Array:minLength:1maxLength:63enabledBooleanOptionalWhether this setting is enabled.
market_idsArray <String> OptionalIdentifiers of selected markets.
maxItems:1000Array:minLength:1maxLength:63market_scopeStringOptionalWhether the resource applies to all or selected markets.
Constraints
enum["all", "selected"]
nameStringRequiredResource name in the relevant context.
minLength:1maxLength:160phrasesArray <String> RequiredPhrases used by the search rule.
minItems:1maxItems:20Array:minLength:1maxLength:255product_idsArray <String> OptionalIdentifiers of related products.
maxItems:100Array:minLength:1maxLength:63
Additional fields: No
Get a search rule — Response
RuleDetailData · Fields, types and constraints of data accepted or returned by the API.
category_idsArray <String> RequiredIdentifiers of related categories.
created_atStringRequiredCreation time.
format:"date-time"enabledBooleanRequiredWhether this setting is enabled.
idStringRequiredResource identifier; preserve it as returned. (RuleDetailData).
is_availableBooleanRequiredWhether the item is available in this context.
market_idsArray <String> RequiredIdentifiers of selected markets.
market_scopeStringRequiredWhether the resource applies to all or selected markets.
Constraints
enum["all", "selected"]
nameStringRequiredResource name in the relevant context.
phrase_groupsArray <RulePhraseGroupData> RequiredGroups of search-rule phrases.
product_idsArray <String> RequiredIdentifiers of related products.
updated_atStringRequiredMost recent update time.
format:"date-time"versionIntegerRequiredResource version used for concurrency control.
Additional fields: No
Groups of search-rule phrases
RulePhraseGroupData · Schema · Search analytics and rule models
localeStringRequiredLanguage selected for this request.
phrasesArray <String> RequiredPhrases used by the search rule.
Additional fields: No
List search rules — Response
RuleSummaryData · Fields, types and constraints of data accepted or returned by the API.
created_atStringRequiredCreation time.
format:"date-time"enabledBooleanRequiredWhether this setting is enabled.
idStringRequiredResource identifier; preserve it as returned. (RuleSummaryData).
is_availableBooleanRequiredWhether the item is available in this context.
market_scopeStringRequiredWhether the resource applies to all or selected markets.
Constraints
enum["all", "selected"]
nameStringRequiredResource name in the relevant context.
updated_atStringRequiredMost recent update time.
format:"date-time"versionIntegerRequiredResource version used for concurrency control.
Additional fields: No
Update a search rule — Request body
RuleUpdate · Fields, types and constraints of data accepted or returned by the API.
category_idsArray <String> OptionalIdentifiers of related categories.
maxItems:100Array:minLength:1maxLength:63enabledBooleanOptionalWhether this setting is enabled.
expected_versionIntegerRequiredVersion read before the write; a mismatch rejects the update.
minimum:1maximum:2147483647market_idsArray <String> OptionalIdentifiers of selected markets.
maxItems:1000Array:minLength:1maxLength:63market_scopeStringOptionalWhether the resource applies to all or selected markets.
Constraints
enum["all", "selected"]
nameStringOptionalResource name in the relevant context.
minLength:1maxLength:160phrasesArray <String> OptionalPhrases used by the search rule.
maxItems:20Array:minLength:1maxLength:255product_idsArray <String> OptionalIdentifiers of related products.
maxItems:100Array:minLength:1maxLength:63
Additional fields: No
Filter selecting searches with or without zero-result occurrences
ZeroResultScope · Fields, types and constraints of data accepted or returned by the API.
StringConstraints
enum["all", "has_zero_results", "no_zero_results"]
Additional fields: Yes