# MODIS Active Fire Data Scraper: NASA FIRMS CSV (`plainkitbin/modis-active-fire-data`) Actor

Extract MODIS active fire data rows for the contiguous USA and Hawaii region from the NASA FIRMS 24 hour CSV as structured JSON. Not affiliated with NASA.

- **URL**: https://apify.com/plainkitbin/modis-active-fire-data.md
- **Developed by:** [PlainKit bin](https://apify.com/plainkitbin) (community)
- **Categories:** Developer tools, Other
- **Features:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.39 / 1,000 modis fire detection rows

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## MODIS Active Fire Data Scraper: NASA FIRMS CSV (`plainkitbin/modis-active-fire-data`)

### Introduction

This **MODIS active fire data** scraper is for GIS analysts, wildfire dashboard builders, insurance and utility risk teams, air quality researchers and automation developers who need satellite fire detections as JSON rows. One run reads the NASA FIRMS MODIS 24 hour CSV for the contiguous USA and Hawaii region, applies your filters (area, satellite, day or night, confidence) and writes one dataset row per detection: position, brightness, fire radiative power, acquisition date and time.

You do not need a key or an account at the data source, and you do not need to write a CSV parser or a coordinate filter.

The price is **$0.002** per delivered detection row under the `FREE` tier on Apify Pay-Per-Event (event name: `modis-fire-detection`).
This Actor is an independent tool and is not affiliated with NASA FIRMS (Fire Information for Resource Management System) MODIS active fire CSV.

### Input and output examples

#### Example Output

```json
{
  "latitude": "19.39937",
  "longitude": "-155.28462",
  "brightness": "339.71",
  "scan": "2.54",
  "track": "1.53",
  "acq_date": "2026-11-25",
  "acq_time": "0130",
  "satellite": "A",
  "confidence": "90",
  "version": "6.1NRT",
  "bright_t31": "308.24",
  "frp": "148.7",
  "daynight": "D"
}
```

Every value is text copied from the source file:

- `latitude`, `longitude`: position of the detection in decimal degrees
- `brightness`, `bright_t31`: brightness temperature values of the two channels in the source
- `scan`, `track`: pixel size values reported by the source
- `acq_date`, `acq_time`: acquisition date (YYYY-MM-DD) and time (HHMM) as sent by the source
- `satellite`: `A` for Aqua, `T` for Terra
- `confidence`: detection confidence from 0 to 100
- `version`: processing version label
- `frp`: fire radiative power value
- `daynight`: `D` for day, `N` for night
- `reason_code`: absent in detection rows; see the FAQ

#### Example Input

```json
{
  "bounding_box": "-125,24,-66,50",
  "min_confidence": 50,
  "max_items": 10
}
```

### Tutorial

1. Open the Actor and keep the prefilled input for a first look at 10 rows.
2. Add a `bounding_box` such as `-125,32,-114,42` to limit rows to your area.
3. Raise `min_confidence` to drop weaker detections, or pick day or night rows.
4. Set `max_items` to the largest number of rows you want to pay for.
5. Run the Actor and export the dataset as JSON or CSV, or read it through the Apify API.
6. Schedule the run if you want to collect the 24 hour file repeatedly.

A detection is a hot spot seen by a satellite sensor. It is not a confirmed fire incident, and it carries no incident name.

### Pricing

- Event name: `modis-fire-detection`
- Pricing model: Apify Pay-Per-Event
- Tier prices:
  - FREE: $0.002 per event
  - BRONZE: $0.0018 per event
  - SILVER: $0.0016 per event
  - GOLD: $0.0013936 per event
  - PLATINUM: $0.0013936 per event
  - DIAMOND: $0.0013336 per event

Each detection row is pushed first to the dataset and charged right after a successful push.
A refused charge or reached spending limit halts work immediately.
Failed requests produce no charge and push no detection row.
Restart safety: if the platform restarts or resumes a run, detections already in the dataset are recognized and are not pushed or charged twice.
Separate runs do not share this memory, so a later run can return a detection that an earlier run also returned.

### Input Parameters

| Field | Type | Description | Default |
| --- | --- | --- | --- |
| `bounding_box` | String | `west,south,east,north` in decimal degrees. | `""` |
| `satellite` | String (select) | `A` (Aqua) or `T` (Terra). | `""` |
| `daynight` | String (select) | `D` (day) or `N` (night). | `""` |
| `min_confidence` | Integer (0-100) | Lowest confidence value to keep. | `0` |
| `max_items` | Integer (1-1000) | Maximum rows to output. | `10` |

### Actor recommendations

Use this Actor when you want recent satellite hot spots for the region of this one source file. It does not cover older archive dates, VIIRS sensors or other world regions. For those, use the download tools of the data provider.

### FAQ and support

**Which area is covered?** The area is whatever the provider puts in its contiguous USA and Hawaii file. Rows from neighbouring areas such as Mexico can appear, so use `bounding_box` when you need a tighter area.

**Which order do rows come in?** The order of the source file. `max_items` takes the first matching rows.

**How fresh is the data?** The source file covers the last 24 hours as defined by the provider. Publication delay is decided by the provider and can change at any time.

**Which satellites are covered?** The NASA FIRMS MODIS C6.1 NRT file (version label `6.1NRT`) combines detections from both the Terra and the Aqua satellites. Rows show the satellite in the `satellite` field (`T` or `A`). Individual satellites or feeds may stop delivering rows, or change their delay, at provider discretion. A run therefore can return fewer rows from one satellite than from the other, or none for a period, and this Actor cannot prevent it.

**What if I get no rows?** No detection in the current file matched your filters. Nothing is charged.

**What is `reason_code`?** If the source refuses access (HTTP 401, 403 or 429), the run writes one row with `reason_code` set to `ACCESS_REFUSED`. That row is not charged.

**Data license and citation.** NASA states that data from NASA-led missions are licensed as Creative Commons Zero unless marked with a restriction, and asks users to cite the source. Please acknowledge NASA FIRMS when you publish results.

**Safety.** Do not use this data as the only basis for evacuation or other safety decisions.

**Support.** Open an issue on the Actor page.

### Use as an MCP Tool (AI Agents)

AI agents and MCP clients can invoke `plainkitbin/modis-active-fire-data` through `@apify/actors-mcp-server` over `stdio`:

```bash
APIFY_TOKEN=<YOUR_APIFY_TOKEN> npx -y @apify/actors-mcp-server --actors plainkitbin/modis-active-fire-data
```

Example MCP client configuration (`mcpServers`):

```json
{
  "mcpServers": {
    "modis-active-fire-data": {
      "command": "npx",
      "args": [
        "-y",
        "@apify/actors-mcp-server",
        "--actors",
        "plainkitbin/modis-active-fire-data"
      ],
      "env": {
        "APIFY_TOKEN": "<YOUR_APIFY_TOKEN>"
      }
    }
  }
}
```

# Actor input Schema

## `bounding_box` (type: `string`):

Area filter as 'west,south,east,north' in decimal degrees, for example '-125,32,-114,42'. Leave empty for every row of the source file.

## `satellite` (type: `string`):

Keep rows of one satellite: 'A' (Aqua) or 'T' (Terra). Leave empty for both.

## `daynight` (type: `string`):

Keep day ('D') or night ('N') detections. Leave empty for both.

## `min_confidence` (type: `integer`):

Keep rows whose confidence value is at least this number (0 to 100).

## `max_items` (type: `integer`):

Maximum number of fire detection rows to output (prefilled default 10).

## Actor input object example

```json
{
  "bounding_box": "",
  "satellite": "",
  "daynight": "",
  "min_confidence": 0,
  "max_items": 10
}
```

# Actor output Schema

## `results` (type: `string`):

Dataset items produced by this run.

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "bounding_box": "",
    "satellite": "",
    "daynight": "",
    "min_confidence": 0,
    "max_items": 10
};

// Run the Actor and wait for it to finish
const run = await client.actor("plainkitbin/modis-active-fire-data").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "bounding_box": "",
    "satellite": "",
    "daynight": "",
    "min_confidence": 0,
    "max_items": 10,
}

# Run the Actor and wait for it to finish
run = client.actor("plainkitbin/modis-active-fire-data").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "bounding_box": "",
  "satellite": "",
  "daynight": "",
  "min_confidence": 0,
  "max_items": 10
}' |
apify call plainkitbin/modis-active-fire-data --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,plainkitbin/modis-active-fire-data"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/PYB9fCDbUyCLgJZVD/builds/tLDqzEoY2iUwiOSxy/openapi.json
