apiUsage
Get your Hydromancer API usage statistics broken down by day and request type.
POST Request
Field
Type
Description
type
string
Must be "apiUsage"
days
integer
Number of days to look back (optional, default 30)
curl -X POST https://api.hydromancer.xyz/info \
-H "Authorization: Bearer $HYDROMANCER_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"type": "apiUsage",
"days": 7
}'import requests
import os
response = requests.post(
'https://api.hydromancer.xyz/info',
json={
'type': 'apiUsage',
'days': 7
},
headers={
'Authorization': f'Bearer {os.environ.get("HYDROMANCER_API_KEY")}',
'Content-Type': 'application/json'
}
)
print(response.json())Response Fields
Field
Type
Description
day
string
Date in YYYY-MM-DD format
request_type
string
Endpoint or request type name
total_requests
int
Total number of requests
success_requests
int
Number of successful requests
failure_requests
int
Number of failed requests
avg_processing_time_ms
float
Average processing time in milliseconds
tokens_consumed
int
Billable tokens consumed that day for this request type
Last updated