cURL
curl --request POST \ --url https://api.statsig.com/v1/get_ranked_list \ --header 'Content-Type: application/json' \ --header 'statsig-api-key: <api-key>' \ --data '{ "configName": "product_recommendation_bandit", "user": { "userID": "user-123" } }'
[ { "name": "variant_a", "value": { "recommendation_algorithm": "collaborative_filtering" }, "rule_id": "rule_123", "score": 0.85 }, { "name": "variant_b", "value": { "recommendation_algorithm": "content_based" }, "rule_id": "rule_124", "score": 0.72 } ]
Returns a ranked list of variants for a contextual multi-armed bandit (autotune) experiment. The ranking is based on predicted performance.
2 - 100
Show child attributes
Was this page helpful?