The Beaches API Returns an XML document containing a list of beaches that match the criteria provided. At least one parameter must be provided in order for the service to return any data. All parameters are optional.
Service URL
The service is located at the following URL: http://www.deq.state.mi.us/beach/rest/beach.aspx
Substitute the root portion of the URL to access data from implementations in states other than Michigan.
Service Parameters
waterbodybeach: A partial string search of either the waterbody or beach name. For example "chicago" will return any beaches containing the word "chicago" in either their beach name or waterbody name.
countyid: A number indicating the county in which the beach resides. The numbers relate to the alphabetical county list for the counties in the given state. For example, in Michigan, County #1 is Alcona County.
beachtype: Either "Public", "Private", or "All" to return public, private, or all beaches.
wbtype: Filter for a specific Great Lake. For example, "GL_MICH" returns only beaches on Lake Michigan. Support for this parameter varies by state implementation.
instatepark: Set to True to only return beaches that are located within a state park.
Example Service Call
Return all public beaches:
Return all beaches Containing "Harrisville":
Sample Response Format
The following XML snippet provides an example XML response for a single beach.
<BeachList>
<BeachIdentity>
<BeachIdentifiers>
<BeachID>2910</BeachID>
<EpaBeachID>MI388337</EpaBeachID>
<WqxStationID>010097</WqxStationID>
</BeachIdentifiers>
<BeachName>Harrisville Public Access</BeachName>
<BeachDescription>Harrisville</BeachDescription>
<BeachURL>http://www.deq.state.mi.us/beach/BeachDetail.aspx?BeachId=2910</BeachURL>
<WaterbodyName>Lake Huron</WaterbodyName>
<WaterbodyType>Great Lake</WaterbodyType>
<OwnershipType/>
<ZipCode/>
<Latitude>44.66118</Latitude>
<Longitude>-83.2849</Longitude>
<County>
<CountyID>1</CountyID>
<CountyName>Alcona</CountyName>
</County>
<FacilityDescription/>
<HasAdvisory>False</HasAdvisory>
<MetaData>
<CreatedDate>2006-12-04T08:24:27.0000000</CreatedDate>
<UpdatedDate>2006-12-15T08:02:14.6800000</UpdatedDate>
</MetaData>
</BeachIdentity>
</BeachList>