Reference

South Dakota API county codes

Every South Dakota API well number starts with 40, the state code. The next three digits are the county code, one of the 66 listed below, so a number beginning 40-003 belongs to a well in Aurora County.

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

How to read a South Dakota API number

40State: South Dakota
003County: Aurora
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 66 South Dakota counties

County code County API numbers start
003 Aurora 40-003-
005 Beadle 40-005-
007 Bennett 40-007-
009 Bon Homme 40-009-
011 Brookings 40-011-
013 Brown 40-013-
015 Brule 40-015-
017 Buffalo 40-017-
019 Butte 40-019-
021 Campbell 40-021-
023 Charles Mix 40-023-
025 Clark 40-025-
027 Clay 40-027-
029 Codington 40-029-
031 Corson 40-031-
033 Custer 40-033-
035 Davison 40-035-
037 Day 40-037-
039 Deuel 40-039-
041 Dewey 40-041-
043 Douglas 40-043-
045 Edmunds 40-045-
047 Fall River 40-047-
049 Faulk 40-049-
051 Grant 40-051-
053 Gregory 40-053-
055 Haakon 40-055-
057 Hamlin 40-057-
059 Hand 40-059-
061 Hanson 40-061-
063 Harding 40-063-
065 Hughes 40-065-
067 Hutchinson 40-067-
069 Hyde 40-069-
071 Jackson 40-071-
073 Jerauld 40-073-
075 Jones 40-075-
077 Kingsbury 40-077-
079 Lake 40-079-
081 Lawrence 40-081-
083 Lincoln 40-083-
085 Lyman 40-085-
087 McCook 40-087-
089 McPherson 40-089-
091 Marshall 40-091-
093 Meade 40-093-
095 Mellette 40-095-
097 Miner 40-097-
099 Minnehaha 40-099-
101 Moody 40-101-
102 Oglala Lakota 40-102-
103 Pennington 40-103-
105 Perkins 40-105-
107 Potter 40-107-
109 Roberts 40-109-
111 Sanborn 40-111-
115 Spink 40-115-
117 Stanley 40-117-
119 Sully 40-119-
121 Todd 40-121-
123 Tripp 40-123-
125 Turner 40-125-
127 Union 40-127-
129 Walworth 40-129-
135 Yankton 40-135-
137 Ziebach 40-137-

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 South Dakota oil and gas regulator.

Frequently asked questions

What is the API state code for South Dakota?

40. 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 South Dakota API number?

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

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