# Noaa Climate Co2 Mauna Loa Scraper (`b2b_lead_generation/noaa-climate-co2-mauna-loa-scraper`) Actor

Pull daily Mauna Loa CO2 (ppm) readings for climate research and monitoring. Choose a start date and row cap, run the tool, and export your results straight to JSON, CSV, or Excel.

- **URL**: https://apify.com/b2b_lead_generation/noaa-climate-co2-mauna-loa-scraper.md
- **Developed by:** [B2B Lead Generation](https://apify.com/b2b_lead_generation) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.99 / 1,000 results

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/running/actors-in-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

## NOAA Climate CO2 (Mauna Loa) Scraper

![NOAA Climate CO2 (Mauna Loa) Scraper cover](https://images.bigibyte.com/cdn-cgi/image/width=1260,height=540,fit=cover,format=webp/apify-actors-covers/noaa-climate-co2-mauna-loa-scraper-cover.png)

### Overview

Collect daily mean atmospheric CO2 measurements (ppm) from NOAA's Mauna Loa dataset. Filter records by date, choose the number of results, and export structured climate data for research, monitoring, and analysis.

### What It Does

This actor collects daily Mauna Loa CO2 readings and returns the year, month, day, decimal date, and CO2 concentration in parts per million (ppm). You can filter records from a chosen date and export the results in JSON, CSV, Excel, or other supported formats.

### Key Features

- **Daily CO2 Readings:** Collect historical daily mean CO2 measurements from Mauna Loa.
- **Date Filtering:** Use `since` to collect records from a specific date.
- **Custom Result Size:** Control the number of returned records with `maxItems`.
- **Structured Data:** Receive consistent fields ready for analysis and visualization.
- **Dataset Exports:** Export results in JSON, CSV, Excel, and other supported formats.

### Input Example

```json
{
  "mode": "daily",
  "since": "2020-01-01",
  "maxItems": 50,
  "requestDelayMs": 1000,
  "userAgent": "BigiByteActorResearch/1.0 (contact: research@example.com)",
  "timeoutSecs": 300,
  "requestTimeoutSecs": 30,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

### Input Parameters

| Parameter | Type | Default | Description |
|---|---|---|---|
| `mode` | String | `daily` | Collects daily Mauna Loa CO2 measurements. |
| `since` | String | Empty | Optional starting date for filtering records. |
| `maxItems` | Integer | `100` | Maximum number of records to return. |
| `requestDelayMs` | Integer | `1000` | Delay between requests in milliseconds. |
| `userAgent` | String | `BigiByteActorResearch/1.0` | User agent used for requests. |
| `timeoutSecs` | Integer | `300` | Overall actor timeout in seconds. |
| `requestTimeoutSecs` | Integer | `30` | Individual request timeout in seconds. |
| `proxyConfiguration` | Object | Proxy disabled | Proxy configuration. |

### Output Example

```json
{
  "year": "2024",
  "month": "6",
  "day": "15",
  "decimalDate": "2024.4548",
  "co2Ppm": "426.91",
  "scrapedAt": "2026-10-26T00:00:00+00:00"
}
```

### Output Fields

| Field | Description |
|---|---|
| `year` | Year of the measurement. |
| `month` | Month of the measurement. |
| `day` | Day of the measurement. |
| `decimalDate` | Measurement date expressed as a decimal year. |
| `co2Ppm` | Daily mean atmospheric CO2 concentration in parts per million (ppm). |
| `scrapedAt` | Timestamp indicating when the record was collected. |

### Use Cases

- **Climate Research:** Analyze daily atmospheric CO2 measurements in notebooks or spreadsheets.
- **Climate Dashboards:** Build charts to monitor CO2 concentration trends over time.
- **Education:** Provide students with real-world atmospheric data for climate studies.
- **Environmental Monitoring:** Track daily CO2 readings against selected thresholds.
- **Research Reports:** Export structured measurements for analysis and reporting.

### Frequently Asked Questions

**What data does this actor collect?**

It collects daily mean atmospheric CO2 measurements recorded at Mauna Loa, including the date and concentration in ppm.

**Can I collect readings from a specific date?**

Yes. Set the `since` parameter to your preferred starting date, such as `2020-01-01`.

**What export formats are supported?**

You can export the dataset as JSON, CSV, Excel, and other formats supported by Apify.

**Can I schedule automatic data collection?**

Yes. You can configure Apify schedules to run the actor regularly and collect updated readings.

**Are the latest measurements final?**

Recent measurements may be preliminary. Consider the source dataset's publication notes when using recent readings in research or reports.

### Trademark Notice

NOAA and NOAA Global Monitoring Laboratory (GML) are names of their respective owners. This actor is an independent tool and does not imply affiliation, sponsorship, or endorsement.

### Is Web Scraping Legal?

This actor collects publicly accessible atmospheric CO2 measurements without bypassing login screens, paywalls, or technical security measures. The information is scientific measurement data, but its reuse should follow the source's attribution and applicable data-use requirements.

- **Personal Data:** The dataset primarily contains environmental measurements and is not expected to contain personal information. Follow applicable privacy laws if combining it with other data.
- **Copyright and Attribution:** NOAA GML requests appropriate citation when its data is central to a publication. Follow the source's attribution guidance and any applicable reuse conditions.
- **Platform Terms and Request Policies:** Respect the source website's policies and request guidelines when collecting or reusing data.
- **Disclaimer:** This information is general guidance, not legal advice. Consult a qualified professional if you need advice about a specific use.

For more information, read Apify's article: [Is web scraping legal?](https://blog.apify.com/is-web-scraping-legal/)

# Actor input Schema

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

What to scrape. Daily CO2 returns Mauna Loa daily mean CO2 ppm from NOAA GML.

## `since` (type: `string`):

Keep rows on or after this date (YYYY-MM-DD). Rows before this date are skipped.

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

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

## `requestDelayMs` (type: `integer`):

Polite pacing in milliseconds (about 1 request per second by default).

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

User-Agent header sent with each request.

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

Overall run budget in seconds.

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

Per-request timeout in seconds.

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

Optional proxy. Leave off unless you need it. NOAA GML public CSV works without a proxy.

## Actor input object example

```json
{
  "mode": "daily",
  "since": "2020-01-01",
  "maxItems": 100,
  "requestDelayMs": 1000,
  "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 = {
    "since": "2020-01-01"
};

// Run the Actor and wait for it to finish
const run = await client.actor("b2b_lead_generation/noaa-climate-co2-mauna-loa-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 = { "since": "2020-01-01" }

# Run the Actor and wait for it to finish
run = client.actor("b2b_lead_generation/noaa-climate-co2-mauna-loa-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 '{
  "since": "2020-01-01"
}' |
apify call b2b_lead_generation/noaa-climate-co2-mauna-loa-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,b2b_lead_generation/noaa-climate-co2-mauna-loa-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/aNoOGRalRjyL7hakE/builds/cApHLc1pD8KUgIWtr/openapi.json
