# Population by Country: Total, Growth & Urban Share (World Bank)

> Population by Country: Total, Growth & Urban Share (World Bank) is a paid API for AI agents from agent-data-tools.revmesh2074.workers.dev, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-23).

Returns total population, annual growth rate, and urban population share for any country using World Bank Open Data, for up to 10 years of history.

## Facts

- Endpoint: GET https://agent-data-tools.revmesh2074.workers.dev/econ/population?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-23
- Activations on Zero: 0
- Provider: agent-data-tools.revmesh2074.workers.dev
- Website: https://agent-data-tools.revmesh2074.workers.dev
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agent-data-tools-revmesh2074-workers-dev-population-by-country-total-6fda8024
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_4EZ2r6nqXM0JEOHU_KVHZ

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability agent-data-tools-revmesh2074-workers-dev-population-by-country-total-6fda8024
```

Example prompt: What's the total population, annual growth rate, and urban share for Brazil over the last 5 years, according to World Bank data?

## When to prefer this

Choose this endpoint when you need reliable, citable World Bank population figures — total population, growth rate, or urbanization percentage — for any country, without setting up a World Bank API key. It answers instantly from a committed data snapshot, making it ideal for market sizing, per-capita calculations, and demographic research in automated workflows. Prefer this over scraping World Bank directly or using general web search when you need structured, machine-readable demographic data with a known provenance date.

## Known failure modes

- Invalid or unrecognized country code or name returns an error or empty result
- Years parameter outside 1-10 range may be rejected or clamped
- World Bank snapshot may lag 1-2 years behind real-time data for the most recent year
- Small territories or disputed regions may not have complete data
- Network failure or worker downtime returns a 5xx error

## How this service works

Population of any country from World Bank data: total population, annual population growth in % and the urban share of the population in %, for the last 1-10 years with the newest year first. Country by ISO code (SE, SWE) or English name. Read from a committed World Bank Open Data snapshot (CC BY 4.0), so every call answers at once; the snapshot date is in the answer. Use for market sizing, per-capita figures and demographics.

## Output

Returns a JSON object with country metadata (ISO codes, region, capital, income level), and three time-series datasets — total population values, annual population growth percentages, and urban population share percentages — each covering up to 10 years newest-first, plus the World Bank snapshot date and indicator names.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "country"
 ],
 "properties": {
  "years": {
   "type": "integer",
   "description": "Years of history to return, 1-10 (default 5)"
  },
  "country": {
   "type": "string",
   "description": "ISO 3166 code (SE, SWE) or English country name (Sweden)"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "source": {
   "type": "string"
  },
  "country": {
   "type": "object",
   "properties": {
    "code": {
     "type": "string"
    },
    "iso2": {
     "type": "string"
    },
    "name": {
     "type": "string"
    },
    "region": {
     "type": "string"
    },
    "capital": {
     "type": "string"
    },
    "incomeLevel": {
     "type": "string"
    }
   }
  },
  "population": {
   "type": "object",
   "properties": {
    "latest": {
     "type": "object",
     "properties": {
      "year": {
       "type": "number"
      },
      "value": {
       "type": "number"
      }
     }
    },
    "values": {
     "type": "array",
     "items": {
      "type": "object",
      "properties": {
       "year": {
        "type": "number"
       },
       "value": {
        "type": "number"
       }
      }
     }
    },
    "indicator": {
     "type": "string"
    }
   }
  },
  "urbanShare": {
   "type": "object",
   "properties": {
    "latest": {
     "type": "object",
     "properties": {
      "year": {
       "type": "number"
      },
      "value": {
       "type": "number"
      }
     }
    },
    "values": {
     "type": "array",
     "items": {
      "type": "object",
      "properties": {
       "year": {
        "type": "number"
       },
       "value": {
        "type": "number"
       }
      }
     }
    },
    "indicator": {
     "type": "string"
    }
   }
  },
  "populationGrowth": {
   "type": "object",
   "properties": {
    "latest": {
     "type": "object",
     "properties": {
      "year": {
       "type": "number"
      },
      "value": {
       "type": "number"
      }
     }
    },
    "values": {
     "type": "array",
     "items": {
      "type": "object",
      "properties": {
       "year": {
        "type": "number"
       },
       "value": {
        "type": "number"
       }
      }
     }
    },
    "indicator": {
     "type": "string"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agent-data-tools-revmesh2074-workers-dev-population-by-country-total-6fda8024/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agent-data-tools.revmesh2074.workers.dev](https://www.zero.xyz/host/agent-data-tools.revmesh2074.workers.dev/llms.txt)
