API - Response Not get refreshed

Matomo API.get take a long time to update the data in the response

I’m tracking conversions, page visit, form visit
When i call the API.get for the first time it gives me the correct response. The second time when i try it gives me the same result it’s not updating the response but after a while, if I try I get the updated response.

Meanwhile, the matomo dashboard shows the correct captured data without any delay.

It will be really helpful if anyone can help to solve the problem. Thanks