Find Events by Place ID
For this example, we want to find all the sports events that happened in Nottingham, England in March of 2018.
First let’s find the Nottingham Place ID by making a request to the Places endpoint:
The first result in the response (shown below) is the correct location we want:
Now we take the Place ID for Nottingham returned above and use it to search for Events happening in that location.
A snippet of the results are shown below:
We use Geonames data for our Places, so the id 2641170 is also a Geoname ID for the same location. Please see the official Geonames site for more information.
Using place.scope
will return events that apply to the parent and children places of the specified place (e.g. holidays and other events that apply to a country or region). Alternatively you can use place.exact
to return events that apply to the specified place only.
Last updated
Was this helpful?