WeatherAPI · Arazzo Workflow

WeatherAPI Travel Briefing

Version 1.0.0

Build a full travel briefing for a destination — current, forecast, astronomy, and alerts.

1 workflow 3 source APIs 1 provider
View Spec View on GitHub WeatherForecastHistoryMarineAstronomyGeolocationSportsAlertsPublic APIsArazzoWorkflows

Provider

weatherapi

Workflows

travel-briefing
Resolve a destination and assemble current, forecast, astronomy, and alerts.
Resolves the destination query into a location, then layers current weather with air quality, a forecast with pollen and alerts, astronomy for the arrival date, and the full government alert list.
5 steps inputs: arrivalDate, days, query outputs: alerts, condition, epaIndex, forecastDays, matchedName, moonPhase, sunrise, sunset, tempC
1
searchLocation
Resolve the destination query into the best matching location.
2
getCurrent
Fetch current conditions with air quality for the destination.
3
getForecast
Fetch a multi-day forecast for the destination with pollen and alerts enabled.
4
getAstronomy
Add sun and moon detail for the destination on the arrival date.
5
getAlerts
Pull any active government weather alerts for the destination.

Source API Descriptions

Arazzo Workflow Specification

Raw ↑
arazzo: 1.0.1
info:
  title: WeatherAPI Travel Briefing
  summary: Build a full travel briefing for a destination — current, forecast, astronomy, and alerts.
  description: >-
    A comprehensive destination briefing that chains the most useful WeatherAPI
    endpoints. The query is resolved through the search/autocomplete endpoint,
    current conditions with air quality are fetched, a multi-day forecast with
    pollen and alerts is retrieved, astronomy for the arrival date is added, and
    the dedicated alerts endpoint pulls any government warnings. Every step
    spells out its request inline so the flow can be read and executed without
    opening the underlying OpenAPI description.
  version: 1.0.0
sourceDescriptions:
- name: alertsApi
  url: ../openapi/weatherapi-alerts-api-openapi.yml
  type: openapi
- name: geoApi
  url: ../openapi/weatherapi-geo-api-openapi.yml
  type: openapi
- name: weatherApi
  url: ../openapi/weatherapi-weather-api-openapi.yml
  type: openapi
workflows:
- workflowId: travel-briefing
  summary: Resolve a destination and assemble current, forecast, astronomy, and alerts.
  description: >-
    Resolves the destination query into a location, then layers current weather
    with air quality, a forecast with pollen and alerts, astronomy for the
    arrival date, and the full government alert list.
  inputs:
    type: object
    required:
    - query
    - days
    - arrivalDate
    properties:
      query:
        type: string
        description: Destination city name, postcode, or coordinates to search for.
      days:
        type: integer
        description: Number of forecast days to return (1-14, plan dependent).
      arrivalDate:
        type: string
        description: Arrival date in yyyy-MM-dd format for the astronomy lookup.
  steps:
  - stepId: searchLocation
    description: Resolve the destination query into the best matching location.
    operationId: searchLocations
    parameters:
    - name: q
      in: query
      value: $inputs.query
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      matchedId: $response.body#/0/id
      matchedName: $response.body#/0/name
  - stepId: getCurrent
    description: Fetch current conditions with air quality for the destination.
    operationId: getCurrentWeather
    parameters:
    - name: q
      in: query
      value: id:$steps.searchLocation.outputs.matchedId
    - name: aqi
      in: query
      value: 'yes'
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      tempC: $response.body#/current/temp_c
      condition: $response.body#/current/condition/text
      epaIndex: $response.body#/current/air_quality/us-epa-index
  - stepId: getForecast
    description: >-
      Fetch a multi-day forecast for the destination with pollen and alerts
      enabled.
    operationId: getForecast
    parameters:
    - name: q
      in: query
      value: id:$steps.searchLocation.outputs.matchedId
    - name: days
      in: query
      value: $inputs.days
    - name: pollen
      in: query
      value: 'yes'
    - name: alerts
      in: query
      value: 'yes'
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      forecastDays: $response.body#/forecast/forecastday
  - stepId: getAstronomy
    description: Add sun and moon detail for the destination on the arrival date.
    operationId: getAstronomy
    parameters:
    - name: q
      in: query
      value: id:$steps.searchLocation.outputs.matchedId
    - name: dt
      in: query
      value: $inputs.arrivalDate
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      sunrise: $response.body#/astronomy/astro/sunrise
      sunset: $response.body#/astronomy/astro/sunset
      moonPhase: $response.body#/astronomy/astro/moon_phase
  - stepId: getAlerts
    description: Pull any active government weather alerts for the destination.
    operationId: getAlerts
    parameters:
    - name: q
      in: query
      value: id:$steps.searchLocation.outputs.matchedId
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      alerts: $response.body#/alerts/alert
  outputs:
    matchedName: $steps.searchLocation.outputs.matchedName
    tempC: $steps.getCurrent.outputs.tempC
    condition: $steps.getCurrent.outputs.condition
    epaIndex: $steps.getCurrent.outputs.epaIndex
    forecastDays: $steps.getForecast.outputs.forecastDays
    sunrise: $steps.getAstronomy.outputs.sunrise
    sunset: $steps.getAstronomy.outputs.sunset
    moonPhase: $steps.getAstronomy.outputs.moonPhase
    alerts: $steps.getAlerts.outputs.alerts

Work with this as data

Every workflow 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 arazzo workflows

4 MCP tools reach this
  • find_arazzoBrowse and filter every workflow in the catalog.
  • 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 workflow
curl "https://apis.io/api/v1/arazzo/weatherapi-travel-briefing-workflow"
All arazzo workflows
curl "https://apis.io/api/v1/arazzo?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

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. See our Privacy Policy and Terms.

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