Opens in a new tab

Bricks Query API × api.weather.gov

Weather in San Diego

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/SGX/57,14/forecast → properties.periods

This Afternoon

Sunny

86°

Sunny

Sunny, with a high near 86. Northwest wind 5 to 10 mph.

Wind NW 5 to 10 mphRain 0%

Tonight

Mostly Clear

64°

Mostly Clear

Mostly clear, with a low around 64. Northeast wind 0 to 5 mph.

Wind NE 0 to 5 mphRain 0%

Tuesday

Sunny

84°

Sunny

Sunny, with a high near 84. Northwest wind 0 to 10 mph.

Wind NW 0 to 10 mphRain 0%

Tuesday Night

Mostly Clear

64°

Mostly Clear

Mostly clear, with a low around 64. Northeast wind 0 to 5 mph.

Wind NE 0 to 5 mphRain 0%

Veterans Day

Sunny

84°

Sunny

Sunny, with a high near 84. North wind 0 to 10 mph.

Wind N 0 to 10 mphRain 0%

Wednesday Night

Mostly Clear

62°

Mostly Clear

Mostly clear, with a low around 62.

Wind NE 0 to 5 mphRain 0%

Thursday

Sunny

80°

Sunny

Sunny, with a high near 80.

Wind SW 0 to 10 mphRain 3%

Thursday Night

Partly Cloudy then Chance Rain Showers

63°

Partly Cloudy then Chance Rain Showers

A chance of rain showers after 4am. Partly cloudy, with a low around 63.

Wind E 0 to 5 mphRain 25%

Friday

Chance Rain Showers

75°

Chance Rain Showers

A chance of rain showers. Partly sunny, with a high near 75.

Wind S 5 to 10 mphRain 31%

Friday Night

Chance Rain Showers

62°

Chance Rain Showers

A chance of rain showers. Mostly cloudy, with a low around 62.

Wind NW 5 to 10 mphRain 38%

Saturday

Chance Rain Showers

74°

Chance Rain Showers

A chance of rain showers before 4pm. Mostly sunny, with a high near 74.

Wind N 5 to 10 mphRain 27%

Saturday Night

Slight Chance Rain Showers

61°

Slight Chance Rain Showers

A slight chance of rain showers after 10pm. Partly cloudy, with a low around 61.

Wind N 5 to 10 mphRain 24%

Sunday

Chance Rain Showers

72°

Chance Rain Showers

A chance of rain showers. Mostly sunny, with a high near 72.

Wind N 5 to 10 mphRain 29%

Sunday Night

Chance Rain Showers

60°

Chance Rain Showers

A chance of rain showers. Mostly cloudy, with a low around 60.

Wind NW 5 to 10 mphRain 49%

Recent alerts in CA

GET /alerts?area=CA&limit=6 → features

Minor

Coastal Flood Advisory

Northern Coastal Humboldt

Coastal Flood Advisory issued November 9 at 12:23PM PST until November 9 at 12:00PM PST by NWS Eureka CA

Minor

Coastal Flood Advisory

San Francisco

Coastal Flood Advisory issued November 9 at 12:13PM PST until November 13 at 4:00PM PST by NWS San Francisco CA

Moderate

Beach Hazards Statement

San Francisco

Beach Hazards Statement issued November 9 at 12:13PM PST until November 9 at 10:00PM PST by NWS San Francisco CA

Moderate

Beach Hazards Statement

Southern Monterey Bay and Big Sur Coast

Beach Hazards Statement issued November 9 at 12:13PM PST until November 9 at 10:00PM PST by NWS San Francisco CA

Minor

Coastal Flood Advisory

Coastal North Bay Including Point Reyes National Seashore; San Francisco Peninsula Coast; Northern Monterey Bay

Coastal Flood Advisory issued November 9 at 12:13PM PST until November 10 at 12:00PM PST by NWS San Francisco CA

Minor

Coastal Flood Advisory

North Bay Interior Valleys; San Francisco Bay Shoreline

Coastal Flood Advisory issued November 9 at 12:13PM PST until November 13 at 4:00PM PST by NWS San Francisco CA

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'}