Skip to main content
POST
Get Weather Forecast

Request contract

  • Method and path: POST /apis/v1/api-ninjas/get-weather-forecast
  • Availability: enabled
  • Request URL template: https://api.aisa.one/apis/v1/api-ninjas/get-weather-forecast
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
city
string

City name (premium feature). Alternative to lat/lon.

Examples:

"London"

"New York"

country
string

Country name or ISO code (premium feature). Use with city parameter.

Examples:

"United States"

"US"

lat
number

Latitude coordinate (-90 to 90). Must be used together with lon parameter.

Required range: -90 <= x <= 90
Examples:

51.5074

40.7128

lon
number

Longitude coordinate (-180 to 180). Must be used together with lat parameter.

Required range: -180 <= x <= 180
Examples:

-0.1278

-74.006

state
string

US state name or abbreviation (for United States cities only, premium feature). Use with city parameter.

Examples:

"California"

"CA"

zip
string

5-digit ZIP code for United States locations only (premium feature). Alternative to lat/lon.

Examples:

"10001"

"90210"

Response

Tool result data

details
object[]
required