# USGS MRDS Critical Minerals & Historic Mine Scraper (`groundplanes/usgs-mrds-critical-minerals-mine-scraper`) Actor

Scrape official USGS Mineral Resources Data System (MRDS) mineral deposits, critical battery metals (Lithium, Cobalt, Nickel, Rare Earths), gold, and historical mine sites from the official USGS MRDS bulk CSV download. Keyless.

- **URL**: https://apify.com/groundplanes/usgs-mrds-critical-minerals-mine-scraper.md
- **Developed by:** [Groundplane Labs](https://apify.com/groundplanes) (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.10 / 1,000 deposit records

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

## USGS MRDS Critical Minerals & Historic Mine Scraper

Extract official US Geological Survey (USGS) Mineral Resources Data System (MRDS) records, covering critical battery metals (Lithium, Cobalt, Nickel, Rare Earths), precious metals (Gold, Silver), and historical mine and prospect sites across the United States and globally.

> **Important Disclosure on Historical Data:** MRDS development status (Producer, Past Producer, Prospect) reflects historical geological records, not current operating status. Many records represent historical operations or early-stage prospects dating back decades. This actor provides historical geological occurrences and mineral prospecting intelligence; it does not certify current commercial production or active mine permits.

### Source and update cadence

Data comes from the official USGS MRDS bulk CSV file (a single flattened file, 46 columns, 304,632 records at last check), discovered from the download table on the MRDS index page (mrdata.usgs.gov/mrds) rather than a hardcoded file URL, with the known URL kept only as a fallback. The MRDS OGC WFS service was evaluated at build time and not used: it returns GML only and exposes a 9-field summary layer, which cannot deliver the output schema below.

USGS ceased systematic updates to MRDS in 2011 and describes the database as a historical digest; the bulk file is regenerated irregularly, if at all. Treat every record as historical. There is no live or real-time feed behind this actor.

### What it does

- **Identifies Critical & Strategic Minerals:** Filters over 304,000 global deposits for clean energy transition metals (Lithium, Cobalt, Nickel, Rare Earths, Graphite, Copper).
- **Multi-Parameter Spatial & Commodity Filtering:** Filter by commodity vocabulary, US states or countries, historical development status, and geographic bounding boxes.
- **Deep Geological Attributes:** Delivers ore materials, host rock geologic age, bibliographic literature citations, and direct links to official USGS MRDS site dossiers.
- **Outage & Drift Protection:** Enforces known-populated baseline checks (e.g. verifying Nevada Lithium occurrences) and guards against malformed records.

### Who it's for

- **Mining Exploration & Staking Geologists:** Pinpoint historical prospects, showings, and occurrences for claim staking and regional mineral targeting.
- **Critical Minerals Supply Chain Analysts:** Map geographic distributions of battery metal resources across North American jurisdictions.
- **Environmental & Land Due Diligence Teams:** Screen properties against historical mine workings, adits, and tailings for reclamation and liability reviews.

### Input

| Field | Type | Default | Description |
|---|---|---|---|
| `commoditiesFilter` | array | `["Lithium", "Copper", "Gold", "Cobalt", "Nickel", "Rare Earths"]` | Mineral commodities to search for. |
| `statesOrCountries` | array | `["Nevada", "Arizona", "Utah", "Idaho", "Alaska"]` | US states or Country names. |
| `developmentStatuses` | array | `["Producer", "Past Producer", "Prospect", "Developed Prospect"]` | Historical MRDS development classification. |
| `boundingBoxWsen` | array | `[]` | Optional geographic bounding box `[west, south, east, north]`. |
| `maxItems` | integer | `2000` | Maximum deposit records to output. |

*Query Guard: To prevent accidental timeouts against 300,000+ records, queries must specify at least one commodity, state/country, or bounding box.*

#### Example input

```json
{
  "commoditiesFilter": ["Lithium"],
  "statesOrCountries": ["Nevada"],
  "developmentStatuses": ["Producer", "Past Producer", "Prospect", "Developed Prospect"],
  "maxItems": 1000
}
```

### Output

One row per mineral deposit record.

| Field | Type | Description |
|---|---|---|
| `depId` | string | USGS MRDS unique deposit identifier. |
| `siteName` | string | Official mine or prospect name. |
| `country` | string or null | Country. |
| `stateOrProvince` | string or null | State or province. |
| `county` | string or null | County or mining district. |
| `latitude` | number or null | WGS84 latitude coordinate. |
| `longitude` | number or null | WGS84 longitude coordinate. |
| `primaryCommodities` | string or null | Primary mineral commodity. |
| `minorCommodities` | string or null | Secondary commodities and byproducts. |
| `developmentStatus` | string or null | Historical MRDS development status. |
| `operationType` | string or null | Operation type (Surface, Underground, Placer). |
| `oreMaterials` | string or null | Identified ore minerals and gangue. |
| `geologicAge` | string or null | Host rock formation / geologic age. |
| `ownerOrOperatorNotes` | string or null | Always null. The MRDS bulk file publishes no owner or operator field. Its `reporter` column names the persons who entered the record into MRDS, so it is withheld for privacy and is never shipped as owner or operator data. |
| `bibliographicReference` | string or null | USGS survey and literature citations. |
| `recordLastUpdated` | string or null | Always null. MRDS publishes no record last-updated or vintage field in this file. The file's production-year fields describe when a site produced, not when the record changed, so they are not presented as an update date. |
| `usgsDepositRecordUrl` | string | Link to live USGS MRDS report. |

#### Sample row (real USGS MRDS data)

```json
{
  "depId": "10024762",
  "siteName": "Silver Peak",
  "country": "United States",
  "stateOrProvince": "Nevada",
  "county": "Esmeralda",
  "latitude": 37.74994,
  "longitude": -117.63425,
  "primaryCommodities": "Lithium",
  "minorCommodities": null,
  "developmentStatus": "Producer",
  "operationType": "Unknown",
  "oreMaterials": null,
  "geologicAge": "Esmeralda Formation",
  "ownerOrOperatorNotes": null,
  "bibliographicReference": "DAVIS.J.R.& VINE,J.D.,1979: STRATIGRAPHIC AND TECTONIC SETTING OF THE LITHIUM BRINE FIELD, CLAYTON VALLEY, NEVADA...",
  "recordLastUpdated": null,
  "usgsDepositRecordUrl": "https://mrdata.usgs.gov/mrds/show-mrds.php?dep_id=10024762"
}
```

### Troubleshooting

- **Zero Matches:** Check spelling against standard commodity names (e.g. "Lithium" instead of brand names) or expand geographic filters. A zero-match run that scanned the full file is reported as a successful Complete with 0 rows.
- **Broad Query Rejection:** If you receive an error stating "Query too broad", specify at least one commodity, state/country, or bounding box coordinates.
- **Caps:** A run that hits `maxItems` or the run charge limit ends PARTIAL and says so; raise the limit to get more rows.
- **Static source:** MRDS has had no systematic updates since 2011. A record's development status is its historical classification, never proof that a site operates today.

### Changelog

- **0.1.2 (2026-11-01, Red Team fix round 2):** Corrected the Deep Geological Attributes bullet above, which claimed the actor delivers operator notes; `ownerOrOperatorNotes` is always null because MRDS publishes no owner or operator field (the Output table and dataset schema disclosures were already correct and are unchanged). Also corrected superseded builder claims in the internal TEST_NOTES, and the maxItems PARTIAL status now adds the possibly-partial-scan note only when the scan actually stopped early, stating the cap and counts plainly when the scan completed.
- **0.1.1 (2026-11-01, review fixes):** Commodity filtering now matches whole commodity names instead of substrings (a Cobalt query no longer returns Copper records, and a Lithium query no longer returns Beryllium records). `ownerOrOperatorNotes` and `recordLastUpdated` now ship null with the disclosures above instead of mislabeled source fields. Core-column sentinel expanded to every filter and output field used; an empty or header-only source file now fails loudly instead of reporting Complete with 0 rows; unparsable coordinates are counted and reported as a PARTIAL with the count; the bulk CSV is streamed out of the zip archive instead of being decoded whole into memory; the bulk file URL is discovered from the MRDS index page; HTTP-date Retry-After headers are parsed correctly.
- **0.1.0:** Initial build on the official MRDS bulk CSV download.

If this keeps happening, please open an issue on this actor's Issues tab and we'll fix it fast.

# Actor input Schema

## `boundingBoxWsen` (type: `array`):

Optional geographic bounding box coordinates in decimal degrees: \[min_lon, min_lat, max_lon, max_lat].

## `commoditiesFilter` (type: `array`):

Mineral commodities to search for (e.g. Lithium, Copper, Gold, Cobalt, Nickel, Rare Earths, Silver).

## `developmentStatuses` (type: `array`):

Historical MRDS development status (Producer, Past Producer, Prospect, Developed Prospect, Occurrence).

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

Maximum number of deposit records to output.

## `statesOrCountries` (type: `array`):

US States (e.g. Nevada, Arizona) or Country names (e.g. United States, Canada).

## Actor input object example

```json
{
  "boundingBoxWsen": [],
  "commoditiesFilter": [
    "Lithium",
    "Copper",
    "Gold",
    "Cobalt",
    "Nickel",
    "Rare Earths"
  ],
  "developmentStatuses": [
    "Producer",
    "Past Producer",
    "Prospect",
    "Developed Prospect"
  ],
  "maxItems": 2000,
  "statesOrCountries": [
    "Nevada",
    "Arizona",
    "Utah",
    "Idaho",
    "Alaska"
  ]
}
```

# Actor output Schema

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

No description

# 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 = {};

// Run the Actor and wait for it to finish
const run = await client.actor("groundplanes/usgs-mrds-critical-minerals-mine-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 = {}

# Run the Actor and wait for it to finish
run = client.actor("groundplanes/usgs-mrds-critical-minerals-mine-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 '{}' |
apify call groundplanes/usgs-mrds-critical-minerals-mine-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,groundplanes/usgs-mrds-critical-minerals-mine-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/wEhK12iUS5ew673Fa/builds/XChwvKdQDVWId4Qua/openapi.json
