Skip to main content
POST
Get GDP Data

Request contract

  • Method and path: POST /apis/v1/api-ninjas/get-gdp
  • Availability: enabled
  • Request URL template: https://api.aisa.one/apis/v1/api-ninjas/get-gdp
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., 'Canada' or 'CA'). At least one of country or year must be set.

Examples:

"Canada"

"United States"

"CA"

"US"

year
integer

Year for which to retrieve GDP data. At least one of country or year must be set.

Examples:

2020

2021

2022

Response

Tool result data

details
object[]
required