# US Orphaned Oil & Gas Wells (USGS Database) (`maniginam/us-orphan-oil-gas-wells`) Actor

Search about 130,000 documented unplugged orphaned oil and gas wells in 28 US states from the USGS database.  Filter by state, county, status, type, API number, or land owner, or monitor changes.

- **URL**: https://apify.com/maniginam/us-orphan-oil-gas-wells.md
- **Developed by:** [ManiGinaM](https://apify.com/maniginam) (community)
- **Categories:** Lead generation
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 94.7% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $4.25 / 1,000 orphan well 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

Search about 130,000 documented unplugged orphaned oil and gas wells in 28 US states from the U.S. Geological Survey's national database.  Filter by state, county, status, well type, API number, surface land owner, or a map box, and turn on monitor mode with a schedule to get only new or changed wells.

### What does it do?

This Actor reads the United States Documented Orphaned Well Database (DOWDB), which USGS compiles from the orphan well lists of state oil and gas agencies, and returns one clean record per well.  Each record has the API number or state identifier, well name and number, well type, status, state, county, coordinates, Public Land Survey location, surface and mineral owner details, notes, the reporting agency, the date of its source file, and a Google Maps link.

The database covers 28 states.  The largest lists are Ohio (about 22,800 wells), Pennsylvania (21,300), Oklahoma (20,000), Kentucky (15,600), Texas (9,000), New York (7,600), and Louisiana (5,000).

It uses the public USGS REST API, so there is no browser, no proxy, and no login involved.

### Who is it for?

- Well plugging and abandonment contractors looking for orphan well work by county.
- Methane, carbon credit, and environmental groups measuring and prioritizing orphan wells.
- Landmen, title researchers, and real estate buyers checking a tract for orphan wells.
- Environmental consultants writing Phase I site assessments.
- Journalists, researchers, and state program staff comparing orphan well counts across states.

### How to use

1. Open the Actor in Apify Console.
2. Pick one or more states, or leave the list empty to search all 28.
3. Optionally add counties, status or well type words, API number prefixes, surface owners, or a map box.
4. Set **Max results** and click **Start**.
5. Open the **Output** tab to preview wells, then export them as JSON, CSV, Excel, or XML.
6. To watch for new or changed wells, turn on monitor mode and add a schedule.

### Input

| Field | Type | Description |
| --- | --- | --- |
| `states` | list of states | Two-letter codes for the 28 states in the database: AL, AK, AZ, AR, CA, CO, IL, IN, KS, KY, LA, MI, MS, MO, MT, NE, NV, NM, NY, ND, OH, OK, PA, TN, TX, UT, WV, and WY.  Empty (default) means all of them. |
| `counties` | list of names | County, parish, borough, or census area names, for example `Harris`, `St. Mary`, or `Kern`.  "County", "Parish", "Borough", and "Census Area" are optional, and "St." and "Saint" both match.  A name is searched in every selected state that has it. |
| `statusKeywords` | list of words | Keep wells whose status contains any of these words, ignoring case, for example `orphan` or `abandoned`.  Status wording comes from each state. |
| `wellTypeKeywords` | list of words | Keep wells whose type contains any of these words, ignoring case, for example `oil`, `gas`, or `injection`. |
| `apiNumbers` | list of digits | Keep wells whose API number starts with any of these 2 to 14 digits, for example `42201` for Harris County, Texas.  Dashes and spaces are ignored.  Kentucky and some Indiana and Illinois wells have no API number. |
| `surfaceOwners` | list of owners | `DOI`, `USDA`, `DOD`, `state`, `private`, `local government`, `NTVPIC` (Native American land), or `undetermined`. |
| `minLatitude` | number | Keep wells at or north of this latitude. |
| `maxLatitude` | number | Keep wells at or south of this latitude. |
| `minLongitude` | number | Keep wells at or east of this longitude, for example `-95.8`. |
| `maxLongitude` | number | Keep wells at or west of this longitude. |
| `maxResults` | number | Most wells to publish and charge in one run.  Default 1000, maximum 200,000. |
| `onlyNewOrChanged` | true or false | Monitor mode.  Outputs only wells that are new or changed since the previous run of the same search. |

Different filters are combined with AND, and the values inside one filter with OR.

Sample input, wells on Forest Service and other USDA land in Ohio and Pennsylvania:

```json
{
  "states": ["OH", "PA"],
  "surfaceOwners": ["USDA"],
  "maxResults": 500
}
```

### Output

Each well is one dataset item.  Fields the source leaves blank are `null`.  Example:

```json
{
  "recordKey": 1000008,
  "apiNumber": "01033010020000",
  "identifierType": "API",
  "identifier": "01033010020000",
  "secondaryIdentifier": "Permit:B-174",
  "wellName": "Fee #1",
  "wellNumber": null,
  "wellType": "Undesignated",
  "status": "Abandoned",
  "state": "Alabama",
  "stateCode": "AL",
  "county": "Colbert",
  "latitude": 34.6349,
  "longitude": -87.6259,
  "principalMeridian": "Huntsville",
  "township": "5S",
  "range": "10W",
  "section": 7,
  "surfaceOwner": "undetermined",
  "surfaceFederalAgency": null,
  "surfaceOwnerSource": "BLM National SMA",
  "subsurfaceFederalOwner": null,
  "subsurfaceOwnerSource": null,
  "subsurfaceFederalRights": null,
  "subsurfaceFederalRightsSource": null,
  "wellNotes": null,
  "locationNotes": "Coordinates: USGS generated section center point",
  "otherNotes": "StatusDate:2025-06-05",
  "sourceAgency": "Alabama Oil and Gas Board",
  "sourceFileDate": "2025-07-31",
  "googleMapsUrl": "https://www.google.com/maps/search/?api=1&query=34.6349,-87.6259",
  "changeType": "notTracked"
}
```

`apiNumber` is filled only when the state's primary identifier is an API number.  `identifierType` and `identifier` always hold the state's own primary ID, such as a Kentucky permit number.

### Monitor mode

Set `onlyNewOrChanged` to true and add a schedule, for example on the first of each month.  USGS publishes new releases from time to time, so most runs report nothing new.  The Actor remembers each well's status, type, name, county, location, and identifier for that exact search in a named key-value store.  The first run outputs every matching well as `new`.  Later runs output only new wells and wells where one of those fields changed.  Unchanged wells are skipped and you are not charged for them.

- History is keyed on every filter except `maxResults`.  If you change a filter, the Actor starts a fresh history and reports every match as `new` again.
- Wells that are plugged and removed from the database, or no longer orphaned, are not reported.
- A new source file date on its own does not count as a change.
- Set `maxResults` high enough to cover every well you want watched.

### Pricing

This Actor uses pay-per-event pricing.

- **Orphan well record:** $5.00 per 1,000 wells delivered to your dataset ($0.005 each).
- **Actor start:** Apify's standard start event ($0.00005).
- There is no separate charge per dataset item.

Examples:

- 20 Texas wells cost $0.10.
- Every orphan well in Pennsylvania, about 21,300 records, costs about $107.
- The whole database, about 130,000 wells, costs about $651.
- A monthly monitor for a few counties usually delivers a handful of changes, so it costs pennies.

You can cap any run with Apify's maximum charge setting.  The Actor stops cleanly when your limit is reached, and you are only charged for wells that actually reach your dataset.

#### Estimated compute cost

Default memory is 512 MB.  The Actor reads 1,000 wells per request and waits at least a second between requests.  A small run finishes in seconds, and a 20,000-well pull takes about a minute, well under $0.01 in Apify compute on top of the event charges.

### Data source and freshness

Data comes from the USGS United States Documented Orphaned Well Database (DOWDB) API at `https://energy.usgs.gov/api/dowdb/v1/wells`.  USGS releases the dataset into the public domain under CC0 1.0.  The current release, dated September 30, 2026, holds 130,121 wells, and its state source files are dated between December 2023 and April 2026, and each record's `sourceFileDate` shows how current that state's list is.  A state agency's own site can be newer.

Status and type values are each state's own wording, so "orphan" in Texas reads "Orphan Delinquent P-5 > 12 months", and Pennsylvania uses "DEP Abandoned List".  Search with short words.  Many coordinates are section or lease center points, so check `locationNotes` before you drive out.

If the database is down or refuses a request, the run fails with a short message and keeps every well it already delivered.  Run it again later.

Citation: U.S. Geological Survey, United States Documented Orphaned Well Database 2026, U.S. Geological Survey data release, https://doi.org/10.5066/P13FHBYG.

### Is it legal to use this data?

Yes.  The dataset is a U.S. government data release dedicated to the public domain under CC0 1.0, so you can use, share, and resell it.  The data is provided as is, without any guarantee that it is complete, current, or free of errors.  It is not legal advice or a site assessment, so confirm anything important with the state oil and gas agency.  This Actor is an independent tool and is not affiliated with or endorsed by the U.S. Geological Survey or any state agency.

### API and integrations

You can start this Actor and read its results with the [Apify API](https://docs.apify.com/api/v2), the Apify Python and JavaScript clients, or the Apify CLI.  The API returns each run's dataset in the same formats as the Console.

Apify integrations can pass results on when a run finishes, for example to Google Sheets, Slack, Zapier, Make, or your own webhook.  Set them up on the Actor's **Integrations** tab, and pair them with a schedule for a hands-off feed.

### FAQ

**Do I need a USGS account or API key?**  No.  The API is public.

**Why does my state return nothing?**  Only 28 states have reported orphan wells to the database.  States with no list, such as Florida, are not included.

**Why do Louisiana results differ from the Louisiana orphan wells Actor?**  This database is a USGS snapshot of the list Louisiana reported.  The Louisiana Actor reads SONRIS live, with operators and orphan dates.

**How do I find a well by its exact API number?**  Put all 10 to 14 digits in `apiNumbers`.  It matches as a prefix, so a 10-digit number also finds its 12- and 14-digit forms.

### Related Actors

- [Louisiana Oil & Gas Wells & Permits (SONRIS)](https://apify.com/maniginam/louisiana-oil-gas-wells): Search Louisiana SONRIS well records and drilling permits by parish, operator, and date, or monitor new permits.
- [Louisiana Orphan Oil & Gas Wells (SONRIS / OSR)](https://apify.com/maniginam/louisiana-orphan-wells): Search Louisiana's official Act 404 orphan well inventory by parish, operator, and orphan date.
- [Gulf Offshore Drilling Permits Monitor (BSEE)](https://apify.com/maniginam/gulf-offshore-drilling-monitor): Track new and changed Gulf of America offshore drilling permits from BSEE, with rig, water depth, and borehole status.
- [Gulf Coast USACE Permits & Wetland Monitor](https://apify.com/maniginam/gulf-coast-usace-permits): Search Army Corps permits, pending applications, and wetland determinations across five Gulf Coast districts.
- [Gulf Coast EPA Compliance Monitor (ECHO)](https://apify.com/maniginam/gulf-coast-epa-compliance-monitor): Search EPA ECHO facilities and enforcement cases in Louisiana, Texas, Mississippi, Alabama, and Florida.
- [US EPA ECHO Compliance & Enforcement: All States](https://apify.com/maniginam/us-epa-echo-compliance-monitor): Search EPA ECHO facilities and enforcement cases in all 50 states, DC, and territories, or monitor new enforcement.

Browse the full ManiGinaM catalog at [apify.com/maniginam](https://apify.com/maniginam).

### Feedback and custom requests

Found a bug, a wrong value, or a source that changed?  Open an issue in the Issues tab on this Actor's page.  Need another field, filter, or source, or a version built for your team?  Describe it in the Issues tab as a custom request.

# Changelog

This Actor's version history is a separate document: https://apify.com/maniginam/us-orphan-oil-gas-wells/changelog.md

# Actor input Schema

## `states` (type: `array`):

Pick one or more of the 28 states in the USGS database.  Leave empty to search every state.

## `counties` (type: `array`):

County, parish, or borough names, such as Harris, St. Mary, or Kern.  The word County or Parish is optional, and St. and Saint both match.  Combine with states when a county name exists in more than one state.

## `statusKeywords` (type: `array`):

Keep wells whose status contains any of these words, ignoring case, such as orphan, abandoned, or plugged.  Status wording comes from each state, so try a short word.

## `wellTypeKeywords` (type: `array`):

Keep wells whose type contains any of these words, ignoring case, such as oil, gas, injection, or dry.

## `apiNumbers` (type: `array`):

Keep wells whose API number starts with any of these digits, for example 42 for Texas or 42201 for Harris County, Texas.  Dashes and spaces are ignored.

## `surfaceOwners` (type: `array`):

Keep wells whose surface land owner is one of these.  DOI covers BLM and other Interior land, USDA covers the Forest Service, DOD covers military land, and NTVPIC means Native American land.

## `minLatitude` (type: `number`):

Keep wells at or north of this latitude.

## `maxLatitude` (type: `number`):

Keep wells at or south of this latitude.

## `minLongitude` (type: `number`):

Keep wells at or east of this longitude.  Longitudes in the US are negative, for example -95.8.

## `maxLongitude` (type: `number`):

Keep wells at or west of this longitude.

## `maxResults` (type: `integer`):

Most wells to publish, and to charge for, in one run.  In monitor mode this counts only new or changed wells.

## `onlyNewOrChanged` (type: `boolean`):

Remember the wells this search has returned and publish only wells that are new or whose status, type, name, county, location, or identifier changed.  Wells that are plugged and removed from the database, or no longer orphaned, are not reported.  Use with a schedule.

## Actor input object example

```json
{
  "states": [
    "TX"
  ],
  "counties": [
    "Harris",
    "St. Mary"
  ],
  "statusKeywords": [
    "orphan",
    "abandoned"
  ],
  "wellTypeKeywords": [
    "gas"
  ],
  "apiNumbers": [
    "42201"
  ],
  "maxResults": 20,
  "onlyNewOrChanged": false
}
```

# 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 = {
    "states": [
        "TX"
    ],
    "maxResults": 20
};

// Run the Actor and wait for it to finish
const run = await client.actor("maniginam/us-orphan-oil-gas-wells").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 = {
    "states": ["TX"],
    "maxResults": 20,
}

# Run the Actor and wait for it to finish
run = client.actor("maniginam/us-orphan-oil-gas-wells").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 '{
  "states": [
    "TX"
  ],
  "maxResults": 20
}' |
apify call maniginam/us-orphan-oil-gas-wells --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,maniginam/us-orphan-oil-gas-wells"
        }
    }
}
```

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/C2eBGOzJPmiqo4PN1/builds/zSXFg6vPKIaQvz0hV/openapi.json
