Deals won api not returning the same as deals won in Hubspot UI


For some reason the deals api is showing a different won deal number than the one from Hubspot UI. Both api and ui filtered by close date. What are the possible reasons for this, and how do I solve it.