Quick Start
Learn in one step how to use the API on a basic level
Get your API keys
First curl request
# Install via pip
pip install requests
# Use requests to initialize curl
def fetch_calculated_tv_data(api_key, keywords, channels, broadcast_id):
url = f"http://tv-api.oloqiqi.com/kpis/{broadcast_id}"
headers = {
"Content-Type": "application/json",
'Authorization': f'Bearer {api_key}'
}
response = requests.post(url, headers=headers, json=payload)
if response.status_code == 200:
return response.json() # Successfully retrieved data
else:
return response.json() # An error occurredcurl -X GET http://api.oloqiqi.com/kpi/ broadcast ID \
-H "Content-Type: application/json" \
-H "Authorization: Bearer API_KEY" \Last updated