Get Site List API

The Get site API allows you to retrieve all of your Site Id's from your TowerCoverage.com account. You can also open each site individually and see the site ID is included at the end of the URL as well.

Fields

Account

You can locate your Account ID in the API's Tab of your account settings and also within the iframe of your Multi Coverage.

API Key

Your API key can be located on the API's tab of your account settings. This is a required field and is what the API server will use to determine if you have sufficient API calls available on your account.

Code Examples

SOAP 1.1

Request

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
POST /towercoverage.asmx HTTP/1.1
Host: api.towercoverage.com
Content-Type: text/xml; charset=utf-8
Content-Length: length
 
<?xml version="1.0" encoding="utf-8" ?>
<soap:envelope
              xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
              xmlns:xsd="http://www.w3.org/2001/XMLSchema"
              xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
       <soap:body>
              <getsitelist xmlns="http://tempuri.org/">
                     <account>string</account>
                     <key>string</key>
              </getsitelist>
       </soap:body>
</soap:envelope>

Response

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length
 
<?xml version="1.0" encoding="utf-8" ?>
<soap:envelope
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xmlns:xsd="http://www.w3.org/2001/XMLSchema"
         xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
       <soap:body>
              <getsitelistresponse xmlns="http://tempuri.org/">
                     <getsitelistresult>
                            <site>
                                   <siteid>int</siteid>
                                   <sitename>string</sitename>
                                   <latitude>string</latitude>
                                   <longitude>string</longitude>
                                   <description>string</description>
                                   <group>string</group>
                                   <height>string</height>
                                   <error>string</error>
                            </site>
                            <site>
                                   <siteid>int</siteid>
                                   <sitename>string</sitename>
                                   <latitude>string</latitude>
                                   <longitude>string</longitude>
                                   <description>string</description>
                                   <group>string</group>
                                   <height>string</height>
                                   <error>string</error>
                            </site>
                     </getsitelistresult>
              </getsitelistresponse>
       </soap:body>
</soap:envelope>

SOAP 1.2

Request

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
POST /towercoverage.asmx HTTP/1.1
Host: api.towercoverage.com
Content-Type: application/soap+xml; charset=utf-8
Content-Length: length
 
<?xml version="1.0" encoding="utf-8" ?>
<soap12:envelope
              xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                             xmlns:xsd="http://www.w3.org/2001/XMLSchema"
                             xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
       <soap12:body>
              <getsitelist xmlns="http://tempuri.org/">
                     <account>string</account>
                     <key>string</key>
              </getsitelist>
       </soap12:body>
</soap12:envelope>

Response

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
HTTP/1.1 200 OK
Content-Type: application/soap+xml; charset=utf-8
Content-Length: length
 
<?xml version="1.0" encoding="utf-8" ?>
<soap12:envelope
              xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
              xmlns:xsd="http://www.w3.org/2001/XMLSchema"
              xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
       <soap12:body>
              <getsitelistresponse xmlns="http://tempuri.org/">
                     <getsitelistresult>
                            <site>
                                   <siteid>int</siteid>
                                   <sitename>string</sitename>
                                   <latitude>string</latitude>
                                   <longitude>string</longitude>
                                   <description>string</description>
                                   <group>string</group>
                                   <height>string</height>
                                   <error>string</error>
                            </site>
                            <site>
                                   <siteid>int</siteid>
                                   <sitename>string</sitename>
                                   <latitude>string</latitude>
                                   <longitude>string</longitude>
                                   <description>string</description>
                                   <group>string</group>
                                   <height>string</height>
                                   <error>string</error>
                            </site>
                     </getsitelistresult>
              </getsitelistresponse>
       </soap12:body>
</soap12:envelope>

HTTP Get

Request

1
2
GET /towercoverage.asmx/GetSiteList?Account=string&key=string HTTP/1.1
Host: api.towercoverage.com

Response

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length
 
<?xml version="1.0" encoding="utf-8" ?>
<arrayofsite xmlns="http://tempuri.org/">
       <site>
              <siteid>int</siteid>
              <sitename>string</sitename>
              <latitude>string</latitude>
              <longitude>string</longitude>
              <description>string</description>
              <group>string</group>
              <height>string</height>
              <error>string</error>
       </site>
       <site>
              <siteid>int</siteid>
              <sitename>string</sitename>
              <latitude>string</latitude>
              <longitude>string</longitude>
              <description>string</description>
              <group>string</group>
              <height>string</height>
              <error>string</error>
       </site>
</arrayofsite>

HTTP Post

Request

1
2
3
4
5
6
POST /towercoverage.asmx/GetSiteList HTTP/1.1
Host: api.towercoverage.com
Content-Type: application/x-www-form-urlencoded
Content-Length: length
 
Account=string&key=string

Response

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length
 
<?xml version="1.0" encoding="utf-8" ?>
<arrayofsite xmlns="http://tempuri.org/">
       <site>
              <siteid>int</siteid>
              <sitename>string</sitename>
              <latitude>string</latitude>
              <longitude>string</longitude>
              <description>string</description>
              <group>string</group>
              <height>string</height>
              <error>string</error>
       </site>
       <site>
              <siteid>int</siteid>
              <sitename>string</sitename>
              <latitude>string</latitude>
              <longitude>string</longitude>
              <description>string</description>
              <group>string</group>
              <height>string</height>
              <error>string</error>
       </site>
</arrayofsite