Skip to main content
POST
Get Country Information

Request contract

  • Method and path: POST /apis/v1/api-ninjas/get-country-info
  • Availability: enabled
  • Request URL template: https://api.aisa.one/apis/v1/api-ninjas/get-country-info
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
limit
integer

How many results to return. Must be between 1 and 30. Default is 5.

Required range: 1 <= x <= 30
Example:

10

max_fertility
number

Maximum fertility rate, in average children per woman.

Example:

7

max_gdp
number

Maximum gross domestic product (GDP) of country, in US Dollars.

Example:

25000000000000

max_gdp_growth
number

Maximum GDP growth rate in %.

Example:

10

max_infant_mortality
number

Maximum infant mortality rate per 1,000 live births.

Example:

50

max_population
integer

Maximum population of country, in thousands.

Example:

500000

max_surface_area
number

Maximum surface area of country in km2.

Example:

10000000

max_unemployment
number

Maximum unemployment rate in %.

Example:

20

max_urban_population_rate
number

Maximum urban population rate in %.

Example:

100

min_fertility
number

Minimum fertility rate, in average children per woman.

Example:

1

min_gdp
number

Minimum gross domestic product (GDP) of country, in US Dollars.

Example:

1000000000000

min_gdp_growth
number

Minimum GDP growth rate in %.

Example:

0

min_infant_mortality
number

Minimum infant mortality rate per 1,000 live births.

Example:

0

min_population
integer

Minimum population of country, in thousands.

Example:

1000

min_surface_area
number

Minimum surface area of country in km2.

Example:

10000

min_unemployment
number

Minimum unemployment rate in %.

Example:

0

min_urban_population_rate
number

Minimum urban population rate in %.

Example:

20

name
string

Plain English name, 2-letter ISO-3166 alpha-2 (e.g., 'US'), or 3-letter ISO-3166 alpha-3 (e.g., 'USA') code of country.

Examples:

"United States"

"US"

"USA"

"Germany"

"DE"

Response

Tool result data

details
object[]
required