What you see in Dashboard is based upon logic/parameters that are not public and also not necessarily derived from the published API calls.
So they may show differing values, that doesn't mean either is 'wrong', simply that the values were arrived at differently.
For instance, this API call only reflects performance for the specified IP, I'd assume Dashboard is reporting loss across all traffic.
This isn't unique to Meraki, I see the same with other platforms with the UI and API not matching.
It's just something you have to live with, trends and qualitative indicators are still valuable, just don't rely on/expect absolute accuracy, nor make assumptions about UI being based on the published API 😀