CuratedRecommendationsRequest

data class CuratedRecommendationsRequest(var locale: CuratedRecommendationLocale, var region: String? = null, var count: Int? = 100, var topics: List<String>? = null, var feeds: List<String>? = null, var sections: List<SectionSettings>? = null, var experimentName: String? = null, var experimentBranch: String? = null, var enableInterestPicker: Boolean = false)

Parameters for requesting curated recommendations from the Merino API.

Constructors

Link copied to clipboard
constructor(locale: CuratedRecommendationLocale, region: String? = null, count: Int? = 100, topics: List<String>? = null, feeds: List<String>? = null, sections: List<SectionSettings>? = null, experimentName: String? = null, experimentBranch: String? = null, enableInterestPicker: Boolean = false)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
var count: Int?

Maximum number of recommendations to return. Defaults to 100 if not specified.

Link copied to clipboard

Whether to include the interest picker in the response.

Link copied to clipboard

Optional experiment branch for server-side A/B testing.

Link copied to clipboard

Optional experiment name for server-side A/B testing.

Link copied to clipboard

Optional list of feed types to include in the response (e.g. "sections").

Link copied to clipboard

The locale to use when selecting recommendations.

Link copied to clipboard

Optional ISO 3166-1 region code (e.g. "US", "GB") to further refine results.

Link copied to clipboard

Optional per-section follow/block preferences.

Link copied to clipboard

Optional list of topic slugs to filter recommendations by (e.g. "business", "tech").