# USDA WASDE Report Monitor (`apex-nexus/usda-wasde-report-monitor`) Actor

- **URL**: https://apify.com/apex-nexus/usda-wasde-report-monitor.md
- **Developed by:** [Valunex](https://apify.com/apex-nexus) (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

## USDA WASDE Report Monitor

Monitors the official USDA World Agricultural Supply and Demand Estimates (WASDE)
monthly report and emits one dataset item per newly observed or changed U.S.
balance-sheet row (production, supply, use, exports, ending stocks,
season-average farm price) for wheat, corn, soybeans, rice and cotton.

This USDA crop report monitor is a grains WASDE alert tool for the agricultural
supply demand report published by USDA. It tracks the WASDE ending stocks and
other balance-sheet figures each month.

### Who it is for

Commodity traders and grain merchandisers at elevators and trading firms, food
processors monitoring input costs, agriculture lenders and farm input suppliers.
WASDE releases move grain markets, so timely structured balance-sheet rows have
a clear willingness-to-pay.

### What makes it different

This Actor keeps a per-commodity/field checkpoint in the Apify key-value store,
so repeat runs emit only genuinely new or changed balance-sheet rows — free
when nothing changes. It is tied to the WASDE monthly release cycle and targets
the official USDA balance-sheet tables (ending stocks, production, use,
exports, season-average price) as structured dataset rows with a free default
run.

### Data source

Public U.S. government data only, via official USDA endpoints:

- https://www.usda.gov/oce/commodity/wasde/wasde1026.pdf  (current WASDE PDF)
- https://www.usda.gov/about-usda/general-information/staff-offices/office-chief-economist/commodity-markets/wasde-report  (report index)

No API key, no login, no proxies, no scraping of anti-bot pages, no commercial
inference (no LLMs) inside the product. Server-side HTTP only.

### Pricing

Published as a FREE Apify Store listing. Actor start and dataset items are free
(no pay-per-event / pricing events).

### Input

See actor/.actor/input_schema.json. No fields are required; the default run
monitors all supported commodities against the latest official WASDE report.

- `commodities`: array of `wheat`, `corn`, `soybeans`, `rice`, `cotton`
  (default: all five).
- `reportUrl`: optional direct URL to a USDA WASDE report PDF. When omitted,
  the Actor resolves the latest report from the official USDA WASDE index page.

Example:

```json
{ "commodities": ["wheat", "corn", "soybeans"], "reportUrl": "https://www.usda.gov/oce/commodity/wasde/wasde1026.pdf" }
```

### Output

One dataset item per newly observed or changed balance-sheet row since the last
run. Unchanged replays emit nothing.

```json
{
  "reportNumber": "WASDE-676",
  "reportDate": "2026-10-09",
  "commodity": "wheat",
  "marketingYear": "2026/27",
  "field": "Ending Stocks",
  "unit": "Million Bushels",
  "value": 740,
  "valueRaw": "740",
  "column": "latest projection",
  "changeType": "NEW",
  "previousValue": null,
  "newSinceLastRun": true,
  "source": "USDA WASDE",
  "sourceUrl": "https://www.usda.gov/oce/commodity/wasde/wasde1026.pdf",
  "detectedAt": "2026-10-09T00:00:00+00:00"
}
```

Every numeric field is parsed from the report text layer; nothing is guessed.
Checkpoints persist per commodity/field in the Actor key-value store.

### Limits

- Default dependencies: `apify`, `httpx`, `pypdf` only.
- Deterministic, public data only; no credentials, no proxies, no LLMs.

### Verification

Run `pytest actor/tests` and `ruff check actor/` before release (builder
acceptance criteria).

# Actor input Schema

## `commodities` (type: `array`):

U.S. commodities whose balance-sheet rows to track. Defaults to all supported commodities: wheat, corn, soybeans, rice, cotton.

## `reportUrl` (type: `string`):

Optional direct URL to a USDA WASDE report PDF. When omitted, the Actor resolves the latest report from the official USDA WASDE index page (default: the current-month WASDE PDF).

## Actor input object example

```json
{
  "commodities": [
    "wheat",
    "corn",
    "soybeans",
    "rice",
    "cotton"
  ]
}
```

# Actor output Schema

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

Dataset items filtered by the overview view defined in the dataset schema (new or changed U.S. balance-sheet rows).

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

All dataset items emitted by the Actor run (new or changed WASDE balance-sheet rows).

# 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 = {
    "commodities": [
        "wheat",
        "corn",
        "soybeans",
        "rice",
        "cotton"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("apex-nexus/usda-wasde-report-monitor").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 = { "commodities": [
        "wheat",
        "corn",
        "soybeans",
        "rice",
        "cotton",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("apex-nexus/usda-wasde-report-monitor").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 '{
  "commodities": [
    "wheat",
    "corn",
    "soybeans",
    "rice",
    "cotton"
  ]
}' |
apify call apex-nexus/usda-wasde-report-monitor --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,apex-nexus/usda-wasde-report-monitor"
        }
    }
}
```

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/sl00cKLWkLPUM2lS9/builds/nwCxznzgcNtHf34NV/openapi.json
