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

Mostly Sunny

74°

Mostly Sunny

Mostly sunny, with a high near 74. Northwest wind around 10 mph, with gusts as high as 20 mph.

Wind NW 10 mphRain 4%

Tonight

Mostly Cloudy

61°

Mostly Cloudy

Mostly cloudy, with a low around 61. North wind 5 to 10 mph.

Wind N 5 to 10 mphRain 9%

Wednesday

Mostly Sunny

74°

Mostly Sunny

Mostly sunny, with a high near 74. Northwest wind 0 to 5 mph.

Wind NW 0 to 5 mphRain 5%

Wednesday Night

Partly Cloudy

59°

Partly Cloudy

Partly cloudy, with a low around 59. Northeast wind 0 to 5 mph.

Wind NE 0 to 5 mphRain 0%

Thursday

Sunny

77°

Sunny

Sunny, with a high near 77. Southwest wind 0 to 10 mph.

Wind SW 0 to 10 mphRain 0%

Thursday Night

Mostly Clear

60°

Mostly Clear

Mostly clear, with a low around 60.

Wind N 5 mphRain 0%

Friday

Sunny

82°

Sunny

Sunny, with a high near 82.

Wind N 0 to 10 mphRain 0%

Friday Night

Mostly Clear

62°

Mostly Clear

Mostly clear, with a low around 62.

Wind NE 5 to 10 mphRain 0%

Saturday

Sunny

87°

Sunny

Sunny, with a high near 87.

Wind N 0 to 10 mphRain 0%

Saturday Night

Mostly Clear

64°

Mostly Clear

Mostly clear, with a low around 64.

Wind NE 5 to 10 mphRain 0%

Sunday

Mostly Sunny

87°

Mostly Sunny

Mostly sunny, with a high near 87.

Wind N 0 to 5 mphRain 0%

Sunday Night

Partly Cloudy

66°

Partly Cloudy

Partly cloudy, with a low around 66.

Wind NE 5 mphRain 0%

Monday

Mostly Sunny

84°

Mostly Sunny

Mostly sunny, with a high near 84.

Wind SW 0 to 5 mphRain 0%

Monday Night

Partly Cloudy

65°

Partly Cloudy

Partly cloudy, with a low around 65.

Wind NE 0 to 5 mphRain 0%

Recent alerts in CA

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

Minor

Coastal Flood Advisory

San Francisco

Coastal Flood Advisory issued November 3 at 11:25AM PST until November 9 at 1:00PM PST by NWS San Francisco CA

Moderate

Beach Hazards Statement

San Francisco

Beach Hazards Statement issued November 3 at 11:25AM PST until November 3 at 8:00PM PST by NWS San Francisco CA

Minor

Coastal Flood Advisory

North Bay Interior Valleys; San Francisco Bay Shoreline

Coastal Flood Advisory issued November 3 at 11:25AM PST until November 9 at 1:00PM PST by NWS San Francisco CA

Moderate

Beach Hazards Statement

Coastal North Bay Including Point Reyes National Seashore; San Francisco Peninsula Coast; Northern Monterey Bay; Southern Monterey Bay and Big Sur Coast

Beach Hazards Statement issued November 3 at 11:25AM PST until November 3 at 8:00PM PST by NWS San Francisco CA

Moderate

Wind Advisory

Mojave Desert Slopes

Wind Advisory issued November 3 at 10:46AM PST until November 4 at 6:00AM PST by NWS Hanford CA

Minor

Frost Advisory

Northwestern Interior Mendocino; Northeastern Interior Mendocino; Northern Lake

Frost Advisory issued November 3 at 8:59AM PST until November 3 at 9:00AM PST by NWS Eureka 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'}