Tollkit Weather API

The Weather API from Tollkit — 1 operation(s) for weather.

GitHub OpenAPI

Operations 1

POST /weather Weather forecast and alerts #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • 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.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/tollkit-dev:tollkit-dev-weather-api"
All apis
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.

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.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

tollkit-dev-weather-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Tollkit Data Weather API
  version: 0.39.0
  description: 'SEC filings and financials, IP lookup, weather, airport delays, address geocoding, exchange rates, and x402 market data. Other Tollkit tools are described at: https://extract.tollkit.dev/openapi.json, https://attest.tollkit.dev/openapi.json, https://web.tollkit.dev/openapi.json, https://chain.tollkit.dev/openapi.json.'
  x-guidance: Call any operation with POST and the JSON body its schema shows. Without payment you get HTTP 402 with the exact price in USDC on Base or Solana; pay with any x402 client and repeat the request. Failed calls (any 4xx or 5xx) are never charged. Each operation's description says what it returns and which inputs are refused for free.
  contact:
    email: hello@tollkit.dev
servers:
- url: https://data.tollkit.dev
tags:
- name: Weather
paths:
  /weather:
    post:
      operationId: weatherForecast
      summary: Weather forecast and alerts
      description: 'Weather anywhere in the world: give a latitude and longitude (or a US street address), get the forecast for the next 7 days in day and night periods (temperature, rain, wind, summary). In the US it comes from the National Weather Service, with any active weather alerts for that spot; elsewhere from MET Norway. $0.002 per call; a failed lookup is not charged.'
      tags:
      - Weather
      x-payment-info:
        price:
          mode: fixed
          currency: USD
          amount: '0.002000'
        protocols:
        - x402: {}
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              description: Give lat and lon (anywhere in the world), or a US street address.
              properties:
                lat:
                  type: number
                  description: Latitude, e.g. 38.90
                lon:
                  type: number
                  description: Longitude, e.g. -77.04
                address:
                  type: string
                  maxLength: 200
                  description: US street address instead of lat/lon, e.g. "1600 Pennsylvania Ave NW, Washington, DC 20500".
                periods:
                  type: integer
                  minimum: 1
                  maximum: 14
                  default: 14
                  description: How many 12-hour periods to return.
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $schema: https://json-schema.org/draft/2020-12/schema
                type: object
                required:
                - location
                - forecast
                - alerts
                - source
                properties:
                  location:
                    type: object
                    properties:
                      city:
                        type:
                        - string
                        - 'null'
                      state:
                        type:
                        - string
                        - 'null'
                      lat:
                        type: number
                      lon:
                        type: number
                      time_zone:
                        type:
                        - string
                        - 'null'
                  forecast:
                    type: array
                    items:
                      type: object
                      properties:
                        name:
                          type: string
                        start:
                          type: string
                        end:
                          type: string
                        temperature:
                          type: number
                        temperature_unit:
                          type: string
                          description: F in the US (National Weather Service), C elsewhere (MET Norway)
                        precipitation_chance:
                          type:
                          - number
                          - 'null'
                          description: Percent, US only
                        precipitation_mm:
                          type: number
                          description: Expected rain or snow in mm, outside the US
                        wind:
                          type: string
                        wind_direction:
                          type: string
                        summary:
                          type: string
                        detail:
                          type: string
                  alerts:
                    type: array
                    items:
                      type: object
                      properties:
                        event:
                          type: string
                        severity:
                          type: string
                        headline:
                          type:
                          - string
                          - 'null'
                        expires:
                          type: string
                  forecast_updated:
                    type:
                    - string
                    - 'null'
                  source:
                    type: string
                  alerts_note:
                    type: string
                    description: 'Outside the US: weather alerts are only available for US locations.'
                  times:
                    type: string
                    description: 'Outside the US: times are UTC; day and night follow approximate local time.'
                  geocoded:
                    type: object
                    description: 'Present when you sent an address: what the Census geocoder matched it to.'
                    properties:
                      input:
                        type: string
                      matched_address:
                        type: string
                      lat:
                        type: number
                      lon:
                        type: number
                      notice:
                        type: string
        '400':
          description: 'Bad input: a missing or malformed field, or a URL that is not public. Not charged.'
          content:
            application/json:
              schema:
                type: object
                required:
                - error
                - message
                - charged
                properties:
                  error:
                    type: string
                    description: Machine-readable code, e.g. invalid_url, no_pool, page_fetch_failed.
                  message:
                    type: string
                    description: Plain-English reason, ending in "Nothing was charged."
                  charged:
                    type: boolean
                    const: false
        '402':
          description: Payment Required. The PAYMENT-REQUIRED header carries the x402 v2 quote (price, asset, network, payTo) for each network accepted. Pay and retry with PAYMENT-SIGNATURE.
        '422':
          description: Valid input the tool could not answer, e.g. an empty page, a token with no pool, an unknown ticker. Not charged.
          content:
            application/json:
              schema:
                type: object
                required:
                - error
                - message
                - charged
                properties:
                  error:
                    type: string
                    description: Machine-readable code, e.g. invalid_url, no_pool, page_fetch_failed.
                  message:
                    type: string
                    description: Plain-English reason, ending in "Nothing was charged."
                  charged:
                    type: boolean
                    const: false
        '429':
          description: Too many requests from this caller; retry after a short wait. Not charged.
          content:
            application/json:
              schema:
                type: object
                required:
                - error
                - message
                - charged
                properties:
                  error:
                    type: string
                    description: Machine-readable code, e.g. invalid_url, no_pool, page_fetch_failed.
                  message:
                    type: string
                    description: Plain-English reason, ending in "Nothing was charged."
                  charged:
                    type: boolean
                    const: false
        '502':
          description: An upstream source (the page, a chain RPC, a public data API) failed or timed out. Not charged; safe to retry.
          content:
            application/json:
              schema:
                type: object
                required:
                - error
                - message
                - charged
                properties:
                  error:
                    type: string
                    description: Machine-readable code, e.g. invalid_url, no_pool, page_fetch_failed.
                  message:
                    type: string
                    description: Plain-English reason, ending in "Nothing was charged."
                  charged:
                    type: boolean
                    const: false
        '503':
          description: The tool is temporarily unavailable on this deployment. Not charged.
          content:
            application/json:
              schema:
                type: object
                required:
                - error
                - message
                - charged
                properties:
                  error:
                    type: string
                    description: Machine-readable code, e.g. invalid_url, no_pool, page_fetch_failed.
                  message:
                    type: string
                    description: Plain-English reason, ending in "Nothing was charged."
                  charged:
                    type: boolean
                    const: false