Reference

Maryland API county codes

Every Maryland API well number starts with 19, the state code. The next three digits are the county code, one of the 24 listed below, so a number beginning 19-001 belongs to a well in Allegany County.

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

How to read a Maryland API number

19State: Maryland
001County: Allegany
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 24 Maryland counties

County code County API numbers start
001 Allegany 19-001-
003 Anne Arundel 19-003-
005 Baltimore 19-005-
009 Calvert 19-009-
011 Caroline 19-011-
013 Carroll 19-013-
015 Cecil 19-015-
017 Charles 19-017-
019 Dorchester 19-019-
021 Frederick 19-021-
023 Garrett 19-023-
025 Harford 19-025-
027 Howard 19-027-
029 Kent 19-029-
031 Montgomery 19-031-
033 Prince George's 19-033-
035 Queen Anne's 19-035-
037 St. Mary's 19-037-
039 Somerset 19-039-
041 Talbot 19-041-
043 Washington 19-043-
045 Wicomico 19-045-
047 Worcester 19-047-
510 Baltimore city 19-510-

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. Search it at the Maryland oil and gas regulator.

Frequently asked questions

What is the API state code for Maryland?

19. 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 Maryland API number?

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

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