github.com/sagernet/sing-box@v1.9.0-rc.20/docs/configuration/experimental/v2ray-api.md (about) 1 !!! quote "" 2 3 V2Ray API is not included by default, see [Installation](/installation/build-from-source/#build-tags). 4 5 ### Structure 6 7 ```json 8 { 9 "listen": "127.0.0.1:8080", 10 "stats": { 11 "enabled": true, 12 "inbounds": [ 13 "socks-in" 14 ], 15 "outbounds": [ 16 "proxy", 17 "direct" 18 ], 19 "users": [ 20 "sekai" 21 ] 22 } 23 } 24 ``` 25 26 ### Fields 27 28 #### listen 29 30 gRPC API listening address. V2Ray API will be disabled if empty. 31 32 #### stats 33 34 Traffic statistics service settings. 35 36 #### stats.enabled 37 38 Enable statistics service. 39 40 #### stats.inbounds 41 42 Inbound list to count traffic. 43 44 #### stats.outbounds 45 46 Outbound list to count traffic. 47 48 #### stats.users 49 50 User list to count traffic.