# Oil & Gas Wells API: US, Canada, UK, Norway, Brazil, Australia (`pushbuild/oil-gas-wells`) Actor

Search 4.7 million oil and gas wells from 20 US state regulators, Canada (AB, BC, SK), the UK, Netherlands, Norway, Brazil and Australia: API number, operator, well name, status, type, field, county, location, spud and completion dates, depth and regulator links, in one schema.

- **URL**: https://apify.com/pushbuild/oil-gas-wells.md
- **Developed by:** [Pushbuild Data](https://apify.com/pushbuild) (community)
- **Categories:** Business, Other
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 92.9% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$1.00 / 1,000 records

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

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

## Oil and Gas Wells API

Oil and gas well records from 20 US state regulators, Alberta, British Columbia, Saskatchewan, the UK, the Netherlands, Norway, Brazil and Australia (offshore, Queensland, South Australia, Northern Territory, Victoria and Western Australia onshore), in one schema: country, API number (wellbore name outside the US), well name, operator, status, well type, field, county, surface latitude and longitude, spud, completion, plugging and status dates, depth and a link to the regulator's own record.

| State | Source | Wells |
|---|---|---|
| Kansas | Kansas Geological Survey well database | 520k |
| Oklahoma | Corporation Commission RBDMS well file | 457k |
| Colorado | Energy and Carbon Management Commission | 124k |
| New York | DEC oil, gas and other regulated wells (from 1860) | 47k |
| Texas | Railroad Commission wellbores: bottom-hole location, completion date and depth from casing records, plugging date (no operator or lease name in RRC open data) | 1.02M |
| California | CalGEM WellSTAR | 243k |
| New Mexico | EMNRD Oil Conservation Division permitting database | 142k |
| Kentucky | Energy and Environment Cabinet, Division of Oil and Gas (permit number as `KY-<permit>`, no API number or county) | 117k |
| Arkansas | Oil and Gas Commission | 38k |
| Florida | DEP Oil and Gas Program permitted wells (`FL-<permit>`) | 1.5k |
| Wyoming | Oil and Gas Conservation Commission wells via the state GeoHub (status codes as published; the layer's newest spud is 2022-07) | 69k |
| Utah | Division of Oil, Gas and Mining wells (via the Utah Trust Lands Administration GIS) | 40k |
| Alaska | Oil and Gas Conservation Commission well surface locations (via Alaska DNR) | 10k |
| Ohio | DNR Division of Oil and Gas Resources (no dates in the public layer) | 242k |
| West Virginia | DEP Office of Oil and Gas, all wells (well name is farm name and number) | 154k |
| Montana | Board of Oil and Gas Conservation (DNRC), all wells; county from the API number | 42k |
| Pennsylvania | DEP Office of Oil and Gas Management statewide well inventory (operator blank where DEP lists an individual) | 280k |
| North Dakota | Industrial Commission, Oil and Gas Division public well layer (production data is subscription-only there and not included) | 44k |
| Illinois | State Geological Survey (ISGS) oil and gas wells; well type and status as ISGS publishes them | 207k |
| Michigan | EGLE Geologic Resources Management Division well surface locations (weekly from RBDMS); plugging date and total depth, no spud date or per-well link | 93k |
| **Alberta, Canada** (`CA`, state `AB`) | Alberta Energy Regulator ST37 well licences: licensee, licence status, spud and final drill date, surface-hole coordinates; `api` is `AB-<licence>`, well name is the DLS surface location | 541k |
| **British Columbia, Canada** (`CA`, state `BC`) | BC Energy Regulator well surface holes (via the BC Geographic Warehouse); `api` is `WA-<well authorization>`, operator is the BCER abbreviation | 34k |
| **Saskatchewan** (`CA`, state `SK`) | Ministry of Energy and Resources wells (Saskatchewan GIS Petroleum service), one row per well; API number is the Saskatchewan well id (CWI), operator is the licensee, `county` the rural municipality, `field` the pool, depth converted from metres | 150k |
| **Norway** (`NO`) | Norwegian Offshore Directorate (Sodir) FactPages, exploration and development wellbores; `county` is the sea area (North Sea, Norwegian Sea, Barents Sea), depth converted from metres, licence NLOD 2.0 | 8.5k |
| **United Kingdom** (`GB`) | North Sea Transition Authority wellbores, offshore UKCS and onshore England; API number is the well registration number, operator is the responsible designated operator, `county` is `Offshore` or the onshore county, licence OGL v3.0 | 15.5k |
| **Netherlands** (`NL`) | NLOG (TNO for the Ministry of Economic Affairs) boreholes and sidetracks, onshore and offshore; operator is the current owner, `county` is `Onshore` or `Offshore`, depth converted from metres (along hole); salt, coal and geothermal boreholes left out | 5.8k |
| **Brazil** (`BR`) | ANP Tabela de Poços (BDEP technical archive, ANP open data), onshore and offshore; status and category in Portuguese as published, `county` is the sedimentary basin, `field` the field or block, depth converted from metres | 30.6k |
| **Australia** (`AU`) | NOPTA petroleum wellbores (NOPIMS), mostly Commonwealth offshore, CC BY 4.0; no status published, `field` is the title (permit or licence), `county` the basin, spud is the kick-off date and completion the rig release date | 8.0k |
| **Australia: Queensland** (`AU`, state `QLD`) | Geological Survey of Queensland boreholes (open data, CC BY 4.0), petroleum and coal seam gas wells; `well_type` is the subtype and result, `field` the tenure, completion the rig release date, `record_url` the GSQ borehole page. 20,000 wells. |
| **Australia: Western Australia** (`AU`, state `WA`) | WA Department of Energy, Mines, Industry Regulation and Safety onshore petroleum wells (DMIRS-025, data.wa.gov.au, CC BY 4.0); `api` is the UWI, `well_type` the well class, `field` the field or lease, `county` the basin, completion the rig release date; status is the department's code (`P&A`, `O`, ...). 4,300 wells. Offshore WA wells are in the `AU` offshore set. |
| **Australia: South Australia** (`AU`, state `SA`) | Department for Energy and Mining petroleum wells (SARIG, CC BY 4.0); `api` is the SARIG well id, `well_type` the class and result, `field` the licence, `county` the basin, completion the rig release date. 4,000 wells. |
| **Australia: Victoria** (`AU`, state `VIC`) | Geological Survey of Victoria petroleum wells (Vicmap open data WFS, CC BY 4.0), onshore wells only; `api` is the UWI, `well_type` the class code, `field` the licence, `county` the basin, completion the rig release date. 440 wells; offshore Gippsland and Otway wells are in the `AU` offshore set. |
| **Australia: Northern Territory** (`AU`, state `NT`) | Northern Territory Geological Survey petroleum wells (STRIKE, CC BY), onshore; `api` is the well name (no id is published), `well_type` the purpose and hydrocarbon shows, `field` the title, `county` the basin, completion the rig release date, `record_url` a GEMIS search. 300 wells. |

Refreshed weekly. Oklahoma's file carries no dates. Kansas and Colorado give the field and New York and Oklahoma the county. Status and type codes are as each state publishes them; Colorado and New York codes are expanded to words.

### Input

- `apiNumbers`: one or more API numbers, with or without dashes (a prefix matches every sidetrack).
- `operator`, `wellName`, `status`, `wellType`, `county`, `field`: text contains.
- `countries`: ISO codes: `US`, `CA` (Canada), `GB` (United Kingdom), `NL` (Netherlands), `NO` (Norway), `BR` (Brazil) or `AU` (Australia). `states` also takes the Canadian provinces `AB`, `BC` and `SK`, `QLD` (Queensland), `SA` (South Australia), `NT` (Northern Territory), `VIC` (Victoria) and `WA` (Western Australia).
- `states`: TX, KS, OK, CO, NY, CA, NM, KY, AR, FL, WY, UT, AK, OH, WV, ND, PA.
- `spudFrom`, `spudTo`: spud date range.
- `latitude`, `longitude`, `radiusKm`: wells near a point, nearest first.
- `groupBy`: `country`, `state`, `operator`, `status`, `wellType`, `county`, `field` or `spudYear`.
- `sort`: `api` (default), `newest`, `oldest`. `maxItems`: up to 5000.

### Example

```json
{"latitude": 40.3, "longitude": -104.89, "radiusKm": 2, "status": "Producing"}
```

# Actor input Schema

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

Well API numbers, with or without dashes; a prefix matches all sidetracks.

## `operator` (type: `string`):

Operator name contains this text.

## `wellName` (type: `string`):

Well or lease name contains this text.

## `countries` (type: `array`):

ISO country codes: US, CA (Canada: Alberta, British Columbia, Saskatchewan), GB (United Kingdom), NL (Netherlands), NO (Norway), BR (Brazil), AU (Australia: offshore titles, Queensland, South Australia, Northern Territory, Victoria and Western Australia onshore). Leave empty for all.

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

US states: TX, KS, OK, CO, NY, CA, NM, KY, AR, FL, WY, UT, AK, OH, WV, ND, PA, MT. Canadian provinces: AB, BC, SK. Australian states: QLD, SA, NT, VIC, WA.

## `county` (type: `string`):

County contains this text (OK and NY).

## `field` (type: `string`):

Oil or gas field contains this text (KS and CO).

## `status` (type: `string`):

Status contains this text, e.g. Producing, Plugged.

## `wellType` (type: `string`):

Well type or class contains this text, e.g. OW, GW, Oil.

## `spudFrom` (type: `string`):

Spud date on or after (YYYY-MM-DD).

## `spudTo` (type: `string`):

Spud date on or before (YYYY-MM-DD).

## `latitude` (type: `number`):

Find wells near this point (with longitude).

## `longitude` (type: `number`):

Find wells near this point (with latitude).

## `radiusKm` (type: `number`):

Search radius around the point.

## `sort` (type: `string`):

Sort by state and API number (default), newest or oldest spud date; nearest first when a point is given.

## `groupBy` (type: `string`):

Return well counts per group instead of wells.

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

Maximum rows or groups to return.

## Actor input object example

```json
{
  "states": [
    "TX"
  ],
  "radiusKm": 5,
  "sort": "api",
  "maxItems": 100
}
```

# 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"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("pushbuild/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"] }

# Run the Actor and wait for it to finish
run = client.actor("pushbuild/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"
  ]
}' |
apify call pushbuild/oil-gas-wells --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,pushbuild/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/XAXPKhrZrbBhEQJU6/builds/1pQBGy5qeeIeHRt7q/openapi.json
