Search Locations

http://api.eventfinda.com.au/v2/locations.xml

Searches the database and returns locations and venues matching the given criteria.

Locations are in a tree structure which you can explore on the Find Events page.

You can also explore the location tree using the API which is explained in more detail in the exploring the location tree section below.

Example Request

http://api.eventfinda.com.au/v2/locations.xml?rows=2&offset=3&q=bar&venue=on

Example Response

<?xml version="1.0"?>
<locations count="3193">
 <location>
  <id>61540</id>
  <name>Valve Bar</name>
  <summary>Valve Bar, Sydney CBD, New South Wales</summary>
  <url_slug>valve-sydney</url_slug>
  <is_venue>1</is_venue>
  <count_current_events>0</count_current_events>
  <url>https://www.eventfinda.com.au/venue/valve-sydney</url>
  <description><![CDATA[Our new location is rig ...  to all registered artists.  ]]></description>
  <images count="1">
   <image>
    <id>269297</id>
    <is_primary>1</is_primary>
    <transforms count="5">
     <transform>
      <transformation_id>2</transformation_id>
      <url>http://cdn.eventfinda.com.au/upload ... ions/transformed/269297-61540-2.jpg</url>
      <width>80</width>
      <height>60</height>
     </transform>
     <transform>
      <transformation_id>15</transformation_id>
      <url>http://cdn.eventfinda.com.au/upload ... ons/transformed/269297-61540-15.jpg</url>
      <width>75</width>
      <height>75</height>
     </transform>
     <transform>
      <transformation_id>8</transformation_id>
      <url>http://cdn.eventfinda.com.au/upload ... ions/transformed/269297-61540-8.jpg</url>
      <width>190</width>
      <height>127</height>
     </transform>
     <transform>
      <transformation_id>27</transformation_id>
      <url>http://cdn.eventfinda.com.au/upload ... ons/transformed/269297-61540-27.jpg</url>
      <width>350</width>
      <height>350</height>
     </transform>
     <transform>
      <transformation_id>7</transformation_id>
      <url>http://cdn.eventfinda.com.au/upload ... /transformed/269297-61540-7.jpg?v=2</url>
      <width>650</width>
      <height>280</height>
     </transform>
    </transforms>
   </image>
  </images>
  <address>871 George St, Sydney CBD, Sydney</address>
  <point>
   <lat>-33.8837</lat>
   <lng>151.2022</lng>
  </point>
  <booking_web_site>
   <url/>
   <name>Buy Tickets</name>
  </booking_web_site>
  <booking_phone/>
  <is_free>0</is_free>
  <is_featured>0</is_featured>
  <restrictions>18+</restrictions>
  <ticket_types count="0"/>
  <contacts count="0"/>
  <amenities count="0"/>
  <hours count="0"/>
  <web_sites count="1">
   <web_site>
    <url>http://www.valvebar.com.au</url>
    <name>Official Website </name>
   </web_site>
  </web_sites>
 </location>
 <location>
  <id>15212</id>
  <name>Ivy Bar/Lounge</name>
  <summary>Ivy Bar/Lounge, Sydney CBD, New South Wales</summary>
  <url_slug>ivy-bar-lounge-sydney-cbd</url_slug>
  <is_venue>1</is_venue>
  <count_current_events>0</count_current_events>
  <url>https://www.eventfinda.com.au/venue/ivy-bar-lounge-sydney-cbd</url>
  <description/>
  <images count="1">
   <image>
    <id/>
    <is_primary>1</is_primary>
    <transforms count="5">
     <transform>
      <transformation_id>2</transformation_id>
      <url>http://cdn.eventfinda.com.au/images/global/iconVenue-2.png</url>
      <width>80</width>
      <height>80</height>
     </transform>
     <transform>
      <transformation_id>15</transformation_id>
      <url>http://cdn.eventfinda.com.au/images/global/iconVenue-15.png</url>
      <width>75</width>
      <height>75</height>
     </transform>
     <transform>
      <transformation_id>8</transformation_id>
      <url>http://cdn.eventfinda.com.au/images/global/iconVenue-8.png</url>
      <width>190</width>
      <height>127</height>
     </transform>
     <transform>
      <transformation_id>27</transformation_id>
      <url>http://cdn.eventfinda.com.au/images/global/iconVenue-27.png</url>
      <width>350</width>
      <height>350</height>
     </transform>
     <transform>
      <transformation_id>7</transformation_id>
      <url>http://cdn.eventfinda.com.au/images/global/iconVenue-7.png</url>
      <width>650</width>
      <height>280</height>
     </transform>
    </transforms>
   </image>
  </images>
  <address>320/330 George Street, Sydney CBD, Sydney</address>
  <point>
   <lat>-33.8666</lat>
   <lng>151.2072</lng>
  </point>
  <booking_web_site>
   <url/>
   <name>Buy Tickets</name>
  </booking_web_site>
  <booking_phone/>
  <is_free>0</is_free>
  <is_featured>0</is_featured>
  <restrictions>All Ages</restrictions>
  <ticket_types count="0"/>
  <contacts count="0"/>
  <amenities count="0"/>
  <hours count="0"/>
  <web_sites count="0"/>
 </location>
</locations>

Parameters

The following parameters are available along with the common parameters.

featured

If set to 1, only return locations marked as featured.

levels

An integer specifying the number of child location levels to include in the children element of the returned results. For example specifying 1 (which is the default) would include only the matching locations without a children element. Specifying levels=2 would include the matching locations and their immediate children. Specifying levels=3 would include the matching locations, their immediate children and their immediate children's children.

A side effect of specifying levels greater than 1 is that the first level of locations will also have a parents element. The parents element includes a collection of location elements which are ancestors of the location with the more immediate ancestors first.

location

Only return locations which are a descendent of this location ID.

Specify multiple IDs by separating them with a comma (,).

location_slug

Only return locations where are a descendent of the location specified by this URL slug

Specify multiple URL slugs by separating them with a comma (,).

order

Specify the order the results should be in. Possible values are

  • popularity
  • distance (only available with the point parameter)

If nothing is specified locations are sorted by tree order with the root first.

point

In the format latitude,longitude

/locations.xml?point=-36.84846,174.763332&order=distance
This parameter only makes sense if you also specify the order and/or radius parameters.

radius

Only include events within the given kilometers of the given point

/locations.xml?point=-36.84846,174.763332&distance=5
Would only return events within 5 kilometers of the point. Fractions of a kilometer can also be specified.

venue

If this parameter is present and true then only locations which are venues are returned. If its present and false then venues are excluded

Exploring the Location Tree

Many of the other end points accept a location or location_slug parameter, for example the events end point allows filtering events within a specific location. To find out the id or slug of a location to use in the location or location_slug parameters you can look them up. There are a couple of techniques to do this. The first is to use the children field to explore down the location tree. For example here is how you would get the root location and it's children.

http://api.eventfinda.com.au/v2/locations.xml?rows=1&levels=2&fields=location:(id,url_slug,name,children)

Response

<?xml version="1.0"?>
<locations count="45379">
 <location>
  <id>1</id>
  <name>Australia</name>
  <url_slug>australia</url_slug>
  <children count="9">
   <location>
    <id>3</id>
    <name>ACT</name>
    <url_slug>act</url_slug>
   </location>
   <location>
    <id>19420</id>
    <name>External Territories</name>
    <url_slug>external-territories</url_slug>
   </location>
   <location>
    <id>2</id>
    <name>New South Wales</name>
    <url_slug>new-south-wales</url_slug>
   </location>
   <location>
    <id>150</id>
    <name>Northern Territory</name>
    <url_slug>northern-territory</url_slug>
   </location>
   <location>
    <id>5</id>
    <name>Queensland</name>
    <url_slug>queensland</url_slug>
   </location>
   <location>
    <id>7</id>
    <name>South Australia</name>
    <url_slug>south-australia</url_slug>
   </location>
   <location>
    <id>24</id>
    <name>Tasmania</name>
    <url_slug>tasmania</url_slug>
   </location>
   <location>
    <id>4</id>
    <name>Victoria</name>
    <url_slug>victoria</url_slug>
   </location>
   <location>
    <id>9</id>
    <name>Western Australia</name>
    <url_slug>west-australia</url_slug>
   </location>
  </children>
 </location>
</locations>

You can delve deeper into the tree structure by adding the id of a location whose children you want to see. In this case we'll look for the children of "ACT" which you can see from the above response has the id of 3.

http://api.eventfinda.com.au/v2/locations.xml?id=3&levels=2&fields=location:(id,url_slug,name,children)

Response

<?xml version="1.0"?>
<locations count="1">
 <location>
  <id>3</id>
  <name>ACT</name>
  <url_slug>act</url_slug>
  <children count="35">
   <location>
    <id>93543</id>
    <name>0200, Australian National University</name>
    <url_slug>0200</url_slug>
   </location>
   <location>
    <id>100935</id>
    <name>2540, Hmas Creswell</name>
    <url_slug>2540-hmas-creswell</url_slug>
   </location>
   <location>
    <id>100940</id>
    <name>2540, Jervis Bay</name>
    <url_slug>2540-jervis-bay</url_slug>
   </location>
   <location>
    <id>100973</id>
    <name>2540, Wreck Bay</name>
    <url_slug>2540-wreck-bay</url_slug>
   </location>
   <location>
    <id>101335</id>
    <name>2600, Deakin West</name>
    <url_slug>2600-deakin-west</url_slug>
   </location>
   <location>
    <id>101336</id>
    <name>2600, Harman</name>
    <url_slug>2600-harman</url_slug>
   </location>
   <location>
    <id>101337</id>
    <name>2600, Hmas Harman</name>
    <url_slug>2600-hmas-harman</url_slug>
   </location>
   <location>
    <id>101351</id>
    <name>2604, Causeway</name>
    <url_slug>2604-causeway</url_slug>
   </location>
   <location>
    <id>101357</id>
    <name><![CDATA[2606, O\'malley]]></name>
    <url_slug>2606-omalley</url_slug>
   </location>
   <location>
    <id>94175</id>
    <name>2608, Civic Square</name>
    <url_slug>2608</url_slug>
   </location>
   <location>
    <id>101367</id>
    <name>2610, Canberra Bc</name>
    <url_slug>2610-canberra-bc</url_slug>
   </location>
   <location>
    <id>94177</id>
    <name>2610, Canberra Mc</name>
    <url_slug>2610</url_slug>
   </location>
   <location>
    <id>101373</id>
    <name>2611, Coree</name>
    <url_slug>2611-coree</url_slug>
   </location>
   <location>
    <id>101374</id>
    <name>2611, Denman Prospect</name>
    <url_slug>2611-denman-prospect</url_slug>
   </location>
   <location>
    <id>101380</id>
    <name>2611, Stromlo</name>
    <url_slug>2611-stromlo</url_slug>
   </location>
   <location>
    <id>101392</id>
    <name>2614, Jamison Centre</name>
    <url_slug>2614-jamison-centre</url_slug>
   </location>
   <location>
    <id>101403</id>
    <name>2615, Kippax</name>
    <url_slug>2615-kippax</url_slug>
   </location>
   <location>
    <id>101408</id>
    <name>2617, Belconnen Dc</name>
    <url_slug>2617-belconnen-dc</url_slug>
   </location>
   <location>
    <id>94183</id>
    <name>2617, University Of Canberra</name>
    <url_slug>2617</url_slug>
   </location>
   <location>
    <id>101418</id>
    <name>2620, Beard</name>
    <url_slug>2620-beard</url_slug>
   </location>
   <location>
    <id>101429</id>
    <name>2620, Kowen</name>
    <url_slug>2620-kowen</url_slug>
   </location>
   <location>
    <id>101432</id>
    <name>2620, Paddys River</name>
    <url_slug>2620-paddys-river</url_slug>
   </location>
   <location>
    <id>94373</id>
    <name>2901, Tuggeranong Dc</name>
    <url_slug>2901</url_slug>
   </location>
   <location>
    <id>94374</id>
    <name>2902, Kambah Village</name>
    <url_slug>2902</url_slug>
   </location>
   <location>
    <id>102680</id>
    <name>2903, Erindale Centre</name>
    <url_slug>2903-erindale-centre</url_slug>
   </location>
   <location>
    <id>102681</id>
    <name>2903, Oxley</name>
    <url_slug>2903-oxley</url_slug>
   </location>
   <location>
    <id>102683</id>
    <name>2904, Gowrie</name>
    <url_slug>2904-gowrie</url_slug>
   </location>
   <location>
    <id>102688</id>
    <name>2905, Gilmore</name>
    <url_slug>2905-gilmore</url_slug>
   </location>
   <location>
    <id>94378</id>
    <name>2906, Gordon</name>
    <url_slug>2906</url_slug>
   </location>
   <location>
    <id>102696</id>
    <name>2913, Kinlyside</name>
    <url_slug>2913-kinlyside</url_slug>
   </location>
   <location>
    <id>94381</id>
    <name>2913, Taylor</name>
    <url_slug>2913</url_slug>
   </location>
   <location>
    <id>102704</id>
    <name>2914, Jacka</name>
    <url_slug>2914-jacka</url_slug>
   </location>
   <location>
    <id>102705</id>
    <name>2914, Moncrieff</name>
    <url_slug>2914-moncrieff</url_slug>
   </location>
   <location>
    <id>94382</id>
    <name>2914, Throsby</name>
    <url_slug>2914</url_slug>
   </location>
   <location>
    <id>19</id>
    <name>Canberra</name>
    <url_slug>canberra</url_slug>
   </location>
  </children>
 </location>
</locations>

The second method is looking for specific locations or venues using the q parameter. For example this query will look for locations containing the term "act".

http://api.eventfinda.com.au/v2/locations.xml?q=act&venue=off&fields=location:(id,url_slug,name,children)

Response

<?xml version="1.0"?>
<locations count="115">
 <location>
  <id>3</id>
  <name>ACT</name>
  <url_slug>act</url_slug>
 </location>
 <location>
  <id>19</id>
  <name>Canberra</name>
  <url_slug>canberra</url_slug>
 </location>
 <location>
  <id>95</id>
  <name>Belconnen</name>
  <url_slug>belconnen</url_slug>
 </location>
 <location>
  <id>97</id>
  <name>Gungahlin</name>
  <url_slug>gungahlin</url_slug>
 </location>
 <location>
  <id>19105</id>
  <name>Hall</name>
  <url_slug>hall2</url_slug>
 </location>
 <location>
  <id>99</id>
  <name>Tuggeranong</name>
  <url_slug>tuggeranong</url_slug>
 </location>
 <location>
  <id>7746</id>
  <name>Aranda</name>
  <url_slug>aranda</url_slug>
 </location>
 <location>
  <id>7747</id>
  <name>Belconnen</name>
  <url_slug>belconnen2</url_slug>
 </location>
 <location>
  <id>7748</id>
  <name>Bruce</name>
  <url_slug>bruce</url_slug>
 </location>
 <location>
  <id>7749</id>
  <name>Charnwood</name>
  <url_slug>charnwood</url_slug>
 </location>
</locations>

By changing the venue=off to venue=on and adding the location=3 parameter you can then search for venues containing "bar" in "ACT".

http://api.eventfinda.com.au/v2/locations.xml?q=bar&location=3&venue=on&fields=location:(id,url_slug,name,children)

Response

<?xml version="1.0"?>
<locations count="46">
 <location>
  <id>14996</id>
  <name>ANU Bar</name>
  <url_slug>anu-bar-queanbeyan</url_slug>
 </location>
 <location>
  <id>81847</id>
  <name>Monster Kitchen and Bar</name>
  <url_slug>monster-kitchen-and-bar-canberra</url_slug>
 </location>
 <location>
  <id>64702</id>
  <name>Kremlin Bar</name>
  <url_slug>kremlin-bar-canberra</url_slug>
 </location>
 <location>
  <id>114650</id>
  <name>Molly Bar</name>
  <url_slug>molly-bar-canberra</url_slug>
 </location>
 <location>
  <id>16060</id>
  <name>Trinity Bar</name>
  <url_slug>trinity-bar-canberra</url_slug>
 </location>
 <location>
  <id>15708</id>
  <name>Transit Bar</name>
  <url_slug>transit-bar-canberra</url_slug>
 </location>
 <location>
  <id>15659</id>
  <name>MonkeyBAR</name>
  <url_slug>monkeybar-canberra</url_slug>
 </location>
 <location>
  <id>15641</id>
  <name>Bar 32</name>
  <url_slug>bar-32-canberra2</url_slug>
 </location>
 <location>
  <id>93470</id>
  <name>Treehouse Bar</name>
  <url_slug>treehouse-bar-canberra</url_slug>
 </location>
 <location>
  <id>77386</id>
  <name>The Rum Bar</name>
  <url_slug>the-rum-bar-canberra</url_slug>
 </location>
</locations>