Filteredquery
| Action | query |
| Method | GET |
| URL | http://undata-api.appspot.com/data/query/{dataset name1}/{year2} http://undata-api.appspot.com/data/query/{dataset name1}/{country3} http://undata-api.appspot.com/data/query/{dataset name1}/{year2}/{country3} |
| Parameters | key (text): Your private undata key |
| Result | XML formatted data in the queried dataset (see Results) |
Example Request:
http://undata-api.appspot.com/data/query/Adolescent fertility rate/any/2001?user_key=3scale-d54a9fc683b4478db97af95576612345
Example Response:
<data organisation="WHO"
category="Demographic and socioeconomic statistics"
name="Adolescent fertility rate">
<record>
<field name="Country or Area">Albania</field>
<field name="Year(s)">2001</field>
<field name="Value">98.7</field>
</record>
<record>
<field name="Country or Area">Angola</field>
<field name="Year(s)">2001</field>
<field name="Value">67.4</field>
</record>
</data>
1 Replace the {dataset name} with actual name of the dataset you want to access.
2 Replace the {year} with actual year for which you want to obtain data. If the year is set to 0 then data for all years is returned.
3 Replace the {country} with actual name of the country you want to obtain data.If the country is ‘any’ data all countries is returned.
