API Endpoint
api.zoom
v2/contact_center/analytics/log/historical/engagement
Description
I’m placing date parameters but the response apparently is ignoring them and retrieving from the datetime of the request until 30 days i think. I’m attempting to get only 1 day of data (previous day).
Here’s my code. Are the data parameters not entered properly?
import json
import requests
# Get the token
resp = requests.post(
f"https://zoom.us/oauth/token?grant_type=account_credentials&account_id={account_id}",
auth=(client_id, client_secret)
)
token = resp.json()['access_token']
h = {'Authorization' : f"Bearer {token}"}
# date parameters
p = {
"timezone": "America/Chicago",
"from": '2025-08-15T01:00:00Z',
"to": '2025-08-16T00:00:00Z',
"page_size":50
}
res = requests.get("https://api.zoom.us/v2/contact_center/analytics/log/historical/engagement", headers=h,params=p).json()
engagements = res['engagement_logs'] # Result ignoring date parameters
Result contains data i didnt ask for: