This is a preview of unreleased docs from main. View the published docs
Skip to main content

Interface: RecommendationsGetOptions

Defined in: types.ts:1266

Optional overrides for a recommendations request.

Properties​

PropertyTypeDescriptionDefined in
device?stringReader's device id. Defaults to the SDK's own device cookie.types.ts:1274
limit?numberHow many articles to ask for. Defaults to 6 upstream; 24 is the maximum.types.ts:1268
maxAgeDays?numberPublish-recency cap in days. 0, the default, means no cap.types.ts:1272
path?stringArticle to anchor on. Defaults to the current window.location.pathname.types.ts:1270