Music Events
The Songkick API provides access to comprehensive music event data globally.
import requests
api_key = 'YOUR_API_KEY'
location_id = 'geo:51.5074,0.1278' # Example: London coordinates
url = f'https://api.songkick.com/api/v2.0/events.json?apikey={api_key}&location={location_id}'
try:
response = requests.get(url)
response.raise_for_status() # Raise an exception for HTTP errors
data = response.json()
print(data)
except requests.exceptions.RequestException as e:
print(f"Error fetching events: {e}")Last 50 checks (10 min intervals)