Un Data API


This is a topic in Forum

Support Thread

7 posts

 
Geoff Drake 2 posts

Support queries answered here.

 
webving 8 posts

Hi there and thanks for this really useful api !

i noticed two little issues

1) there is a little error in the documentation here:
http://www.undata-api.org/wiki/filteredquery

the query accepts only
http://undata-api.appspot.com/data/query/{dataset name1}/{country3}/{year2}
and not
http://undata-api.appspot.com/data/query/{dataset name1}/{year2}/{country3}

2) also, i don’t know why, every record is doubled on this kind of query:

http://undata-api.appspot.com/data/query/Popula…

or

http://undata-api.appspot.com/data/query/Popula…

Answers look like this, every year appears twice, maybe the data is half-yearly ?

France 1990 0.5



France
1990
0.5



France
1991
0.5



France
1991
0.5

thank you

 
webving 8 posts

woops, the forum formating engine messed a bit my text :)
hope it’s still understandable…

 
webving 8 posts

Issue: the country name “Côte d’Ivoire” is not encoded in UTF8 in query “Population annual growth rate (percent)/” (and maybe other queries if all queries use the same country table).

 
webving 8 posts

Issue: corrupted XML on this query:
http://undata-api.appspot.com/data/query/Popula…

there’s that text “<2.0” where it should be “2.0”

it’s for the first country “Albania” on query about poverty line

 
webving 8 posts

woops actually it’s on every country where the value is “2.0” because it means “less than 2%”

that is a piece of a question: what could be put instead of this special char ?

 
ravi 1 post

<2.0 issue noted by webving is big. This breaks xml parsers because a < is not being issued. Malformed xml can’t be parsed by the endpoints unless it’s cleaned up first.