Community. Driven. Weather. Data.Always Ad-FreeDeveloper FriendlyChecking statusDiscord
Become a supporter
Sign in

Low visibility

Fog, marine fog and smoke as polygons by visibility category, every 15 minutes, with a confidence, a cause and the sources behind each area. Plus everything known at a single point.


Base URL: https://api.wxalerts.org

Where visibility is down right now, and why: fog, marine fog and smoke, as polygons by category, refreshed every 15 minutes. Each area says how sure the product is and what it is based on. No polygon means normal visibility.

Needs an API key (weather:read). /v1/visibility and /v1/visibility/point are served only under /v1; the unprefixed paths answer 401. Browsers block calls from other websites (CORS allows only wxalerts.org), so call it from a server, script or app. Both send Cache-Control: private, max-age=120; a new analysis lands every 15 minutes, so polling faster than that learns nothing. The key’s rate limit applies.

A third route, POST /visibility/reports, takes driver reports from integrations by arrangement and is not for general use.

Why WxAlerts sets no thresholds, and what each source adds, is in Visibility categories and where they come from.

Categories

Prevailing visibility, from aviation and NWS practice.

category category_name visibility
1 reduced 3 to 5 mi (4828 to 8047 m)
2 low 1 to 3 mi (1609 to 4828 m)
3 very_low 1/4 to 1 mi (402 to 1609 m)
4 near_zero under 1/4 mi (under 402 m)
0 normal 5 mi or more. Never a polygon; used only by /visibility/point

Each lower edge is inclusive: 1609 m is low, 1608 m is very_low, 8047 m is normal.

Confidence, cause and grouping

Confidence follows from how many independent sources agree: one is low, two medium, three or more high. A reported area is always high.

Cause is fog, marine_fog or smoke. Freezing fog is reported as fog.

Areas are grouped, not one per fog bank: each feature is every area sharing one category, confidence, set of sources and cause, as a single MultiPolygon. The same category can appear several times in one response with different confidence or sources.

vis_m_min is the lowest analysed visibility inside the area, in metres. It can sit above the category’s range: where an advisory set the category (at least very_low), the analysis underneath may still read several miles. legend repeats the category table with its edges in metres (min_m inclusive, max_m exclusive, null for no floor). Coordinates are to 5 decimal places, about a metre.

Point answer details

  • Place. Give lat and lon, or q (a place name) or location_id, as on /forecast. None of them is a 422; a name or id that matches nothing is a 404. location is named only when you asked by q or location_id.
  • current is the worst area covering the point: the highest category, then the highest confidence, then a reported area. Outside every area it is category 0, normal, with cause, confidence and vis_m_min null and sources empty. Before the first analysis it is null and message says so; the other blocks still answer.
  • station is a single measurement at one spot, so it can disagree with current, which is the fused picture. station_id carries the source as a prefix (metar:KSFO, ndbc:PTOA1).
  • advisories are soonest to expire first. phenomena is FG dense fog, MF marine dense fog, ZF freezing fog or SM dense smoke. Empty when none.
  • outlook is HRRR surface visibility for the next six hours, from the hour in progress, each mapped to the same categories. It is the lowest value in a 6 km block, so it leans pessimistic. null outside the HRRR grid (the contiguous United States and its surroundings).

GET /v1/visibility

Low visibility areas in a bounding box, as GeoJSON.

Access. An API key holding weather:read, sent as X-API-Key or Authorization: Bearer. Served only at /v1/visibility; the bare path answers 401 api_key_required.

The newest low visibility analysis (every 15 minutes) as polygons by category, clipped to the bbox. Categories: 1 reduced (3 to 5 mi), 2 low (1 to 3 mi), 3 very_low (1/4 to 1 mi), 4 near_zero (under 1/4 mi); no polygon means normal. Each feature carries its cause (fog, marine_fog, smoke), confidence (low, medium, high), the sources that agreed (analysis, station, advisory, reports), whether it was created by a cluster of driver reports (reported) and the lowest analysed visibility in metres (vis_m_min). WxAlerts sets no thresholds: filter on category and confidence yourself. bbox at most 30 degrees a side. No run published yet is a 503.

Parameters

Name In Type Required Default Bounds Description
bbox query string yes none at most 100 characters west,south,east,north in degrees, west less than east and south less than north, at most 30 degrees a side
min_category query integer no 1 1 to 4 Only areas this bad or worse, 1 (reduced) to 4 (near_zero)

Response

Returns object.

Field Type Description
type “FeatureCollection” Always FeatureCollection.
server_time string (date-time) When this response was built, UTC.
analysis_time string (date-time) The valid time of the analysis the areas come from, UTC.
published_at string (date-time) When that analysis was published, UTC.
bbox array of number The box asked for, as west, south, east, north in degrees.
min_category integer The min_category filter that was applied, 1 to 4.
legend array of object The category table with its edges in metres, so a client can label a map.
legend[].category integer Category number, 0 to 4. See category_name.
legend[].category_name string normal, reduced, low, very_low or near_zero.
legend[].range_mi string The category’s visibility range in miles, as text.
legend[].min_m number or null Inclusive lower edge, m. Null: no floor.
legend[].max_m number or null Exclusive upper edge, m.
features array of object The areas, least severe first. Empty when visibility is normal in the box.
features[].type “Feature” Always Feature.
features[].geometry object A GeoJSON MultiPolygon in longitude, latitude order, clipped to the bbox.
features[].properties object category, category_name, cause, confidence, sources, reported, vis_m_min, analysis_time
{
  "analysis_time": "2026-11-09T18:45:00Z",
  "bbox": [
    -123.2,
    37.4,
    -121.8,
    38.2
  ],
  "features": [
    {
      "geometry": {
        "coordinates": [
          [
            [
              [
                -122.52,
                37.71
              ],
              [
                -122.38,
                37.71
              ],
              [
                -122.38,
                37.82
              ],
              [
                -122.52,
                37.82
              ],
              [
                -122.52,
                37.71
              ]
            ]
          ]
        ],
        "type": "MultiPolygon"
      },
      "properties": {
        "category": 4,
        "category_name": "near_zero",
        "cause": "marine_fog",
        "confidence": "high",
        "sources": [
          "analysis",
          "station",
          "advisory"
        ],
        "reported": false,
        "vis_m_min": 180,
        "analysis_time": "2026-11-09T18:45:00Z"
      },
      "type": "Feature"
    }
  ],
  "legend": [
    {
      "category": 1,
      "category_name": "reduced",
      "max_m": 8047,
      "min_m": 4828,
      "range_mi": "3 to 5 mi"
    },
    {
      "category": 4,
      "category_name": "near_zero",
      "max_m": 402,
      "range_mi": "under 1/4 mi"
    }
  ],
  "min_category": 1,
  "published_at": "2026-11-09T19:08:21Z",
  "server_time": "2026-11-09T19:12:04Z",
  "type": "FeatureCollection"
}

Errors

Status Meaning
422 the bbox is not four finite numbers, is inverted, outside the world, or wider or taller than 30 degrees: {"detail": "bbox is larger than 30 degrees a side; zoom in"}. A bad min_category returns the list form.
503 {"detail": "No visibility analysis has been published yet. The product updates every 15 minutes; try again shortly."}

Plus the common errors every route can return (400 key_in_query, 401, 403, 429, 500).

Caching and limits

Cache-Control: public, max-age=120 at the origin; because the route is served only under /v1 you receive private, max-age=120. A new analysis lands every 15 minutes, so polling faster learns nothing. No ETag. Counted against the key’s overall limit only.

GET /v1/visibility/point

Low visibility at a point: the analysis, the nearest station, advisories, HRRR.

Access. An API key holding weather:read, sent as X-API-Key or Authorization: Bearer. Served only at /v1/visibility/point; the bare path answers 401 api_key_required.

Everything the product knows at one place. current is the worst current area covering the point, or category 0 normal when none does (null, with a message, before the first run is published). station is the nearest airport (METAR) or buoy (NDBC) within 25 km that reported a visibility in the last 90 minutes. advisories are the active NWS Dense Fog, Marine Dense Fog, Freezing Fog and Dense Smoke Advisories covering the point. outlook is HRRR visibility for the next 6 hours with each hour’s category (null outside the HRRR grid). Visibility in metres. Give lat and lon, or q, or location_id.

Parameters

Name In Type Required Default Bounds Description
lat query number or null no none -90 to 90 Latitude in degrees. Give with lon
lon query number or null no none -180 to 180 Longitude in degrees, negative west. Give with lat
q query string or null no none at least 1 character, at most 120 characters Place name, ZIP or state, resolved through /locations/search. Used when lat and lon are not both given
location_id query integer or null no none none id from a /locations/search result. Used when lat and lon are not both given

Response

Returns object.

Field Type Description
server_time string (date-time) When this response was built, UTC.
location object The point the answer is for.
location.name string or null Bare place name. Null when asked by lat and lon.
location.display_name string or null Disambiguated label such as ‘Mobile, AL’. Null when asked by lat/lon.
location.state string or null Two-letter state. Null when asked by lat and lon.
location.lat number Latitude of the point, degrees.
location.lon number Longitude of the point, degrees.
analysis_time string (date-time) or null The run current comes from. Null before the first run.
published_at string (date-time) or null When that analysis was published, UTC. Null before the first run.
message string or null Set when there is no analysis yet; current is then null.
current object or null The worst current area at the point, or category 0 normal
current.category integer 1 reduced (3 to 5 mi), 2 low (1 to 3 mi), 3 very_low (1/4 to 1 mi), 4 near_zero (under 1/4 mi). 0 normal (5 mi or more) where a value is needed.
current.category_name string normal, reduced, low, very_low or near_zero.
current.cause “fog” | “marine_fog” | “smoke” or null Null when normal
current.confidence “high” | “medium” | “low” or null low, medium or high, by how many independent sources agree. Null when normal.
current.sources array of string analysis, station, advisory, reports
current.reported boolean Created by a cluster of 10 or more independent driver reports
current.vis_m_min number or null Lowest analysed visibility in the area, m
station object or null Nearest airport or buoy within 25 km with a visibility in the last 90 minutes
station.station_id string The station, prefixed with its source.
station.source string metar (airport) or ndbc (buoy)
station.distance_km number Distance from the point to the station, km.
station.visibility_m number The visibility the station reported, in metres.
station.observed_at string (date-time) When the station made the observation, UTC.
advisories array of object NWS fog and smoke advisories in force at the point, soonest to expire first.
advisories[].event string The advisory’s name.
advisories[].phenomena string FG, MF, ZF or SM
advisories[].office string or null The NWS office that issued the advisory.
advisories[].expires string (date-time) or null When the advisory expires, UTC.
advisories[].ends string (date-time) or null When the event is expected to end, UTC.
outlook object or null HRRR visibility, next 6 hours. Null outside the HRRR grid.
outlook.model “hrrr” The forecast model. Always hrrr.
outlook.cycle string (date-time) or null The model run the hours come from, UTC.
outlook.cell_id integer Identifier of the model grid cell the point falls in.
outlook.resolution_km number Grid spacing of the model, km.
outlook.hours array of object Each hour from the one in progress, in order.
outlook.hours[].valid_time string (date-time) The hour the value is valid for, UTC.
outlook.hours[].visibility_m number or null HRRR block minimum, m
outlook.hours[].category integer 1 reduced (3 to 5 mi), 2 low (1 to 3 mi), 3 very_low (1/4 to 1 mi), 4 near_zero (under 1/4 mi). 0 normal (5 mi or more) where a value is needed.
outlook.hours[].category_name string normal, reduced, low, very_low or near_zero.
legend array of object The category table, edges in metres.
legend[].category integer Category number, 0 to 4. See category_name.
legend[].category_name string normal, reduced, low, very_low or near_zero.
legend[].range_mi string The category’s visibility range in miles, as text.
legend[].min_m number or null Inclusive lower edge, m. Null: no floor.
legend[].max_m number or null Exclusive upper edge, m.
{
  "advisories": [],
  "analysis_time": "2026-11-09T18:45:00Z",
  "current": {
    "category": 3,
    "category_name": "very_low",
    "cause": "fog",
    "confidence": "medium",
    "reported": false,
    "sources": [
      "analysis",
      "station"
    ],
    "vis_m_min": 424
  },
  "legend": [
    {
      "category": 1,
      "category_name": "reduced",
      "max_m": 8047,
      "min_m": 4828,
      "range_mi": "3 to 5 mi"
    }
  ],
  "location": {
    "lat": 37.62,
    "lon": -122.38
  },
  "outlook": {
    "cell_id": 267091,
    "cycle": "2026-11-09T18:00:00Z",
    "hours": [
      {
        "category": 0,
        "category_name": "normal",
        "valid_time": "2026-11-09T19:00:00Z",
        "visibility_m": 13500
      },
      {
        "category": 0,
        "category_name": "normal",
        "valid_time": "2026-11-09T20:00:00Z",
        "visibility_m": 17200
      }
    ],
    "model": "hrrr",
    "resolution_km": 6
  },
  "published_at": "2026-11-09T19:08:21Z",
  "server_time": "2026-11-09T19:12:05Z",
  "station": {
    "distance_km": 1.3,
    "observed_at": "2026-11-09T18:56:00Z",
    "source": "metar",
    "station_id": "metar:KSFO",
    "visibility_m": 1207
  }
}

Errors

Status Meaning
404 {"detail": "No place matched 'xyz'"} for a q with no match, or {"detail": "Unknown location id"} for a location_id that matches nothing.
422 {"detail": "Give lat and lon, or location_id, or q."} when none of the three ways to name the point is given. A bad value in any parameter returns the list form.

Plus the common errors every route can return (400 key_in_query, 401, 403, 429, 500).

Caching and limits

Cache-Control: public, max-age=120 at the origin; because the route is served only under /v1 you receive private, max-age=120. A new analysis lands every 15 minutes, so polling faster learns nothing. No ETag. Counted against the key’s overall limit only.

POST /visibility/reports

Driver fog reports. For integrations by arrangement; not part of the public read surface.

Access. Anonymous at the HTTP level, but every call must carry the shared integration token WxAlerts issues to a partner, in the X-Visibility-Token header. Without a token issued to you this route does nothing for you. To ask for one, say what you are building through the contact page. Also served at /v1/visibility/reports, where an API key holding weather:read is required as well as the token. Reports are never public and are never served back.

A batch of reports from one integration. Each is judged against the current analysis and the nearest stations and comes back with a status. Individual reports never change the product; only a cluster of 10 or more distinct reporters does, on the next 15 minute run.

Request body

Content-Type: application/json.

Field Type Required Bounds Description
sender string yes 1 to 64 characters, a-z, 0-9 and _ only Which integration is sending, for example mobile_traffic
reports array of report yes 1 to 500 items The reports
reports[].report_id string yes 1 to 128 characters Opaque and unique per report. A report_id already stored is not stored again
reports[].reporter string yes 1 to 256 characters Opaque per-reporter token. It is hashed on receipt and never stored as sent
reports[].observed_at string (date-time) yes ISO 8601 with an offset. At most 6 hours old and at most 5 minutes in the future When the driver reported. One report outside the window makes the whole call a 422
reports[].lat number yes -90 to 90 Latitude of the report, degrees north
reports[].lon number yes -180 to 180 Longitude of the report, degrees east
reports[].heading_deg number or null no 0 to 360 Direction of travel in degrees, if known
reports[].chip string yes fog_low_visibility only The kind of report

Response

200 with this body.

Field Type Description
received integer Reports in the request
stored integer New rows; a report_id already stored is not stored twice
results array of object One entry per report received, in the order sent
results[].report_id string The report_id you sent
results[].status string corroborated, contradicted or uncorroborated

corroborated means the point is inside a current area of category 2 or worse, or that 10 or more distinct reporters were within 2 km of it in 30 minutes (this one included). contradicted means there is no area at the point and a station within 15 km read 8000 m or more in the last 90 minutes. Anything else is uncorroborated.

{
  "received": 2,
  "stored": 2,
  "results": [
    { "report_id": "r-1001", "status": "corroborated" },
    { "report_id": "r-1002", "status": "uncorroborated" }
  ]
}

Errors

Status Meaning
401 {"detail": "invalid_token"} for a missing or wrong X-Visibility-Token. Under /v1 a missing or bad API key is the coded api_key_required or api_key_invalid instead
422 The list form: an empty or oversized reports array, a bad field, an observed_at outside the window, a chip other than fog_low_visibility
429 Over the intake limit, about 60 batches a minute per client, burst about 30. {"detail": "Too many report batches: the limit is about 60 a minute per client. Send up to 500 reports per call rather than one call per report."} with Retry-After and Cache-Control: no-store. The per-address or per-key limit applies too
503 {"detail": "visibility_reports_disabled"} when intake is not switched on

Plus the common errors.

Caching and limits

A write: not cacheable, no ETag. Send up to 500 reports per call rather than one call per report.

View this page as Markdown

May we use Microsoft Clarity to see how pages are used (clicks, scrolling and replays of a visit, with anything you type hidden), plus a random ID linking that to crash reports? Only to find bugs and confusing screens. Never advertising, never sold.