Pull this API's OpenAPI, operations, scores and pricing into your own code or AI agent
with a free APIs.io key —
sign in with
GitHub,
Google or
LinkedIn.
No form to fill in; signing in shares your email address with us (Privacy).
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Get an API 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.
openapi: 3.2.0
info:
title: Weather of Record lookup Forecast API
version: 1.1.0
description: 'Published government and volunteer weather records for a U.S. street address and date, with provenance for every value. Records, not opinions: no response is a determination about any property. The absence of a record is not evidence that an event did not occur. Records reach back to about 1960. A lookup runs in roughly two minutes: submit, then poll.'
servers:
- url: https://weatherofrecord.com
tags:
- name: Forecast
paths:
/api/v1/forecast:
get:
summary: Current National Weather Service forecast for a U.S. point (no key)
parameters:
- name: lat
in: query
required: false
schema:
type: number
minimum: -90
maximum: 90
description: Latitude
- name: lon
in: query
required: false
schema:
type: number
minimum: -180
maximum: 180
description: Longitude
- name: hours
in: query
required: false
schema:
type: integer
minimum: 1
maximum: 168
description: Hourly values to return (default 48)
- name: periods
in: query
required: false
schema:
type: integer
minimum: 1
maximum: 14
description: 12-hour periods to return (default 14)
responses:
'200':
description: 'schema wor-034-forecast-1: kind (forecast), location, issued_utc, retrieved_utc, age_minutes, stale, served_from_cache, periods, hourly, spread (how much the forecast models disagree: NOAA National Blend of Models temperature spread, models_agree and its rule; null with spread_reason when it cannot be given), sources, notice. A forecast, not a record of observed weather.'
'401':
description: Address requests need a key
'404':
description: not_available_outside_nws_coverage
'422':
description: bad_location or invalid_input
'429':
description: rate_limited
'502':
description: nws_unavailable
'503':
description: api_disabled (not enabled) or geocoder_unavailable (an address could not be placed; send lat and lon)
'500':
description: internal_error
tags:
- Forecast
operationId: getApiV1Forecast
x-operation-id-source: derived
post:
summary: Current National Weather Service forecast for a U.S.
security:
- bearerAuth: []
- {}
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
address:
type: string
lat:
type: number
lon:
type: number
hours:
type: integer
minimum: 1
maximum: 168
periods:
type: integer
minimum: 1
maximum: 14
additionalProperties: false
responses:
'200':
description: 'schema wor-034-forecast-1: kind (forecast), location, issued_utc, retrieved_utc, age_minutes, stale, served_from_cache, periods, hourly, spread (how much the forecast models disagree: NOAA National Blend of Models temperature spread, models_agree and its rule; null with spread_reason when it cannot be given), sources, notice. A forecast, not a record of observed weather.'
'401':
description: Address requests need a key
'404':
description: not_available_outside_nws_coverage
'422':
description: bad_location or invalid_input
'429':
description: rate_limited
'502':
description: nws_unavailable
'503':
description: api_disabled (not enabled) or geocoder_unavailable (an address could not be placed; send lat and lon)
'500':
description: internal_error
tags:
- Forecast
operationId: postApiV1Forecast
x-operation-id-source: derived
components:
securitySchemes:
bearerAuth:
type: http
scheme: bearer