I am trying to get data from Yelp's API but as the title suggests I am not getting a JSON and I'm not sure what to do. Below is my code
import requests
api_key = 'MY API KEY'
# USING THE YELP BUSINESS SEARCH API: https://www.yelp.com/developers/documentation/v3/business_search
# HEADERS CONTAIN THE API KEY
headers = {'Authorization': 'Bearer {}'.format(api_key), 'content-type': 'application/json'}
search_api_url = 'https://www.yelp.com/developers/documentation/v3/business_search'
params = {
'term': 'restaurants',
'location': 'Cincinnati, Ohio',
'limit': 50
}
# MAKE THE GET CALL WITH A TIME OUT OF 5 SECONDS
response = requests.get(search_api_url, headers=headers, params=params, timeout=5)
print(response.url)
print(response.status_code)
print(response.headers)