Skip to main content
POST
Get Current Weather

Request contract

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

Cost and request rules

Usage-based billing; Default request estimate: $0.00089 USD (not a fixed price). Declared unit rate: $0.000001 USD per provider_credit. Account-specific pricing and final settlement may differ. Published reference values are not an account-specific quote or a settled charge. For endpoints supporting X-AISA-Cost-Mode: quote, obtain a free quote for your exact request before execution; reconcile the settled cost with response metadata and Usage Logs. USD amounts use 1,000,000 integer micro-USD per dollar.
  • Default request reference estimate (USD): 0.00089
  • Declared unit rate (USD): 1e-06
  • Billing unit: provider_credit
  • Cost contract: response_units
  • Published reference multiplier: 1.0
  • Declared maximum count/units: 10000000
  • Settlement evidence source: response_body

Authorizations

Authorization
string
header
required

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

Body

application/json
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

city
string

City name to get weather for. Must provide either city or coordinates (lat/lon).

Examples:

"London"

"New York"

"Tokyo"

state
string

US state name or abbreviation (for US cities only). Use with city parameter to disambiguate locations.

Examples:

"California"

"CA"

"NY"

country
string

Country name or ISO 3166-1 alpha-2 code. Use with city parameter to disambiguate locations.

Examples:

"United States"

"US"

"United Kingdom"

"GB"

Response

Tool result data

temp
number
sunset
integer
sunrise
integer
humidity
number
max_temp
number
min_temp
number
feels_like
number
wind_speed
number
wind_degrees
number