Skip to main content
GET
/
api
/
v1
/
user
/
{user_id}
/
requests
/
count
/
timeframe
Get User Request Count Timeframe
curl --request GET \
  --url https://api.entityml.com/api/v1/user/{user_id}/requests/count/timeframe
{
  "requests_per_timestamp": [
    {}
  ]
}

Documentation Index

Fetch the complete documentation index at: https://docs.entityml.com/llms.txt

Use this file to discover all available pages before exploring further.

Request

user_id
string
required
User ID to inspect.
start_time
integer
required
Inclusive start timestamp in Unix milliseconds.
end_time
integer
required
Inclusive end timestamp in Unix milliseconds.

Response

requests_per_timestamp
array
Hourly buckets with timestamp and count.

Example

from entityml import EntityMLClient

client = EntityMLClient()
counts = client.analytics.get_user_request_count_timeframe(
    user_id="YOUR_USER_ID",
    start_time=1775000000000,
    end_time=1775086400000,
)
print(counts["total_requests"])

Example response

{
  "user_id": "YOUR_USER_ID",
  "start_time": 1775000000000,
  "end_time": 1775086400000,
  "requests_per_timestamp": [
    { "timestamp": "2026-04-01T12:00:00+00:00", "count": 42 }
  ],
  "total_requests": 42,
  "skipped_rows": 0
}