---
title: "Weather Alerts"
method: GET
path: "/alerts.json"
tags: ["Alerts"]
---

# Weather Alerts

`GET /alerts.json`

Returns government weather alerts and warnings (USA, UK, Europe, rest of world) for a given location, if available.

## Query parameters

- `key` string, required
- `q` string, required

## Response `200`

Weather alerts

- AlertsResponse
  - `location` Location — Location metadata returned with every weather response.
    - `name` string — Location name
    - `region` string — Region or state
    - `country` string — Country name
    - `lat` number, float — Latitude
    - `lon` number, float — Longitude
    - `tz_id` string — IANA timezone ID, e.g. Europe/London
    - `localtime_epoch` integer — Local time as Unix epoch
    - `localtime` string — Local date and time string
  - `alerts` object
    - `alert` Alert[]
      - `headline` string
      - `msgtype` string
      - `severity` string
      - `urgency` string
      - `areas` string
      - `category` string
      - `certainty` string
      - `event` string
      - `note` string
      - `effective` string
      - `expires` string
      - `desc` string
      - `instruction` string

## Other responses

- `400` — Bad request — invalid parameter or location not found.
- `401` — Unauthorized — API key missing or invalid.
- `403` — Forbidden — API key quota exceeded, disabled, or plan does not include this resource.

---

[API](https://skmtc.dev/weatherapi/apis/weatherapi-com.md) · [All operations](https://skmtc.dev/weatherapi/apis/weatherapi-com/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/weatherapi/weatherapi-com/revisions/bf3da15deb3e/schema)
