Sorry if my question is unclear , I’m newbie.
I want to measure total traffic in and out of the router. I am creating api for people to use on multiple routers.
I know to measure traffic I have to use this php api command “/interface/monitor-traffic” command but the problem is how do i know which interface is set as WAN ?
Running “/interface/getall” or interface print ( in terminal ) give me something like this which isn’t clear which one should i measure ?

I was thinking to listen/measure all and then add them up. But ( to my little knowledge ) I am seeing something like this in winbox ( TX = RX ) ( ether1 and ether2 )

Sure that on this router I know which interface is set as what. But when I let other use my api , I won’t able to know which one is what?
Please point me into right direction .
Thanks ![]()