Product
Analytics
Question
Hi, I’ve been trying to use the Python SDK to automate Analytics data querying and I’ve been stumbling upon the following error:
BitmovinError: The analytics license resource was not found!
developerMessage: Analytics license was not found.
errorCode: 1001
request:
method: POST
url: https://api.bitmovin.com/v1/analytics/queries/count
body: {“dimension”: “IMPRESSION_ID”, “end”: “2024-07-14T23:59:59Z”, “filters”: [{“name”: “VIDEO_STARTUPTIME”, “operator”: “GT”, “value”: 0}], “licenseKey”: “”, “start”: “2024-07-14T00:00:00Z”}
response:
httpStatusCode: 404
body: {“requestId”:“2efdabe4-0136-41a0-a1f7-54fea46942d8”,“status”:“ERROR”,“data”:{“code”:1001,“message”:“The analytics license resource was not found!”,“developerMessage”:“Analytics license was not found.”}}
Heres the code snippet:
total_plays = AnalyticsCountQueryRequest(
start=datetime(2024,7,14),
end=datetime(2024,7,14,23,59,59),
license_key=‘’,
dimension=AnalyticsAttribute.IMPRESSION_ID,
filters=[AnalyticsGreaterThanFilter(name=AnalyticsAttribute.VIDEO_STARTUPTIME, value=0)]
)
result = CountApi(‘’)
result.create(total_plays)
I’ve tried everything and every single one of my License Keys from the Dashboard does not work. I don’t know if I’m missing something, but I tried variations (no dashes, upper case, etc.) and nothing seems to work. Is this a server side error?