We released today the next version (22) of the Web API, and the website (https://db.nomics.world/) uses it.
In short, this new version allows “table” and “multi series charts” views in the dataset pages of the website (example: click on the “Table” and “Chart” tabs.
Note that if you are a user of the website and don’t call the API, you’re not concerned by these changes.
But it you make calls to the API in your scripts or application, you’ll want to upgrade to version 22. The version 21 will remain available at least until version 23 is released, to avoid breaking your application.
Here are some links to help you with this upgrade:
Having experimented a bit further I have two comments on the v22 APIs.
The new path /datasets/{provider_code} (“Respond datasets of a provider.”)
This could do with fuller documentation. The “limit” and “offset” parameters are
not mentioned under apidocs/v22, and it’s perhaps surprising that the default
limit is 10 (given that some providers have thousands of datasets).
The element “observations_attributes” which appears under series.docs
in some cases.
This element is represented as an array of arrays. For example under IMF/CPI/Q.BE.PCPIT_IX we have:
Making the inner element here an array suggests that “REFERENCE_PERIOD”
and “2013A” have the same logical status, but I guess it’s actually a matter of
key plus value, in which case it would be more transparent to represent the
inner element(s) as JSON object(s):
The response returns with series values and all dimension descriptions about data sets in the datasets field: dimensions_codes_order, dimensions_labels, dimensions_values_labels.
It seems not big deal, but it increases amount of unused traffic for big data sets in case of only values of series are interested.
I want raise the subject again. With Api v22 a big bunch of meta data is transmitted which makes fetching data difficult.
Thanks for going to change that with a new realease.