VPSBG's dev hub
HomePricingKnowledge BaseContact us
HomePricingKnowledge BaseContact us
  1. Servers
  • 👋 Hello
  • API Introduction
    • API Introduction
    • How to generate API key?
  • API Reference
    • User
      • 2FA
        • Get 2FA secret key
        • Enable 2FA
        • Disable 2FA
      • Update user
      • Get account information
    • Balance
      • Balance
      • Deposit funds
      • List balance transactions
    • Affiliate
      • Get affiliate information
      • List conversions
      • List payouts
      • Activate affiliate program
      • Update referral code
    • Invoices
      • List invoices
      • Download an invoice
      • Download invoices
    • Support
      • Tickets
        • List tickets
        • List departments
        • List related services
        • Get a ticket
        • Create new ticket
        • Reply to ticket
        • Mark ticket as resolved
        • Download attachment
      • List plans
      • Purchase support plan
      • Renew support plan
      • Cancel support plan
      • Undo cancel request
    • SSH Keys
      • Get an SSH Key
      • Update SSH Key
      • Delete SSH Key
      • List SSH keys
      • Add SSH Key
    • Servers
      • Scale
        • List plans
        • Calculate scale cost
        • Scale a server
      • Addons
        • List available addons
        • Scale addons
        • Calculate scale cost
        • Purchase new addons
        • Cancel addon
        • Undo cancel request
      • Rescue
        • Enable rescue mode
        • Disable rescue mode
      • List plans
        GET
      • List servers
        GET
      • Server status
        GET
      • Get a server
        GET
      • Server metrics
        GET
      • Bandwidth
        GET
      • Deploy new server
        POST
      • Start a server
        POST
      • Restart a server
        POST
      • Stop a server
        POST
      • Power off
        POST
      • Cancel server
        POST
      • Undo cancel request
        DELETE
      • Change password
        PUT
      • Update hostname
        PUT
      • Update SSH Keys
        PATCH
      • Modify ISOs
        POST
      • Restore
        POST
      • Renew server
        POST
      • Reinstall Server
        POST
      • Change Primary IP
        POST
      • Calculate renew amount
        POST
    • Plans
      • Plan addon
      • Plan promo-codes
    • Snapshots
      • List snapshots
      • Delete snapshot
    • Backups
      • List backups
      • Delete backup
    • Server Images
      • List server images
    • Floating IPs
      • List Floating IPs
      • Plans
      • Purchase Floating IPs
      • Attach Floating IP
      • Detach Floating IP
      • Cancel Floating IP
      • Delete Floating IP Cancellation
    • IP Addresses
      • Update IP address
    • Network Protection
      • Geo filter
        • Get current geo filter
        • Set geo filter
        • Update geo filter
        • Delete geo filter
      • Whitelist
        • Get status and list of IPs
        • Whitelist IP addresses
        • Update IP addresses list
        • Delete all rules
      • Blacklist
        • Get status and list of IPs
        • Blacklist IP addresses
        • Update IP addresses list
        • Delete all rules
      • General information
      • Bandwidth
      • List blocked IPs
      • List attacks
      • Get an attack
      • Attack bandwidth
    • Orders
      • List orders
      • Get an order
      • Delete order
      • Pay orders
      • Update order
      • Change renewal period
    • ISOs
      • Get an ISO
      • Delete an ISO
      • List ISOs
      • Add ISO
  1. Servers

Bandwidth

GET
https://api.vpsbg.eu/v1/servers/{id}/bandwidth
Servers
This endpoint return bandwidth information for the selected server.

Request

Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.
Example:
Authorization: Bearer ********************
Path Params
id
integer 
required
VPSBG's ID of your server
Query Params
filter[start]
integer  | null 
optional
Show records from this timestamp.
Example:
1725963656
filter[end]
integer  | null 
optional
Show records until this timestamp.
Example:
1725963656
Header Params
Accept
string 
required
Default:
application/json

Request samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location -g --request GET 'https://api.vpsbg.eu/v1/servers//bandwidth?filter[start]&filter[end]' \
--header 'Accept;'

Responses

🟢200Bandwidth statistics
application/json
Body
limit
integer 
required
Bandwidth limit of the server in GBs.
used
number 
required
Used bandwidth for this bandwidth cycle in GBs.
daily_usage
array [object {3}] 
required
List of day-by-day bandwidth usage for this server.
timestamp
integer 
required
incoming
number 
required
Incoming bandwidth in GBs.
outgoing
number 
required
Outgoing bandwidth in GBs.
Example
{
  "limit": 5000,
  "used": 12.96,
  "daily_usage": [
    {
      "timestamp": 1724792400,
      "incoming": 1.4180859375,
      "outgoing": 0.00109375
    },
    {
      "timestamp": 1724878800,
      "incoming": 1.40078125,
      "outgoing": 0.001103515625
    },
    {
      "timestamp": 1724965200,
      "incoming": 1.349755859375,
      "outgoing": 0.00109375
    },
    {
      "timestamp": 1725051600,
      "incoming": 1.354638671875,
      "outgoing": 0.001083984375
    },
    {
      "timestamp": 1725138000,
      "incoming": 1.400458984375,
      "outgoing": 0.00109375
    },
    {
      "timestamp": 1725224400,
      "incoming": 1.386259765625,
      "outgoing": 0.001103515625
    },
    {
      "timestamp": 1725310800,
      "incoming": 1.39705078125,
      "outgoing": 0.00109375
    },
    {
      "timestamp": 1725397200,
      "incoming": 1.4091015625,
      "outgoing": 0.001142578125
    },
    {
      "timestamp": 1725483600,
      "incoming": 1.39791015625,
      "outgoing": 0.0011328125
    },
    {
      "timestamp": 1725570000,
      "incoming": 1.474140625,
      "outgoing": 0.0011328125
    },
    {
      "timestamp": 1725656400,
      "incoming": 1.31255859375,
      "outgoing": 0.001123046875
    },
    {
      "timestamp": 1725742800,
      "incoming": 1.289072265625,
      "outgoing": 0.00111328125
    },
    {
      "timestamp": 1725829200,
      "incoming": 1.300478515625,
      "outgoing": 0.001171875
    },
    {
      "timestamp": 1725915600,
      "incoming": 0.58103515625,
      "outgoing": 0.0005078125
    }
  ]
}
🔴500Server Error
Previous
Server metrics
Next
Deploy new server
Built with