Get user traffic usage
marzban_users_usageCheck a Marzban user's data usage: total, lifetime total, current limit, and per-node breakdown. Optionally set start/end dates to filter node usage by period.
Instructions
Reports how much data a user has used: total, lifetime total, their current limit, and a breakdown by node. start/end (ISO datetimes) narrow the per-node breakdown to a period; omit both for all-time.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| end | No | ISO datetime. Omit for no upper bound. | |
| start | No | ISO datetime. Omit for no lower bound. | |
| username | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| byNode | Yes | ||
| username | Yes | ||
| dataLimit | Yes | ||
| usedTraffic | Yes | ||
| lifetimeUsedTraffic | Yes |