Bricks Query API × api.weather.gov
Weather in Nowhere
Everything on this page is a native Bricks query loop reading live JSON from the National Weather Service. No plugin, no PHP, no API key. Pick a city and the loops re-query from the URL.
7-day forecast
GET /gridpoints/ZZZ/57,14/forecast → properties.periods
Recent alerts in ZZ
GET /alerts?area=ZZ&limit=6 → features
How it works
Three settings per loop. That is the whole integration.
01
Point the loop at an endpoint
Set the query type to API and paste the URL. Dynamic data works inside it, so the city links above swap the office and grid through URL parameters, with a fallback when none is set.
api.weather.gov/gridpoints/{url_parameter:office}/…
02
Tell it where the array lives
The response path walks the JSON with dot notation to the list you want to repeat. Responses are cached, so the page does not hit the API on every view.
properties.periods
03
Print fields with one tag
Use the query_api tag with a key in any text, image, link, or attribute. A pipe reaches nested values. The alert colors come from a data attribute bound to the severity field.
{query_api @key:'properties|severity'}
