Find Events by Place ID
import requests
response = requests.get(
url="https://api.predicthq.com/v1/places/",
headers={
"Authorization": "Bearer $ACCESS_TOKEN",
"Accept": "application/json"
},
params={
"q": "Nottingham,England"
}
)
print(response.json()){
"id": "2641170",
"type": "locality",
"name": "Nottingham",
"county": "Nottingham",
"region": "England",
"country": "United Kingdom",
"country_alpha2": "GB",
"country_alpha3": "GBR",
"location": [
-1.15047,
52.9536
]
}Last updated
Was this helpful?