Reference

California API county codes

Every California API well number starts with 04, the state code. The next three digits are the county code, one of the 59 listed below, so a number beginning 04-001 belongs to a well in Alameda County.

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

How to read a California API number

04State: California
001County: Alameda
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 59 California counties

County code County API numbers start
001 Alameda 04-001-
003 Alpine 04-003-
005 Amador 04-005-
007 Butte 04-007-
009 Calaveras 04-009-
011 Colusa 04-011-
013 Contra Costa 04-013-
015 Del Norte 04-015-
017 El Dorado 04-017-
019 Fresno 04-019-
021 Glenn 04-021-
023 Humboldt 04-023-
025 Imperial 04-025-
027 Inyo 04-027-
029 Kern 04-029-
030 Kern 04-030-
031 Kings 04-031-
033 Lake 04-033-
035 Lassen 04-035-
037 Los Angeles 04-037-
039 Madera 04-039-
041 Marin 04-041-
043 Mariposa 04-043-
045 Mendocino 04-045-
047 Merced 04-047-
049 Modoc 04-049-
051 Mono 04-051-
053 Monterey 04-053-
055 Napa 04-055-
057 Nevada 04-057-
059 Orange 04-059-
061 Placer 04-061-
063 Plumas 04-063-
065 Riverside 04-065-
067 Sacramento 04-067-
069 San Benito 04-069-
071 San Bernardino 04-071-
073 San Diego 04-073-
075 San Francisco 04-075-
077 San Joaquin 04-077-
079 San Luis Obispo 04-079-
081 San Mateo 04-081-
083 Santa Barbara 04-083-
085 Santa Clara 04-085-
087 Santa Cruz 04-087-
089 Shasta 04-089-
091 Sierra 04-091-
093 Siskiyou 04-093-
095 Solano 04-095-
097 Sonoma 04-097-
099 Stanislaus 04-099-
101 Sutter 04-101-
103 Tehama 04-103-
105 Trinity 04-105-
107 Tulare 04-107-
109 Tuolumne 04-109-
111 Ventura 04-111-
113 Yolo 04-113-
115 Yuba 04-115-

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 California that is the CalGEM Well Finder, run by the California Geologic Energy Management Division (CalGEM).

Frequently asked questions

What is the API state code for California?

04. 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 California API number?

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

Does a California 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.

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). California API county codes. Reference generated 2026-09-24. https://tetrasoftco.com/tools/api-county-codes/california/