Reference

New Mexico API county codes

Every New Mexico API well number starts with 30, the state code. The next three digits are the county code, one of the 33 listed below, so a number beginning 30-001 belongs to a well in Bernalillo County.

To decode a whole number, including the sidetrack and completion digits, paste it into the API well number decoder.

How to read a New Mexico API number

30State: New Mexico
001County: Bernalillo
12345Well, unique within the county

The first ten digits identify one well. Two more digits can follow for a sidetrack, and two after that for a later completion. The county is the one where the well starts at the surface, so a horizontal well that crosses a county line keeps its surface county's code. A few state regulators assign the producing county instead, so the state record is the final word on a well near a boundary.

All 33 New Mexico counties

County code County API numbers start
001 Bernalillo 30-001-
003 Catron 30-003-
005 Chaves 30-005-
006 Cibola 30-006-
007 Colfax 30-007-
009 Curry 30-009-
011 De Baca 30-011-
013 Doña Ana 30-013-
015 Eddy 30-015-
017 Grant 30-017-
019 Guadalupe 30-019-
021 Harding 30-021-
023 Hidalgo 30-023-
025 Lea 30-025-
027 Lincoln 30-027-
028 Los Alamos 30-028-
029 Luna 30-029-
031 McKinley 30-031-
033 Mora 30-033-
035 Otero 30-035-
037 Quay 30-037-
039 Rio Arriba 30-039-
041 Roosevelt 30-041-
043 Sandoval 30-043-
045 San Juan 30-045-
047 San Miguel 30-047-
049 Santa Fe 30-049-
051 Sierra 30-051-
053 Socorro 30-053-
055 Taos 30-055-
057 Torrance 30-057-
059 Union 30-059-
061 Valencia 30-061-

County names are the US Census names for these codes. The API standard does not promise the two match, so we checked them against state well records. Across 35 states, where this table names a county it matched the one the agency recorded on 85,091 of 85,100 wells. Offshore state and federal waters use their own pseudo-county codes, which are not listed here.

Finding the well itself

The API number stops at the county. It does not hold the well's coordinates, lease, survey section or operator. Those sit in the well record, which you find by searching the full number in the state agency's system. In New Mexico that is the OCD well search, run by the New Mexico Oil Conservation Division (OCD).

For what the New Mexico public records hold in total, see the New Mexico oil and gas data summary.

Frequently asked questions

What is the API state code for New Mexico?

30. API state codes run alphabetically from 01 for Alabama to 49 for Wyoming, then 50 for Alaska and 51 for Hawaii. They are not the Census FIPS state codes, which is a common source of wrong lookups.

How do I find the county from a New Mexico API number?

Read digits three to five and find them in the table on this page. In 30-001-12345, the county code is 001, which is Bernalillo County. If the code is missing from the table, it is usually an offshore area rather than an onshore county.

Does a New Mexico API number give the well's exact location?

No. The number stops at the county. Coordinates, the lease and the survey location are in the well record held by the state agency, which you search with the full API number.

Every New Mexico well, on one map

TetraSoft Atlas shows each New Mexico well's API-10 number beside its operator, status and production, with wells from eight states on one map. Free 7-day trial, no credit card.

State codes: American Petroleum Institute Bulletin D12A well numbering standard. County names: US Census county FIPS names, checked against state well records. Reference generated .

How to cite this page

Sources: American Petroleum Institute Bulletin D12A well numbering standard; US Census county FIPS codes.

TetraSoft. (2026). New Mexico API county codes. Reference generated 2026-09-24. https://tetrasoftco.com/tools/api-county-codes/new-mexico/