Data request

Data: I am looking for an API oder dataset where I can find age distribution (age groups: percentage of an age group according to the population) and gender distributions for each country of the world. Something like this:
Zensus Germany

Context: I am working on my Master's Thesis and would like to compare my scientific samples to the population.

Region: I need Data from the whole world.

License: Unfortunately I am a Student and can't spend more that 50 Euro on this data.

Format: A JSON API would be perfect. XML, CSV, XLSX or any other common data type is ok too.

Authority: I need the data to be reliable. That means, the sources of the data have to be visible and official.

That site just has the population. But the population is not separated in age groups. As I said, I need it to be like an age distribution. And the statistics of the site are wrong.
– Pedram ShahlaifarFeb 28 '17 at 22:23

If you access ecah country's page on that website you can see the population distribution between age groups and genders.
– leite0407Mar 1 '17 at 0:54

Now I see what you are talking about. When I searched the site, I did not find that particular page. Perfect thanks a lot. I think I can adjust the wrong population numbers with a ML algorithm.
– Pedram ShahlaifarMar 1 '17 at 6:32