mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-12-03 21:18:19 +07:00
[GH-ISSUE #4035] Add remainingTraffic field to client traffic API #2735
Labels
No labels
backlog
bug
clarification needed
documentation
duplicate
enhancement
github_actions
good first issue
invalid
javascript
New Feature
PR welcomed
pull-request
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
MHSanaei/3x-ui#2735
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Avishka-55 on GitHub (Apr 18, 2026).
Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/4035
Is your feature request related to a problem?
The panel UI already calculates and displays the remaining traffic for each client (e.g.
Remained 59.93 GB), but the API endpointGET /panel/api/inbounds/getClientTraffics/:emaildoes not return this value.The only way to get remaining traffic via API right now is:
But this doesn't match what the panel shows because
up/downaccumulate as all-time traffic even after resets, making external calculations incorrect.Describe the solution you'd like
Please add a
remaining(orremainingTraffic) field to the response of:GET /panel/api/inbounds/getClientTraffics/:emailGET /panel/api/inbounds/getClientTrafficsById/:idSince the panel already computes this value internally and displays it in the UI, exposing it in the API response would be straightforward and extremely useful for developers building external tools/bots on top of 3x-ui.
Expected Response
Thank you!###
Describe alternatives you've considered
No response
Checklist