Hello, im using the REST api to get a list of expe...
# ask-questions
p
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
@blue-sundown-32899 has marked the issue as closed. Reopen Issue button
f
It should be there, no? What are you getting back?
p
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
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
r
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
Hi Jarryd, did the info I sent yesterday resolve the issue?
p
Hi August, yip i ended up finding the values listed under features > environments > production > definition > rules > meta/variations. Thanks for your help
b
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 🙂