International Database Tool
international_database_toolRetrieve global population estimates and projections for 200+ countries from 1950 to 2100, including birth rates, life expectancy, and age distributions for demographic analysis.
Instructions
Retrieve global population statistics from the U.S. Census Bureau International Database (IDB). Access population estimates and projections for 200+ countries worldwide from 1950 to 2100. Data includes total population, birth rates, death rates, life expectancy, fertility rates, age distributions, migration, and more. Perfect for international demographic analysis, global population trends, and country comparisons.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| year | Yes | Year for population data (1950-2100). Historical data 1950-present, projections to 2100. | |
| variables | Yes | Array of IDB variable codes to retrieve. Common: POP (total population), AREA_KM2 (land area), CBR (crude birth rate), CDR (crude death rate), E0 (life expectancy), GR (growth rate), IMR (infant mortality rate), MAB (median age), TFR (total fertility rate), NI (natural increase), NM (net migration), POP_DENS (population density). | |
| country | No | FIPS country code (e.g., "CH" for China, "IN" for India, "US" for United States). If not specified, returns data for all countries. | |
| ageGroup | No | Age group for age-specific queries (e.g., "0-4", "5-9", "10-14", etc.). Use with age-specific variables. | |
| sex | No | Sex filter: 0 = Both sexes, 1 = Male, 2 = Female. Default: 0. |