get https://client.apimetrics.io/api/2/calls//stats/passfail
Use this API to get stats for an hour, day, week or month.
The JSON schema for the output is available at ./schema.json
import APImetrics
obj_id = "ID_OF_OBJECT"
apimetrics = APImetrics.APImetricsAPI(apimetrics_key="your_api_key")
resp = apimetrics.run_call(obj_id, {})
print result['result_id']