Difference in Results in Kibana and API

It was a problem with cached results. Kibana was somehow returning cached results again and again. It changed once I closed the browser and reran the query again opening a new instance of the browser.