The current Statsig SDK does not provide a method for bulk querying experiments for a large number of users in a single call. The getExperiment
function is designed to be called for individual users. If you need to get data about all experiments for a specific user ID, you can use the getExperiment
function with different user IDs as many times as you want.
Please note that calling getExperiment
will trigger an exposure for that user on that day. If they weren’t in a test or control group, they would be exposed and count towards experiment metrics from that day forward.
If you have a use case where you need to know the evaluation but do not want to enroll the user in an experiment group, you can use the getExperimentWithExposureLoggingDisabled
API.
To determine if a user has participated in an experiment, you need to download the exposure report for each experiment to see which users have checked it. The daily reports API is an enterprise feature that can be enabled for your project.
If you're using an SDK to evaluate experiments, it should be pretty simple to just iterate through and check for each user. This is the recommended route for handling large numbers of users.