GET api/Locations/{id}
Get location by ID
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
id |
Location ID |
integer |
Required |
Body Parameters
None.
Response Information
Resource Description
LocationName | Description | Type | Additional information |
---|---|---|---|
ID | integer |
None. |
|
Name | string |
None. |
|
Address1 | string |
None. |
|
Address2 | string |
None. |
|
City | string |
None. |
|
State | string |
None. |
|
Zip | string |
None. |
|
string |
None. |
||
URL | string |
None. |
|
SortOrder | integer |
None. |
|
Active | boolean |
None. |
|
Latitude | decimal number |
None. |
|
Longitude | decimal number |
None. |
|
Image | string |
None. |
|
AlternateText | string |
None. |
|
SEOTitle | string |
None. |
|
SEODescription | string |
None. |
|
Content | string |
None. |
|
URLToLocationDetail | string |
None. |
|
PhoneNumbers | Collection of LocationPhone |
None. |
|
LocationLongName | string |
None. |
|
HeaderImage | string |
None. |
|
ThumbImage | string |
None. |
|
OutreachLocation | boolean |
None. |
|
DisplayMain | boolean |
None. |
|
MapUrl | string |
None. |
|
DirectionsUrl | string |
None. |
|
MainLocationID | integer |
None. |
|
PrimaryPhone | string |
None. |
|
ShowDoctors | boolean |
None. |
|
HidePhoneNumbers | boolean |
None. |
|
CareOption | string |
None. |
|
Specialties | Collection of Specialty |
None. |
Response Formats
application/json, text/json
Sample:
{ "ID": 1, "Name": "sample string 2", "Address1": "sample string 3", "Address2": "sample string 4", "City": "sample string 5", "State": "sample string 6", "Zip": "sample string 7", "Email": "sample string 8", "URL": "sample string 9", "SortOrder": 10, "Active": true, "Latitude": 12.1, "Longitude": 13.1, "Image": "sample string 14", "AlternateText": "sample string 15", "SEOTitle": "sample string 16", "SEODescription": "sample string 17", "Content": "sample string 18", "URLToLocationDetail": "https://www.iowaclinic.com/locations/sample string 9/", "PhoneNumbers": [ { "PhoneNumber": "sample string 26", "PhoneType": "Primary" } ], "LocationLongName": "sample string 2 - sample string 3, sample string 5", "HeaderImage": "sample string 19", "ThumbImage": "sample string 20", "OutreachLocation": true, "DisplayMain": true, "MapUrl": "sample string 23", "DirectionsUrl": "sample string 24", "MainLocationID": 25, "PrimaryPhone": "sample string 26", "ShowDoctors": true, "HidePhoneNumbers": true, "CareOption": "sample string 29", "Specialties": [ { "ID": 1, "Title": "Allergy", "Url": "https://www.iowaclinic.com/specialties/allergy-immunology/allergy/", "Phone": "515.875.9450", "AppointmentUrl": "", "VirtualClinic": false }, { "ID": 7, "Title": "Immunology", "Url": "https://www.iowaclinic.com/specialties/allergy-immunology/immunology/", "Phone": "515.875.9450", "AppointmentUrl": "", "VirtualClinic": false }, { "ID": 86, "Title": "Men's Health", "Url": "https://www.iowaclinic.com/specialties/mens-health/", "Phone": "", "AppointmentUrl": "", "VirtualClinic": false }, { "ID": 28, "Title": "Pulmonology & Critical Care", "Url": "https://www.iowaclinic.com/specialties/lung-breathing/pulmonology-critical-care/", "Phone": "515.875.9550", "AppointmentUrl": "", "VirtualClinic": false }, { "ID": 87, "Title": "Women's Health", "Url": "https://www.iowaclinic.com/specialties/womens-health/", "Phone": "", "AppointmentUrl": "", "VirtualClinic": false } ] }
application/xml, text/xml
Sample:
<Location xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/iowaclinic_api.API"> <Active>true</Active> <Address1>sample string 3</Address1> <Address2>sample string 4</Address2> <AlternateText>sample string 15</AlternateText> <CareOption>sample string 29</CareOption> <City>sample string 5</City> <Content>sample string 18</Content> <DirectionsUrl>sample string 24</DirectionsUrl> <DisplayMain>true</DisplayMain> <Email>sample string 8</Email> <HeaderImage>sample string 19</HeaderImage> <HidePhoneNumbers>true</HidePhoneNumbers> <ID>1</ID> <Image>sample string 14</Image> <Latitude>12.1</Latitude> <Longitude>13.1</Longitude> <MainLocationID>25</MainLocationID> <MapUrl>sample string 23</MapUrl> <Name>sample string 2</Name> <OutreachLocation>true</OutreachLocation> <PhoneNumbers> <LocationPhone> <PhoneNumber>sample string 26</PhoneNumber> <PhoneType>Primary</PhoneType> </LocationPhone> </PhoneNumbers> <PrimaryPhone>sample string 26</PrimaryPhone> <SEODescription>sample string 17</SEODescription> <SEOTitle>sample string 16</SEOTitle> <ShowDoctors>true</ShowDoctors> <SortOrder>10</SortOrder> <Specialties> <Specialty> <AppointmentUrl></AppointmentUrl> <ID>1</ID> <Phone>515.875.9450</Phone> <Title>Allergy</Title> <Url>https://www.iowaclinic.com/specialties/allergy-immunology/allergy/</Url> <VirtualClinic>false</VirtualClinic> </Specialty> <Specialty> <AppointmentUrl></AppointmentUrl> <ID>7</ID> <Phone>515.875.9450</Phone> <Title>Immunology</Title> <Url>https://www.iowaclinic.com/specialties/allergy-immunology/immunology/</Url> <VirtualClinic>false</VirtualClinic> </Specialty> <Specialty> <AppointmentUrl></AppointmentUrl> <ID>86</ID> <Phone></Phone> <Title>Men's Health</Title> <Url>https://www.iowaclinic.com/specialties/mens-health/</Url> <VirtualClinic>false</VirtualClinic> </Specialty> <Specialty> <AppointmentUrl></AppointmentUrl> <ID>28</ID> <Phone>515.875.9550</Phone> <Title>Pulmonology & Critical Care</Title> <Url>https://www.iowaclinic.com/specialties/lung-breathing/pulmonology-critical-care/</Url> <VirtualClinic>false</VirtualClinic> </Specialty> <Specialty> <AppointmentUrl></AppointmentUrl> <ID>87</ID> <Phone></Phone> <Title>Women's Health</Title> <Url>https://www.iowaclinic.com/specialties/womens-health/</Url> <VirtualClinic>false</VirtualClinic> </Specialty> </Specialties> <State>sample string 6</State> <ThumbImage>sample string 20</ThumbImage> <URL>sample string 9</URL> <Zip>sample string 7</Zip> </Location>