Skip to main content

calfire-wildfires

Download California wildfire incidents from CAL FIRE, as GeoJSON or typed Python records.

An incident is a record that CAL FIRE keeps for an emergency it is tracking. Most are wildfires, but the list also holds other fires and a few other emergencies, such as hazardous material spills. Figures like acres burned and percent contained are reported by the agency and change as an incident goes on.

Install

uv add calfire-wildfires

Use it from the command line

calfirewildfires active-fires > active.json
calfirewildfires all-fires --indent 2 > all.json
calfirewildfires all-fires --timeout 120 --verbose

active-fires lists incidents CAL FIRE still shows as active. all-fires lists every incident this year, active or not. The output is GeoJSON.

Use it from Python

import calfire_wildfires

data = calfire_wildfires.get_active_fires()  # GeoJSON, as a dictionary
incidents = calfire_wildfires.get_all_incidents()  # typed records
for incident in incidents[:3]:
    print(incident.name, incident.started_at, incident.acres_burned)

Use your own request function

Some projects send every web request through their own helper, for shared retries, logging or proxy settings. Pass that helper as get and the package will use it instead of requests.get. It is called like get(url, timeout=seconds) and must return something with a status_code and the answer's content as bytes. The timeout and the retries still work, and failures still raise CalFireError.

import requests

import calfire_wildfires
from calfire_wildfires import Reply


def my_get(url: str, *, timeout: float) -> Reply:
    return requests.get(url, timeout=timeout, headers={"User-Agent": "my-project"})


data = calfire_wildfires.get_all_fires(get=my_get)

The Fetcher and Reply types describe this. Your function sets its own headers. Without get, the package sends the browser-like User-Agent it has always sent. CAL FIRE's website pages refuse some automated requests, so keep a browser-like one if you see "Access Denied".

Things to know

  • Numbers change. Acres burned and percent contained are reported by CAL FIRE and are updated, and sometimes revised, as the incident goes on. Many fields can be empty.
  • Small fires are often missing. From CAL FIRE's own notes, we understand that fires of fewer than 10 acres generally get no information on its site. We could not confirm this from the agency's pages when we wrote this, so check them.
  • Not for emergencies. Do not use this as your only source for evacuation or fire behavior news. Use CAL FIRE and your local officials.
  • Downloads retry. A request waits 60 seconds, then tries again on network errors and server errors, and raises calfire_wildfires.CalFireError if it still fails.
  • The data comes from CAL FIRE. The package only downloads it. CAL FIRE's own terms are on its website. The code is MIT.
  • AI helped write this package. AI tools assisted in writing its code, tests and documentation. A person directed and reviewed the work.

The documentation has the full field reference.

Working on the code

The scraped data files were saved to this repository for years. Copy only the latest version:

git clone --depth 1 https://github.com/datadesk/calfire-wildfires.git

Metadata

Release files for calfire-wildfires 2.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for calfire-wildfires 2.0.0
File Size Uploaded Provenance Actions
calfire_wildfires-2.0.0.tar.gz 97.9 kB With provenance Details for calfire_wildfires-2.0.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for calfire-wildfires 2.0.0
File Interpreter ABI Platform Actions
calfire_wildfires-2.0.0-py3-none-any.whl Python 3 none any Details for calfire_wildfires-2.0.0-py3-none-any.whl

Total release size: 111.2 kB

Release files / calfire_wildfires-2.0.0.tar.gz

Download URL calfire_wildfires-2.0.0.tar.gz
Size 97.9 kB
Tags Source
SHA-256 checksum
How to use checksums
85a77cf5e9304f052c16756be207fbe960955e0cb4de6277995344c267007191
BLAKE2b-256 checksum
How to use checksums
cbe1849fef87eae2289b285dd04767ad232c014697b98e828cbf383d5cd43fd7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 18, 2026.

Transparency log

Release files / calfire_wildfires-2.0.0-py3-none-any.whl

Download URL calfire_wildfires-2.0.0-py3-none-any.whl
Size 13.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0ee8f616551b965e15a6af2e76bcc424b76ea1260e1359367f0422ab159281e3
BLAKE2b-256 checksum
How to use checksums
f8f3809d78916656631dfc466b1680b8d9a88a348ed3d76d3c65094a50a59cd3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 18, 2026.

Transparency log

Security for calfire-wildfires 2.0.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for calfire_wildfires-2.0.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 18, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page