# Nasa Earthdata Cmr Scraper (`bigibyte/nasa-earthdata-cmr-scraper`) Actor

Discover public NASA Earthdata satellite collections and granule records in seconds. Enter a search keyword, choose your mode and row cap, and download structured metadata—including bounding boxes and timestamps—as JSON, CSV, or Excel.

- **URL**: https://apify.com/bigibyte/nasa-earthdata-cmr-scraper.md
- **Developed by:** [BigiByte](https://apify.com/bigibyte) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

Pay per usage

This Actor is paid per platform usage. The Actor is free to use, and you only pay for the Apify platform usage, which gets cheaper the higher subscription plan you have.

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

## 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

## NASA Earthdata CMR Scraper

![NASA Earthdata CMR Scraper cover](https://images.bigibyte.com/cdn-cgi/image/width=1260,height=540,fit=cover,format=webp/apify-actors-covers/nasa-earthdata-cmr-scraper-cover.png)

The **NASA Earthdata CMR Scraper** helps you discover satellite data collections and granule records from NASA's Common Metadata Repository (CMR). Search by keyword and collect structured metadata, including processing levels, spatial coverage, data providers, collection identifiers, and update information. Export your results as JSON, CSV, Excel, or other supported formats.

### What This Actor Does

This actor searches publicly accessible NASA Earthdata CMR records and organizes the results into structured dataset entries.

It supports two search modes:

- **Collections:** Find satellite data collections matching a keyword.
- **Granules:** Find matching collections first, then retrieve granule records associated with their collection identifiers.

The actor automatically handles pagination, removes duplicate records, and stops when the requested item limit is reached.

### Available Modes

| Mode | Description |
|---|---|
| `collections` | Searches NASA CMR collections using a keyword. |
| `granules` | Resolves matching collections first, then searches for granules associated with each collection. |

### Input Example

```json
{
  "mode": "collections",
  "keyword": "fire",
  "maxItems": 100,
  "userAgent": "BigiByteActorResearch/1.0 (contact: hello@bigibyte.com)",
  "timeoutSecs": 300,
  "requestTimeoutSecs": 30,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

#### Input Parameters

| Parameter | Type | Default | Description |
|---|---|---|---|
| `mode` | string | `collections` | Search mode: `collections` or `granules`. |
| `keyword` | string | `fire` | Keyword used to find matching satellite data records. |
| `maxItems` | integer | `100` | Maximum number of successful records per run. Hard maximum: 1,000. |
| `userAgent` | string | BigiByte research UA | User-Agent value used for requests. |
| `timeoutSecs` | integer | `300` | Maximum overall run duration in seconds. |
| `requestTimeoutSecs` | integer | `30` | Timeout for an individual request in seconds. |
| `proxyConfiguration` | object | Disabled | Optional proxy configuration. Proxy usage is not required for typical runs. |

### Output Example

A successful record may look like this:

```json
{
  "processing_level_id": "4",
  "cloud_hosted": true,
  "boxes": [
    "-90 -180 90 179"
  ],
  "has_combine": false,
  "time_start": "2001-01-01T00:00:00.000Z",
  "version_id": "1",
  "updated": "2024-09-22T00:00:00.000Z",
  "dataset_id": "MiCASA Daily NPP Rh LMC NEE FIRE FUEL Fluxes 0.1 degree x 0.1 degree",
  "entry_id": "MICASA_FLUX_D_1",
  "has_spatial_subsetting": false,
  "has_transforms": false,
  "associations": {
    "services": [
      "S2874702816-XYZ_PROV"
    ],
    "citations": [
      "CIT3963296741-ESDIS"
    ]
  },
  "has_variables": true,
  "data_center": "GES_DISC",
  "scrapedAt": "2026-10-26T00:00:00+00:00"
}
```

#### Output Fields

| Field | Type | Description |
|---|---|---|
| `processing_level_id` | string | Processing level identifier associated with the dataset. |
| `cloud_hosted` | boolean | Indicates whether the dataset is cloud hosted. |
| `boxes` | array | Spatial bounding boxes describing geographic coverage. |
| `has_combine` | boolean | Indicates whether combine functionality is supported. |
| `time_start` | string | Available temporal coverage or granule start time. |
| `version_id` | string | Dataset version identifier. |
| `updated` | string | Date and time when the record was last updated. |
| `dataset_id` | string | Human-readable dataset title. |
| `entry_id` | string | Collection entry identifier or granule concept identifier when the original entry ID is unavailable. |
| `has_spatial_subsetting` | boolean | Indicates whether spatial subsetting is supported. |
| `has_transforms` | boolean | Indicates whether transformations are supported. |
| `associations` | object | Related services and citation references. |
| `has_variables` | boolean | Indicates whether variable metadata is available. |
| `data_center` | string | Data center or provider associated with the record. |
| `scrapedAt` | string | UTC timestamp indicating when the record was collected. |

### Use Cases

- **Satellite Dataset Discovery:** Find NASA Earth observation collections related to fire, MODIS, precipitation, and other research topics.
- **Dataset Inventory:** Build structured catalogs of satellite datasets for research, reporting, and internal documentation.
- **Granule Sampling:** Retrieve granule metadata from collections matching a specific keyword.
- **Earth Science Research:** Explore dataset processing levels, geographic coverage, data providers, and available metadata.
- **Data Pipeline Automation:** Schedule recurring searches and send collected records to spreadsheets, databases, or data warehouses.
- **Metadata Quality Checks:** Review collection metadata, cloud-hosted availability, spatial coverage, and related service information.

### Usage and Limits

- Use `collections` mode to search for matching dataset collections.
- Use `granules` mode to find collections first and then retrieve their associated granule records.
- Granule searches require collection identifiers. The actor resolves matching collections before requesting their granules.
- Results are retrieved through pagination, using page-based navigation or the source's continuation information when available.
- Duplicate records are removed using their CMR identifiers.
- Requests are paced at approximately one request per second, with concurrency kept around one to two requests.
- Public metadata searches do not require an Earthdata account. Downloading actual protected data files may require Earthdata authentication.
- Follow NASA Earthdata access guidance and use reasonable request rates.

### FAQ

**What is the difference between collections and granules?**

Collections describe satellite datasets and their overall metadata. Granules represent individual data records or units associated with a collection.

**Why does granules mode search collections first?**

Granule searches need a collection-specific identifier or another supported constraint. The actor first finds matching collections and then retrieves granules associated with their identifiers.

**What information can I collect?**

Depending on the available source record, you can collect processing levels, spatial bounding boxes, temporal information, dataset identifiers, provider details, related services, and other metadata.

**Can I schedule recurring searches?**

Yes. Use Apify Schedules to run the actor automatically at your preferred intervals.

### Integrations

Connect the NASA Earthdata CMR Scraper with other applications through [Apify Integrations](https://apify.com/integrations). Send collected metadata to tools such as Google Sheets, Make, Zapier, Slack, and other supported services. You can also use [Apify Webhooks](https://docs.apify.com/integrations/webhooks) to trigger workflows when a run finishes.

Looking for a solution tailored to your data collection requirements? **BigiByte** builds custom web scrapers, data extraction tools, and automation solutions to help businesses and researchers collect and organize the information they need.

Visit [BigiByte](https://bigibyte.com) to explore our services.

### Trademark Notice

NASA, NASA Earthdata, and related names, logos, and trademarks belong to their respective owners. They are referenced here only to identify the source of the information. This actor is not affiliated with, sponsored by, or endorsed by NASA or its Earthdata program.

### Disclaimer

The NASA Earthdata CMR Scraper is an independent data collection tool. Users are responsible for reviewing applicable data-use conditions, licensing, attribution, and redistribution requirements before using collected information.

### Is Web Scraping Legal?

This actor extracts publicly accessible information without bypassing login screens, paywalls, or technical security layers. While collecting public web data is widely permitted, compliance depends on how data is gathered and used:

- **Personal Data:** Follow applicable privacy regulations, including GDPR and CCPA, when collecting or processing personal information.
- **Copyrighted Content:** Respect copyright protections and licensing conditions when reusing collected material.
- **Platform Terms and Rate Limits:** Review the source's terms and follow its access rules and reasonable request limits.

NASA Earthdata metadata and related resources may have specific usage, attribution, or redistribution conditions. Review the applicable requirements before using collected information in other projects.

This information is provided for general guidance only and does not constitute legal advice. For more information, read Apify's guide: [Is Web Scraping Legal?](https://blog.apify.com/is-web-scraping-legal/).

# Actor input Schema

## `mode` (type: `string`):

What to scrape. Collections search queries dataset collections. Granules resolves matching collections first, then fetches granules (CMR requires a collection filter).

## `keyword` (type: `string`):

Search keyword (e.g. fire, MODIS). For granules mode this finds collections, then their granules.

## `maxItems` (type: `integer`):

Stop after this many successful rows. Hard max is 1000.

## `userAgent` (type: `string`):

Identify your scraper. Prefer a string that includes contact info.

## `timeoutSecs` (type: `integer`):

Overall run budget in seconds.

## `requestTimeoutSecs` (type: `integer`):

Per-request timeout in seconds.

## `proxyConfiguration` (type: `object`):

Optional proxy. Leave off (no proxy) unless you hit blocks. NASA Earthdata CMR usually works without one.

## Actor input object example

```json
{
  "mode": "collections",
  "keyword": "fire",
  "maxItems": 100,
  "userAgent": "BigiByteActorResearch/1.0 (contact: hello@bigibyte.com)",
  "timeoutSecs": 300,
  "requestTimeoutSecs": 30,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

## `overview` (type: `string`):

Dataset rows in the overview table.

## `dataset` (type: `string`):

Full dataset for this run.

## `items` (type: `string`):

Dataset items as JSON.

# 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 = {
    "keyword": "fire",
    "proxyConfiguration": {
        "useApifyProxy": false
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("bigibyte/nasa-earthdata-cmr-scraper").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 = {
    "keyword": "fire",
    "proxyConfiguration": { "useApifyProxy": False },
}

# Run the Actor and wait for it to finish
run = client.actor("bigibyte/nasa-earthdata-cmr-scraper").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 '{
  "keyword": "fire",
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}' |
apify call bigibyte/nasa-earthdata-cmr-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,bigibyte/nasa-earthdata-cmr-scraper"
        }
    }
}
```

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/75jbcHc1rASFPVvaP/builds/aScNucGidaDUJsOtK/openapi.json
