Mismatch datarange / granularity of time series

11 views
Skip to first unread message

Tom Zeppenfeldt

unread,
Jan 16, 2012, 11:07:21 AM1/16/12
to World Bank API
Hello,

We are accessing the API, ad encounter problems because data
granulartiy is sometimes quarters, sometimes years. Is there a way to
retrieve the granularity info can be retrieved as metadata?

Since we don't have that info now, we now run into mismatch of
dataranges and granularity. For example, a call like this:

http://api.worldbank.org/countries/indicators/DP.DOD.DECN.CR.GG.CD?date=2006:2006&format=json

returns also data outside the time range, since this specific
indicator has data by quarter and the range apparently is not treated
as 2006Q1:2006:Q4 but is ignored.

Any help appreciated..

Tom Zeppenfeldt

Shanmugam Natarajan

unread,
Feb 9, 2012, 4:58:06 PM2/9/12
to World Bank API
Hi,

Thanks for your feedback. Right now API doesn't have provision to
retrieve the data granularity as metadata. but the data catalogs would
be useful to find the available data from a particular data source.
Refer data catalogs at: http://data.worldbank.org/data-catalog.

You can provide the time range like following api call,
http://api.worldbank.org/countries/indicators/DP.DOD.DECN.CR.GG.CD?date=2006Q1:2006Q4&format=json

or you can rewrite the api call using the parameters frequency & MRV
(both work together) as shown below,
http://api.worldbank.org/countries/indicators/DP.DOD.DECN.CR.GG.CD?date=2006:2006&format=json&frequency=Q&MRV=4

Refer these documentation at: http://data.worldbank.org/node/11

Hope these will help. Please let us know if you need any more
information.

Thanks,
Shanmugam

On Jan 16, 11:07 am, Tom Zeppenfeldt <tomzeppenfe...@gmail.com> wrote:
> Hello,
>
> We are accessing the API, ad encounter problems because data
> granulartiy is sometimes quarters, sometimes years. Is there a way to
> retrieve the granularity info can be retrieved as metadata?
>
> Since we don't have that info now, we now run into mismatch of
> dataranges and granularity. For example, a call like this:
>
> http://api.worldbank.org/countries/indicators/DP.DOD.DECN.CR.GG.CD?da...
Reply all
Reply to author
Forward
0 new messages