Undata Api

UN Data API Project

Filtered Query FAQ

This page answers the most common questions about the Undata API filtered query. Use the navigation below to reach the home page, documentation, forum, or sign-in area, and explore the related pages for datasets, general queries, release notes, and results.

Frequently Asked Questions

What does a filtered query return?
It returns XML-formatted data from the dataset you queried, including only the records that match the year and/or country specified in the URL. The Results page describes the response format.
How do I return data for all years?
Set the {year} part of the URL to 0, and data for every year is returned.
How do I return data for all countries?
Set the {country} part of the URL to 'any', and data for every country is returned.
What is the key parameter for?
The key parameter is a text value holding your private undata key, which must be included with the request.
Which HTTP method does the filtered query use?
The filtered query action uses the GET method.
Where can I find the dataset names to use in the URL?
Replace the {dataset name} placeholder with the actual name of the dataset you want to access. The Datasets page lists the available datasets.