Hi @ipcarlos,
I''m not an expert with Prime or this API but I'm experienced with Python and APIs in general, so these are just my thoughts...
So it looks like the startTime and endTime parameters must be of 'Long' type. My understanding is that we could convert an Integer to Long type in Python2, but Long and Integer types have been merged in Python3. Essentially, all Integers are also Longs in Python3. So, the format of the numbers isn't the issue I think.
Have you tried receiving the response in XML format instead of JSON?
I'm not sure if this is applicable, but have you tried changing the values for these parameters?

You could also trying moving the timestamps to the end of the Request. The example they have adds the time parameter to the end of the request
https://localhost/webacs/api/v4/op/statisticsService/interfaces/metrics/{metric}.json?device=192.168.0.1&ifName=GigabitEthernet0/1&timeInterval=1