
If you do not yet have the API number, start with how to find the API number for a well or how to find the API number for a specific well.
What is an API number and why does it work as a master key?
The API number is a standardized well identifier created by the American Petroleum Institute and maintained by state regulators under a system the federal government adopted as well. Because it is unique to one wellbore and never reused, it follows the well through its entire life, from permit application to plugging report.
It counts because wells change names, change operators and change lease designations over time. A well listed as "Smith #1" in 1985 may show up under a different operator's numbering system today. The API number is the one field that stays constant across all of those changes, which is why regulators, operators and data vendors all use it as the primary join key between their systems.
How to decode an API number
A standard API number has three core parts, with optional extension digits:
| Digits | Meaning | Example |
|---|---|---|
| First 2 digits | State code, based on the federal FIPS code | 42 means Texas |
| Next 3 digits | County code within that state | 439 means Tarrant County, Texas |
| Next 5 digits | Sequential well number within that county | 30512 |
| Digits after a decimal or dash | Wellbore or sidetrack extension | 00 for the original hole, 01 for the first sidetrack |
So 42-439-30512-00 reads as: Texas, Tarrant County, well number 30512, original wellbore. The extension digits matter more than people expect. If a well was sidetracked or recompleted, production records may be filed under a different extension than the original permit, and you can miss months of production data if you only search the base number.
The state code alone tells you which regulator holds the primary file. Texas wells live with the Railroad Commission of Texas, Oklahoma wells with the Oklahoma Corporation Commission, Colorado wells with the Colorado Energy and Carbon Management Commission, and so on. If you are trying to identify who operates a well in a given state, see how to find the operator of a well in New Mexico for the state-by-state approach.
Which records can you pull with an API number?
Here is what the number opens across public databases:
| Record type | What it tells you | Typical source |
|---|---|---|
| Drilling permit | Approved depth, casing plan, target formation | State regulator permit database |
| Completion report (Form W-2 or state equivalent) | Actual total depth, completion date, perforated intervals | State regulator |
| Monthly production | Oil, gas and water volumes by well | State production database |
| Well logs | Electrical, sonic and other logs filed with the state | State log libraries |
| Inspection records | Regulator site visits and findings | State and BLM databases |
| Violations and enforcement | Notices of violation, fines, corrective actions | State regulator |
| Plugging and abandonment report | Cement volumes, plug depths, abandonment date | State regulator |
| Federal lease records | Lease number, royalty terms, approvals | BLM if on federal land |
For production data specifically, the API number is the fastest path. The step-by-step process is covered in how to find production data for a specific well, and the state-specific versions for Texas wells and oil wells generally walk through the same lookup with the regulator's own search screens.
Step-by-step: pulling a complete well file
- Confirm the API number. Get it from the operator, a lease document, a survey plat or a state well search by name and county. Verify the state code matches the state where you believe the well sits. A mismatch usually means a typo or a well in a border county you did not expect.
- Search the state permit database. Pull the original drilling permit and any subsequent permits for recompletions or workovers. Read the approved depth and target formation, then compare against the completion report.
- Pull the completion report. This is where the paper story meets the field. Compare the permitted plan with what was actually drilled and completed. Large gaps between the two are worth asking about.
- Download the full production history. Export monthly volumes for the entire life of the well, including any periods filed under extension digits. Watch for gaps, shut-in periods and sudden declines. If the status field confuses you, well status codes in public data explains what each code means.
- Request or download well logs. Many states let you download scanned logs by API number for free or a small fee. Logs confirm the formations and can reveal whether the well ever produced from a zone not mentioned in marketing materials.
- Check inspections and violations. Search the same API number in the regulator's enforcement or environmental database. Violations for casing failures, spills or unpaid plugging bonds tell you about operator conduct, not just geology. For a broader operator-level review, follow the process in how to check environmental records for an oil and gas operator or well.
- If the well is on federal land, search BLM systems. Federal wells carry the same API number, and Bureau of Land Management records add lease-level detail that state files do not hold.
- Pull the plugging report if the well is inactive. If the well is plugged, read the abandonment report for plug depths and cement volumes. If it is inactive but not plugged, the plugging obligation question becomes important, and who pays for plugging a well covers the mineral owner's exposure.
A worked example: one API number, three databases
Say you are reviewing a working interest offering for a well with API number 42-439-30512-00. Here is what a complete pull looks like:
- Railroad Commission of Texas permit query: you find the original permit, a recompletion permit filed three years later and a name change showing the well transferred operators once.
- Production query: monthly volumes show steady production for the first two years, a six month gap, then a restart at roughly half the prior rate after the recompletion. The gap matches the recompletion permit date, which is consistent rather than suspicious, but you only see it because you pulled both records.
- Inspection query: one notice of violation for a tank battery labeling issue, resolved. No open enforcement actions.
Before this pull, the offering summary showed a producing well with no operator changes and no regulatory history. After the pull, you know the well was recompleted, changed operators and had a minor violation. None of that is disqualifying, but you now know what questions to ask, and you found it all for free with one number.
Cross-referencing between state and federal databases
The API number is the join key, but the systems do not always talk to each other cleanly. Three practical habits:
- Match on the full number including extensions. Some federal systems drop the extension digits, so a sidetracked well can appear as two records. If you find duplicate or split production histories, check whether extensions are being handled differently on each side.
- Use the state code to catch data entry errors. If a federal record shows a Texas well with a Colorado county code, someone mistyped. Regulator databases contain typos, and the API number's structure is your error detector.
- Compare operator names across systems. Operator names change through mergers and rebrands, and different databases update at different speeds. The API number stays constant even when the operator field disagrees between two records.
Common mistakes to avoid
- Searching only the base number. Sidetrack and recompletion records often sit under extension digits. Search the base number plus all extensions.
- Stopping at the state database. If the well sits on federal land, the state file is incomplete by design. Check BLM records too.
- Trusting the well name. Names are inconsistent, duplicated and recycled. Search by API number, not by name, whenever you have the choice.
- Ignoring the permit-to-completion comparison. The permit shows intent, the completion report shows reality. Investors who read only one of the two miss the gap.
- Assuming no news is good news on violations. Some states split violations into separate databases. Search the enforcement system explicitly rather than assuming a clean production file means a clean compliance record.
A due diligence habit worth building
After 19 years of working with family offices and investors on how they find, vet and structure private deals, I have seen the same pattern repeatedly: investors who rely on the offering summary alone get surprised, and investors who pull the primary records do not. The offering document is a sales artifact. The regulator's file, keyed by API number, is the well's actual biography. The gap between the two is where your real questions live.
The pull itself takes an hour or two once you have done it a few times, and it costs nothing but time. Build it into your standard process before you commit capital to any well-level deal, and bring anything you find to your securities attorney, CPA or tax advisor before acting on it.
Frequently asked questions
Can I look up a well by API number for free?
Yes. State oil and gas regulators maintain free public databases searchable by API number, covering permits, completions, production and plugging records. Most states also offer free scanned well logs. Commercial data services exist, but for a single well's records the free regulator databases are usually enough.
What if the API number returns no records?
First, check for typos, especially in the county code and extension digits. Second, confirm the state code matches where the well actually sits. Third, try searching by well name and county to find the correct number. Very recently permitted wells may not appear in production databases yet, since production reports lag drilling by months.
Do API numbers change when a well is sold?
No. The API number belongs to the wellbore, not the operator. When a well changes hands, the number stays the same and only the operator of record changes. This is exactly why the API number is more reliable than operator or well names for tracking a well over time.
What is the difference between the API number and the lease number?
The API number identifies one wellbore. A lease number identifies the legal lease, which can contain multiple wells. Federal and some state records use lease numbers for royalty accounting, so you may need both: the API number for well-level records and the lease number for royalty and federal land records.
Can I use an API number to check a well's environmental history?
Yes. State enforcement and environmental databases are searchable by API number, and you can find spill reports, notices of violation and corrective actions tied to the specific well. For a full review, also search by operator name, since some environmental records attach to the operator rather than the well.
Do all states use the same API number format?
The core format, two state digits, three county digits and five well digits, is standardized nationally. States differ in how they display extension digits, some use a decimal, some use a dash, and a few older wells have shorter numbers assigned before the standard was fully adopted. The structure is consistent enough to use across databases.
If you are working through a well-level deal and want help thinking through your due diligence process, reach out to Richard at richard@familyoffices.com or text or WhatsApp (808) 600-9260, or visit the contact page.
Educational only. Not investment, legal or tax advice.