If I wanted to see the number of unique users who completed Any Event I could go to the Amplitude app and see this chart as an event segmentation:
![](https://uploads-us-west-2.insided.com/amplitude-en/attachment/8b29a9fc-d634-473e-b8f6-fa28f75b299b.png)
Alternatively I could use the Dashboard REST API to gather this same data. I could submit a request to https://amplitude.com/api/2/events/segmentation?e={"event_type":"_all"}&start=20210721&end=20210820
When I hit this endpoint and look at the seriesCollapsed part of the data I would expect that number to be 6098. Instead the number I am getting is 212.
I have tested this with different events, both custom and Amplitude events. The data never matches. I am making sure that my date ranges are consistent.
Am I making a mistake? Is the Amplitude API buggy? I wouldn’t really mind if there was a small gap between the two pieces of reported data but the difference is always significant.
Thanks for any help.