Mukoko Weather API
Mukoko Weather. Forecasts, air quality, aviation and places.
Mukoko Weather. Forecasts, air quality, aviation and places.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/mukoko-com:mukoko-com-weather-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: Mukoko Weather API
version: 0.2.0
summary: The Mukoko consumer API, for the Mukoko apps, their customers, partners and AI agents.
description: '`api.mukoko.com` is where each Mukoko app''s public API lives, one
namespace per app: Mukoko News at `/v1/news`, with Mukoko Weather and the
others to follow at `/v1/weather` and so on.
It is the consumer API: the Mukoko apps, the super app, their customers,
partners and AI agents call it. The Nyuchi internal API
(`api.nyuchi.com`) sits behind it and is for first-party services only.
Weather answers (`/v1/weather/*`) keep the headers that say where the
data came from (`X-Cache`, `X-Weather-Provider`, `X-Current-Source`,
`X-Weather-Blend`, `X-Enrichment`, `X-Fetched-At`, `X-AQ-Source`) when
they are present. If the weather data is unavailable you get `502`
(`upstream_error`), `503` (`upstream_unavailable`, or `not_configured` on
a deployment that is not set up for weather) or `504`
(`upstream_timeout`).
**API keys.** `/v1/weather/*` optionally accepts a Nyuchi API key (`nyk_…` with its
`nys_…` secret) scoped for `weather`, in headers only, never in a URL:
`X-API-Key: nyk_.nys_`, or `X-Client-Id` with
`X-Client-Secret`. Keys are issued by the Nyuchi API (`POST /v1/api-keys`)
and checked there (`GET /v1/weather/key`); the answer is cached at the
edge, so a key is counted by the Nyuchi API at most once per 60 seconds
per data centre (not per call), and a revoked or over-quota key can keep
working for up to 60 seconds. Anonymous calls stay open at 120 requests a
minute per IP. A call with a valid key is limited per key (600 a minute)
instead. A malformed or unknown key is `401` (no key at all is simply an anonymous call), a key without the
`weather` scope is `403`, and if keys cannot be checked right now the
answer is `503` rather than treating the key as valid. The caller''s IP is
charged before any key check that needs the network, and every refused
check counts against it. A `429` carries `Retry-After`. Keep keys
on a server: a key in a browser or app bundle is public.
Everything here is read-only and needs no credential for now. Responses
are cached at the edge and calls are rate limited per client; a `429`
carries `Retry-After`.
Errors always have the same shape: `{ "error": { "code", "message" }, "requestId" }`.'
servers:
- url: https://api.mukoko.com
tags:
- name: Weather
description: Mukoko Weather. Forecasts, air quality, aviation and places.
paths:
/v1/weather:
get:
tags:
- Weather
security:
- {}
- ApiKey: []
- ClientId: []
ClientSecret: []
operationId: getWeather
summary: Current conditions, hourly and daily forecast
description: 'The full weather for a point, from the Africa-weighted blend of global
models. Give `lat` and `lon`, or `location` (a place slug such as
`harare`, resolved first). One of the two is required.'
parameters:
- $ref: '#/components/parameters/Lat'
- $ref: '#/components/parameters/Lon'
- name: location
in: query
description: A place slug. Used when `lat` and `lon` are not given.
schema:
$ref: '#/components/schemas/Slug'
- name: models
in: query
description: Comma separated forecast model ids to include for comparison, up to 10, for example `ecmwf_ifs,gfs_seamless`.
schema:
type: string
maxLength: 450
responses:
'200':
description: The weather. `X-Weather-Provider` says what served it.
headers:
X-Cache:
$ref: '#/components/headers/XCache'
X-Weather-Provider:
$ref: '#/components/headers/XWeatherProvider'
X-Current-Source:
$ref: '#/components/headers/XCurrentSource'
X-Weather-Blend:
$ref: '#/components/headers/XWeatherBlend'
X-Fetched-At:
$ref: '#/components/headers/XFetchedAt'
X-AQ-Source:
$ref: '#/components/headers/XAQSource'
X-Enrichment:
$ref: '#/components/headers/XEnrichment'
Cache-Control:
$ref: '#/components/headers/CacheControl'
content:
application/json:
schema:
$ref: '#/components/schemas/WeatherData'
'400':
$ref: '#/components/responses/BadRequest'
'401':
$ref: '#/components/responses/Unauthorized'
'403':
$ref: '#/components/responses/Forbidden'
'404':
$ref: '#/components/responses/NotFound'
'429':
$ref: '#/components/responses/RateLimited'
'502':
$ref: '#/components/responses/BadGateway'
'503':
$ref: '#/components/responses/Unavailable'
'504':
$ref: '#/components/responses/GatewayTimeout'
/v1/weather/forecast:
get:
tags:
- Weather
security:
- {}
- ApiKey: []
- ClientId: []
ClientSecret: []
operationId: getWeatherForecast
summary: Daily forecast
description: 'The daily forecast contract: up to 7 days for a place name or slug, or for a point.'
parameters:
- name: location
in: query
description: A place name or slug. Wins over `lat` and `lon`.
schema:
type: string
minLength: 1
maxLength: 80
- $ref: '#/components/parameters/Lat'
- $ref: '#/components/parameters/Lon'
- name: days
in: query
description: Days to return. Out-of-range values are clamped.
schema:
type: integer
minimum: 1
maximum: 7
default: 7
responses:
'200':
description: The daily forecast.
headers:
X-Cache:
$ref: '#/components/headers/XCache'
X-Weather-Provider:
$ref: '#/components/headers/XWeatherProvider'
X-Current-Source:
$ref: '#/components/headers/XCurrentSource'
X-Weather-Blend:
$ref: '#/components/headers/XWeatherBlend'
X-Fetched-At:
$ref: '#/components/headers/XFetchedAt'
X-AQ-Source:
$ref: '#/components/headers/XAQSource'
X-Enrichment:
$ref: '#/components/headers/XEnrichment'
Cache-Control:
$ref: '#/components/headers/CacheControl'
content:
application/json:
schema:
type: object
additionalProperties: true
'400':
$ref: '#/components/responses/BadRequest'
'401':
$ref: '#/components/responses/Unauthorized'
'403':
$ref: '#/components/responses/Forbidden'
'404':
$ref: '#/components/responses/NotFound'
'429':
$ref: '#/components/responses/RateLimited'
'502':
$ref: '#/components/responses/BadGateway'
'503':
$ref: '#/components/responses/Unavailable'
'504':
$ref: '#/components/responses/GatewayTimeout'
/v1/weather/air-quality:
get:
tags:
- Weather
security:
- {}
- ApiKey: []
- ClientId: []
ClientSecret: []
operationId: getWeatherAirQuality
summary: Air quality
description: The EPA Air Quality Index (0 to 500) and pollutants for a point.
parameters:
- $ref: '#/components/parameters/LatRequired'
- $ref: '#/components/parameters/LonRequired'
responses:
'200':
description: The air quality.
headers:
X-Cache:
$ref: '#/components/headers/XCache'
X-Weather-Provider:
$ref: '#/components/headers/XWeatherProvider'
X-Current-Source:
$ref: '#/components/headers/XCurrentSource'
X-Weather-Blend:
$ref: '#/components/headers/XWeatherBlend'
X-Fetched-At:
$ref: '#/components/headers/XFetchedAt'
X-AQ-Source:
$ref: '#/components/headers/XAQSource'
X-Enrichment:
$ref: '#/components/headers/XEnrichment'
Cache-Control:
$ref: '#/components/headers/CacheControl'
content:
application/json:
schema:
type: object
additionalProperties: true
'400':
$ref: '#/components/responses/BadRequest'
'401':
$ref: '#/components/responses/Unauthorized'
'403':
$ref: '#/components/responses/Forbidden'
'429':
$ref: '#/components/responses/RateLimited'
'502':
$ref: '#/components/responses/BadGateway'
'503':
$ref: '#/components/responses/Unavailable'
'504':
$ref: '#/components/responses/GatewayTimeout'
/v1/weather/metar:
get:
tags:
- Weather
security:
- {}
- ApiKey: []
- ClientId: []
ClientSecret: []
operationId: getWeatherMetar
summary: METAR and TAF
description: METARs of the last 12 hours and the TAF for one ICAO station.
parameters:
- name: icao
in: query
required: true
description: A four-letter ICAO code. Lower case is accepted.
schema:
type: string
pattern: ^[A-Za-z]{4}$
responses:
'200':
description: The observations.
headers:
X-Cache:
$ref: '#/components/headers/XCache'
X-Weather-Provider:
$ref: '#/components/headers/XWeatherProvider'
X-Current-Source:
$ref: '#/components/headers/XCurrentSource'
X-Weather-Blend:
$ref: '#/components/headers/XWeatherBlend'
X-Fetched-At:
$ref: '#/components/headers/XFetchedAt'
X-AQ-Source:
$ref: '#/components/headers/XAQSource'
X-Enrichment:
$ref: '#/components/headers/XEnrichment'
Cache-Control:
$ref: '#/components/headers/CacheControl'
content:
application/json:
schema:
type: object
required:
- icao
- metar
- source
properties:
icao:
type: string
metar:
type: array
items: {}
taf:
type:
- string
- 'null'
source:
type: string
'400':
$ref: '#/components/responses/BadRequest'
'401':
$ref: '#/components/responses/Unauthorized'
'403':
$ref: '#/components/responses/Forbidden'
'429':
$ref: '#/components/responses/RateLimited'
'502':
$ref: '#/components/responses/BadGateway'
'503':
$ref: '#/components/responses/Unavailable'
'504':
$ref: '#/components/responses/GatewayTimeout'
/v1/weather/airports/nearest:
get:
tags:
- Weather
security:
- {}
- ApiKey: []
- ClientId: []
ClientSecret: []
operationId: getWeatherNearestAirports
summary: Nearest airports
description: The nearest ICAO airports to a point, closest first.
parameters:
- $ref: '#/components/parameters/LatRequired'
- $ref: '#/components/parameters/LonRequired'
- name: count
in: query
description: How many airports. Clamped to 1 to 20.
schema:
type: integer
minimum: 1
maximum: 20
default: 5
- name: maxDistanceKm
in: query
description: Search radius in kilometres. Capped at 20000.
schema:
type: number
exclusiveMinimum: 0
maximum: 20000
default: 500
responses:
'200':
description: The airports.
headers:
X-Cache:
$ref: '#/components/headers/XCache'
X-Weather-Provider:
$ref: '#/components/headers/XWeatherProvider'
X-Current-Source:
$ref: '#/components/headers/XCurrentSource'
X-Weather-Blend:
$ref: '#/components/headers/XWeatherBlend'
X-Fetched-At:
$ref: '#/components/headers/XFetchedAt'
X-AQ-Source:
$ref: '#/components/headers/XAQSource'
X-Enrichment:
$ref: '#/components/headers/XEnrichment'
Cache-Control:
$ref: '#/components/headers/CacheControl'
content:
application/json:
schema:
type: object
required:
- airports
- source
properties:
airports:
type: array
items:
type: object
required:
- icao
- name
- distanceKm
properties:
icao:
type: string
name:
type: string
distanceKm:
type: number
source:
type: string
enum:
- catalog
- empty
'400':
$ref: '#/components/responses/BadRequest'
'401':
$ref: '#/components/responses/Unauthorized'
'403':
$ref: '#/components/responses/Forbidden'
'429':
$ref: '#/components/responses/RateLimited'
'502':
$ref: '#/components/responses/BadGateway'
'503':
$ref: '#/components/responses/Unavailable'
'504':
$ref: '#/components/responses/GatewayTimeout'
/v1/weather/search:
get:
tags:
- Weather
security:
- {}
- ApiKey: []
- ClientId: []
ClientSecret: []
operationId: searchWeatherLocations
summary: Search places
description: Find places by text (`q`), by tag, or the nearest to a point. With `mode=tags` it lists the tags and their counts instead.
parameters:
- name: q
in: query
description: Search text.
schema:
type: string
minLength: 1
maxLength: 80
- name: tag
in: query
schema:
$ref: '#/components/schemas/Tag'
- $ref: '#/components/parameters/Lat'
- $ref: '#/components/parameters/Lon'
- name: mode
in: query
schema:
type: string
const: tags
- name: limit
in: query
description: Clamped to 1 to 50.
schema:
type: integer
minimum: 1
maximum: 50
default: 20
- $ref: '#/components/parameters/Skip'
responses:
'200':
description: Matching places, or the tag list with `mode=tags`.
headers:
X-Cache:
$ref: '#/components/headers/XCache'
X-Weather-Provider:
$ref: '#/components/headers/XWeatherProvider'
X-Current-Source:
$ref: '#/components/headers/XCurrentSource'
X-Weather-Blend:
$ref: '#/components/headers/XWeatherBlend'
X-Fetched-At:
$ref: '#/components/headers/XFetchedAt'
X-AQ-Source:
$ref: '#/components/headers/XAQSource'
X-Enrichment:
$ref: '#/components/headers/XEnrichment'
Cache-Control:
$ref: '#/components/headers/CacheControl'
content:
application/json:
schema:
type: object
additionalProperties: true
'400':
$ref: '#/components/responses/BadRequest'
'401':
$ref: '#/components/responses/Unauthorized'
'403':
$ref: '#/components/responses/Forbidden'
'429':
$ref: '#/components/responses/RateLimited'
'502':
$ref: '#/components/responses/BadGateway'
'503':
$ref: '#/components/responses/Unavailable'
'504':
$ref: '#/components/responses/GatewayTimeout'
/v1/weather/geo:
get:
tags:
- Weather
security:
- {}
- ApiKey: []
- ClientId: []
ClientSecret: []
operationId: getWeatherGeo
summary: Nearest known place
description: The nearest known place to a point, within 150 km. `autoCreate=true` (naming a new place) is not available on this API yet and answers 400.
parameters:
- $ref: '#/components/parameters/LatRequired'
- $ref: '#/components/parameters/LonRequired'
responses:
'200':
description: The nearest place.
headers:
X-Cache:
$ref: '#/components/headers/XCache'
X-Weather-Provider:
$ref: '#/components/headers/XWeatherProvider'
X-Current-Source:
$ref: '#/components/headers/XCurrentSource'
X-Weather-Blend:
$ref: '#/components/headers/XWeatherBlend'
X-Fetched-At:
$ref: '#/components/headers/XFetchedAt'
X-AQ-Source:
$ref: '#/components/headers/XAQSource'
X-Enrichment:
$ref: '#/components/headers/XEnrichment'
Cache-Control:
$ref: '#/components/headers/CacheControl'
content:
application/json:
schema:
type: object
required:
- nearest
- redirectTo
- isNew
properties:
nearest:
$ref: '#/components/schemas/Place'
redirectTo:
type: string
isNew:
type: boolean
'400':
$ref: '#/components/responses/BadRequest'
'401':
$ref: '#/components/responses/Unauthorized'
'403':
$ref: '#/components/responses/Forbidden'
'404':
$ref: '#/components/responses/NotFound'
'429':
$ref: '#/components/responses/RateLimited'
'502':
$ref: '#/components/responses/BadGateway'
'503':
$ref: '#/components/responses/Unavailable'
'504':
$ref: '#/components/responses/GatewayTimeout'
/v1/weather/locations:
get:
tags:
- Weather
security:
- {}
- ApiKey: []
- ClientId: []
ClientSecret: []
operationId: listWeatherLocations
summary: Places
description: 'One place by `slug` (answered as `{ "location": … }`), or a page of places filtered by `tag` or `country`. `mode=tags` and `mode=stats` answer tag counts and totals.'
parameters:
- name: slug
in: query
schema:
$ref: '#/components/schemas/Slug'
- name: tag
in: query
schema:
$ref: '#/components/schemas/Tag'
- name: country
in: query
description: ISO 3166-1 alpha-2 code.
schema:
type: string
pattern: ^[A-Za-z]{2}$
- name: mode
in: query
schema:
type: string
enum:
- tags
- stats
- name: limit
in: query
description: Clamped to 1 to 200.
schema:
type: integer
minimum: 1
maximum: 200
default: 50
- $ref: '#/components/parameters/Skip'
responses:
'200':
description: The place, a page of places, or tag counts or stats.
headers:
X-Cache:
$ref: '#/components/headers/XCache'
X-Weather-Provider:
$ref: '#/components/headers/XWeatherProvider'
X-Current-Source:
$ref: '#/components/headers/XCurrentSource'
X-Weather-Blend:
$ref: '#/components/headers/XWeatherBlend'
X-Fetched-At:
$ref: '#/components/headers/XFetchedAt'
X-AQ-Source:
$ref: '#/components/headers/XAQSource'
X-Enrichment:
$ref: '#/components/headers/XEnrichment'
Cache-Control:
$ref: '#/components/headers/CacheControl'
content:
application/json:
schema:
type: object
additionalProperties: true
'400':
$ref: '#/components/responses/BadRequest'
'401':
$ref: '#/components/responses/Unauthorized'
'403':
$ref: '#/components/responses/Forbidden'
'404':
$ref: '#/components/responses/NotFound'
'429':
$ref: '#/components/responses/RateLimited'
'502':
$ref: '#/components/responses/BadGateway'
'503':
$ref: '#/components/responses/Unavailable'
'504':
$ref: '#/components/responses/GatewayTimeout'
components:
headers:
XAQSource:
description: Where air quality came from (air quality answers).
schema:
type: string
XCurrentSource:
description: 'Where the `current` block came from: a station, the provider or `fallback`.'
schema:
type: string
XFetchedAt:
description: When the weather service fetched the data.
schema:
type: string
CacheControl:
description: How long the answer may be cached, by you and by the edge.
schema:
type: string
XEnrichment:
description: Whether insight enrichment was applied (`tomorrow`, `skipped-budget`, `skipped-error` or `none`), when the weather service reports it.
schema:
type: string
XWeatherProvider:
description: 'The baseline: `open-meteo:blend`, `open-meteo:<model>`, `open-meteo:best_match`, `tomorrow` or `fallback`.'
schema:
type: string
XWeatherBlend:
description: The model weights used, when the service reports them.
schema:
type: string
XCache:
description: Where the answer came from. `HIT` when this edge had it. On a miss it is the weather service's own cache status, `HIT` or `MISS`.
schema:
type: string
schemas:
Error:
type: object
required:
- error
properties:
error:
type: object
required:
- code
- message
properties:
code:
type: string
enum:
- bad_request
- unauthorized
- forbidden
- not_found
- rate_limited
- upstream_unavailable
- upstream_error
- upstream_timeout
- not_configured
- internal_error
message:
type: string
requestId:
type: string
Place:
type: object
description: A place, after Schema.org Place.
required:
- slug
- name
- lat
- lon
properties:
slug:
type: string
name:
type: string
province:
type:
- string
- 'null'
country:
type:
- string
- 'null'
lat:
type: number
lon:
type: number
elevation:
type:
- number
- 'null'
tags:
type: array
items:
type: string
WeatherData:
type: object
description: 'The weather for a point: `current`, `hourly` and `daily` blocks, and when the weather service provides them `utc_offset_seconds`, the model comparison and the minutely nowcast. Which of those fields are present depends on the weather service. Times are ISO 8601 in the place''s own time zone.'
properties:
current:
type: object
additionalProperties: true
hourly:
type: object
additionalProperties: true
daily:
type: object
additionalProperties: true
additionalProperties: true
Slug:
type: string
pattern: ^[a-z0-9-]{1,80}$
Tag:
type: string
pattern: ^[a-z0-9-]{1,40}$
parameters:
Skip:
name: skip
in: query
description: How many items to skip. Clamped to 0 to 10000.
schema:
type: integer
minimum: 0
maximum: 10000
default: 0
Lat:
name: lat
in: query
description: Latitude in degrees, WGS 84. Give with `lon`.
schema:
type: number
minimum: -90
maximum: 90
LonRequired:
name: lon
in: query
required: true
description: Longitude in degrees, WGS 84.
schema:
type: number
minimum: -180
maximum: 180
LatRequired:
name: lat
in: query
required: true
description: Latitude in degrees, WGS 84.
schema:
type: number
minimum: -90
maximum: 90
Lon:
name: lon
in: query
description: Longitude in degrees, WGS 84. Give with `lat`.
schema:
type: number
minimum: -180
maximum: 180
responses:
BadRequest:
description: A parameter is missing or out of range.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
Unauthorized:
description: The API key is malformed, unknown, expired or over its limit (code `unauthorized`). Anonymous calls are never refused for lack of a key.
headers:
WWW-Authenticate:
schema:
type: string
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
BadGateway:
description: The weather service failed or answered something unreadable (code `upstream_error`).
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
Forbidden:
description: The API key is valid but not enabled for weather (code `forbidden`).
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
NotFound:
description: No such resource, or it isn't public.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
GatewayTimeout:
description: The weather service did not answer in time (code `upstream_timeout`). Retry after `Retry-After` seconds.
headers:
Retry-After:
schema:
type: integer
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
Unavailable:
description: The data behind this route is unavailable for now. Retry later.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
RateLimited:
description: Too many requests. Wait for `Retry-After` seconds.
headers:
Retry-After:
schema:
type: integer
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
securitySchemes:
ApiKey:
type: apiKey
in: header
name: X-API-Key
description: A Nyuchi API key as `nyk_<id>.nys_<secret>`, scoped for `weather`. Optional on `/v1/weather/*`; ignored elsewhere.
ClientId:
type: apiKey
in: header
name: X-Client-Id
description: The key's `nyk_…` client ID. Send with `X-Client-Secret`.
ClientSecret:
type: apiKey
in: header
name: X-Client-Secret
description: The key's `nys_…` secret. Send with `X-Client-Id`.