hello, is there an API endpoint we can hit to get ...
# ask-questions
q
hello, is there an API endpoint we can hit to get an experiment's results and data, like how many experiment views each variation has, or performance with metrics and stuff?
s
We have an endpoint for experiment results: https://docs.growthbook.io/api#tag/experiments/operation/getExperimentResults All public endpoints are listed here: https://docs.growthbook.io/api There isn't one currently for metric performance. Can you share more about your use case?
👀 1
q
wanna try automating reports so thinking if we could grab the results for an experiment we could play around with that. I may have worded "metric performance" weirdly but basically we're looking mainly for: 1. total experiment views for each variation 2. metrics say: a. metric 1: number of unique user clicks: control vs variation b. metric 2: total number of clicks: control vs variation. c. metric 3: conversions control vs variation etc..
i'm assuming those would be coming through here?
s
Yes, I know @fresh-stone-24633 has done a lot of work in this space, so he might have some tips, too!
q
cheers, thanks!
me again, i see the results accepts
dimension
as a query param, but adding
?dimension=exp:ua_device_type
OR
?dimension=ua_device_type
doesn't give me any results. Just checking if getting results by those dimensions are supported, or if we're talking about different dimensions here?
in Growthbook's results dashboard it does look like we need to select the dimension then create a snapshot with
Update
before it can give us results broken down by device type (in this case). we could probably go this route if
/experiments/:id/results?dimension=us_device_type
isn't supported. but not as elegant as we'd hope 😬
f
@quick-ability-87647 yeah dimensions don’t have a good api integration in the experiments endpoint….
I’ve created seperated custom dimensions and once you have those then you can call them with the API but you can’t call the dimensions from the assignment query through the API which is a shame…
@strong-mouse-55694 I know there are issues about this as feature requests but the keep getting closed…