Spare the Air XML Feed

Picture 1

Interested in using the Bay Area Air Quality District’s air quality data for your website or iPhone app?

Feel free to grab our XML feed of the air quality in each of the Bay Area’s five air basins or of region-wide Spare the Air status. Keep in mind that no burning is allowed on Spare the Air days in the winter!

Both feeds are totally free for anyone to use subject to our license agreement. (Don’t feel like reading all that legal mumbo jumbo?  Basically, we don’t guarantee this data in any way, and you can’t use our logo.  Everything else is cool.)

We used it to build that neat little widget on our home page – we’d like to see what you come up with. Email us at webmaster@511contracosta.org and let us know if you’ve done something neat.

Our Feeds

Forecasts for the five Bay Area air basins (North, Central, South, East, and Santa Clara) are provided in xml format. The file includes the date and time updated, and a five day forecast giving both a qualitative score (good, moderate, unhealthy for sensitive groups, and very unhealthy) as well as a numeric Air Quality Index (AQI) as defined by the US Environmental Protection Agency.

Spare the Air Alerts occur when air quality is particularly unhealthy. During the winter, spare the air alerts include a prohibition on burning. Our feed indicates ‘yes/no’ alert status for two consecutive days, separated into summer and winter alerts.

Other Open Feeds for Developers

More to come (hopefully) . . . .

Sample Forecast Data


Thu: Good
Fri: Good
Sat: Good
Sun: Good
Mon: Good