WeatherAPI · Arazzo Workflow

WeatherAPI Weather Alerts Check

Version 1.0.0

Resolve a location, probe its forecast for alerts, then branch to pull full alert detail.

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

Provider

weatherapi

Workflows

weather-alerts-check
Search a location, probe for alerts, and pull detail when present.
Resolves the query into a location, fetches a forecast with alerts enabled, and branches to the dedicated alerts endpoint only when warnings exist.
3 steps inputs: query outputs: alerts, matchedName
1
searchLocation
Resolve the free-text query into the best matching location.
2
probeForecastAlerts
Fetch a one-day forecast with alerts enabled to determine whether any government warnings are active for the resolved location.
3
getAlertDetail
Pull the full set of government weather alerts for the resolved location from the dedicated alerts endpoint.

Source API Descriptions

Arazzo Workflow Specification

Raw ↑
arazzo: 1.0.1
info:
  title: WeatherAPI Weather Alerts Check
  summary: Resolve a location, probe its forecast for alerts, then branch to pull full alert detail.
  description: >-
    A government-alert monitoring flow with branching. A free-text query is
    resolved through the search/autocomplete endpoint, a short forecast is
    fetched with the alerts flag enabled to probe whether any warnings exist, and
    the flow branches: when the forecast carries one or more alerts it calls the
    dedicated alerts endpoint to pull full alert detail, and when no alerts are
    present it ends cleanly. 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: weather-alerts-check
  summary: Search a location, probe for alerts, and pull detail when present.
  description: >-
    Resolves the query into a location, fetches a forecast with alerts enabled,
    and branches to the dedicated alerts endpoint only when warnings exist.
  inputs:
    type: object
    required:
    - query
    properties:
      query:
        type: string
        description: Partial city name, postcode, or coordinates to search for.
  steps:
  - stepId: searchLocation
    description: Resolve the free-text 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: probeForecastAlerts
    description: >-
      Fetch a one-day forecast with alerts enabled to determine whether any
      government warnings are active for the resolved location.
    operationId: getForecast
    parameters:
    - name: q
      in: query
      value: id:$steps.searchLocation.outputs.matchedId
    - name: days
      in: query
      value: 1
    - name: alerts
      in: query
      value: 'yes'
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      alertList: $response.body#/alerts/alert
    onSuccess:
    - name: hasAlerts
      type: goto
      stepId: getAlertDetail
      criteria:
      - context: $response.body
        condition: $.alerts.alert.length > 0
        type: jsonpath
    - name: noAlerts
      type: end
      criteria:
      - context: $response.body
        condition: $.alerts.alert.length == 0
        type: jsonpath
  - stepId: getAlertDetail
    description: >-
      Pull the full set of government weather alerts for the resolved location
      from the dedicated alerts endpoint.
    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
    alerts: $steps.getAlertDetail.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-weather-alerts-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.