https://www.growthbook.io/ logo
#ask-questions
Title
# ask-questions
p

powerful-sunset-26399

10/26/2023, 9:49 PM
Hello, im using the REST api to get a list of experiments for each of my feature flags, is there any way to get the experiment variation values? for example true/false as opposed to the name or key
1
r

rhythmic-agent-34208

10/26/2023, 9:49 PM
@blue-sundown-32899 has marked the issue as closed. Reopen Issue button
f

fresh-football-47124

10/26/2023, 9:50 PM
It should be there, no? What are you getting back?
p

powerful-sunset-26399

10/26/2023, 9:51 PM
i can get the variationId, key, name, description, and screenshots. Same as whats written in the api docs. I thought it was a bit weird not to have the values so i thought i might be missing something
heres the variations response for one of my experiments:
Copy code
[{"description": "", "key": "0", "name": "visible", "screenshots": ["<https://cdn.growthbook.io/org_19g61olleccbko/2023-10/img_19g61nlnuxl7xc.png>"], "variationId": "var_lnuwjiaz"}, {"description": "", "key": "1", "name": "hidden", "screenshots": ["<https://cdn.growthbook.io/org_19g61olleccbko/2023-10/img_19g61mlnuxl9ec.png>"], "variationId": "var_lnuwjib0"}]
r

rhythmic-agent-34208

10/27/2023, 2:37 AM
Hi Jarryd, I'll look into this tomorrow and get back to you here in the thread!
Hi Jarryd, which API endpoint specifically are you calling?
p

powerful-sunset-26399

10/30/2023, 8:04 PM
r

rhythmic-agent-34208

10/31/2023, 5:40 PM
Hi Jarryd, I looked into this. There isn't a concept of "value" for a Experiment variations, but there are "Values" for Feature Flags and Visual Editor changes. We have API endpoints for those here: https://docs.growthbook.io/api#tag/features/operation/getFeature https://docs.growthbook.io/api#tag/features/operation/getFeature
r

rhythmic-agent-34208

11/01/2023, 3:44 PM
Hi Jarryd, did the info I sent yesterday resolve the issue?
p

powerful-sunset-26399

11/01/2023, 8:11 PM
Hi August, yip i ended up finding the values listed under features > environments > production > definition > rules > meta/variations. Thanks for your help
b

brief-honey-45610

11/01/2023, 8:28 PM
Great, glad to hear it! I'll close this support request then, but if you have another question just post it in #ask-questions and we'll add it to our queue 🙂
14 Views