Skip to main content
POST
Get Population Data

Request contract

  • Method and path: POST /apis/v1/api-ninjas/get-population
  • Availability: enabled
  • Request URL template: https://api.aisa.one/apis/v1/api-ninjas/get-population
Complete OpenAPI definition Effective request declaration (including authentication and referenced schemas):

Cost and request rules

Usage-based pricing. Default request estimate: $0.00089 USD. The final charge depends on actual usage. Your account price may differ; use a request quote where supported.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
country
string

Country name (case-insensitive) or 2-letter ISO-3166 alpha-2 code (e.g., 'Japan' or 'JP'). At least one of country, min_population, or max_population must be set.

Examples:

"Japan"

"JP"

"United States"

"US"

max_population
integer

Maximum population of country. At least one of country, min_population, or max_population must be set.

Examples:

100000000

500000000

min_population
integer

Minimum population of country. At least one of country, min_population, or max_population must be set.

Examples:

1000000

50000000

offset
integer

Offset results for pagination.

Required range: x >= 0
Examples:

0

5

10

Response

Tool result data

country_name
string
details
object[]
historical_population
object[]
population_forecast
object[]