Skip to main content
Use this endpoint to retrieve traffic analytics for your application. The response provides a comprehensive breakdown of visitor activity across multiple dimensions — including geographic location, device type, operating system, browser, HTTP method, URL path, referrer, and network provider — over either a daily or weekly time window. This data helps you understand how users interact with your application and identify traffic patterns.

Endpoint

GET https://api.virtuscloud.app/v2/apps/{app_id}/network/analytics

Authorization

Include your API key in the request header:
Authorization: <api_key>

Path Parameters

app_id
string
required
The unique identifier of your application. You can find this in the URL of your application’s dashboard.

Query Parameters

range
string
The time window for the analytics data. Accepted values are "daily" (last 24 hours) and "weekly" (last 7 days). Defaults to "daily" if not specified.

Response

status
string
Indicates the outcome of the request. Returns "success" when the operation completes without errors.
response
object
An object containing analytics data grouped by dimension. Each dimension is an array of data-point objects.

Examples

curl --request GET \
  --url "https://api.virtuscloud.app/v2/apps/{app_id}/network/analytics?range=daily" \
  --header "Authorization: <api_key>"

Response Example

{
  "status": "success",
  "response": {
    "visits": [
      {
        "visits": 1,
        "requests": 4,
        "bytes": 9677,
        "date": "2025-05-31T18:45:00Z"
      }
    ],
    "countries": [
      {
        "type": "BR",
        "visits": 1,
        "requests": 4,
        "bytes": 9677,
        "date": "2025-05-31T18:45:00Z"
      }
    ],
    "devices": [
      {
        "type": "desktop",
        "visits": 1,
        "requests": 4,
        "bytes": 9677,
        "date": "2025-05-31T18:45:00Z"
      }
    ],
    "os": [
      {
        "type": "Windows",
        "visits": 1,
        "requests": 4,
        "bytes": 9677,
        "date": "2025-05-31T18:45:00Z"
      }
    ],
    "browsers": [
      {
        "type": "Chrome",
        "visits": 1,
        "requests": 4,
        "bytes": 9677,
        "date": "2025-05-31T18:45:00Z"
      }
    ],
    "protocols": [
      {
        "type": "https",
        "visits": 1,
        "requests": 4,
        "bytes": 9677,
        "date": "2025-05-31T18:45:00Z"
      }
    ],
    "methods": [
      {
        "type": "GET",
        "visits": 1,
        "requests": 4,
        "bytes": 9677,
        "date": "2025-05-31T18:45:00Z"
      }
    ],
    "paths": [
      {
        "type": "/",
        "visits": 1,
        "requests": 4,
        "bytes": 9677,
        "date": "2025-05-31T18:45:00Z"
      }
    ],
    "referers": [
      {
        "type": "https://google.com",
        "visits": 1,
        "requests": 4,
        "bytes": 9677,
        "date": "2025-05-31T18:45:00Z"
      }
    ],
    "providers": [
      {
        "type": "Cloudflare",
        "visits": 1,
        "requests": 4,
        "bytes": 9677,
        "date": "2025-05-31T18:45:00Z"
      }
    ]
  }
}
This endpoint enforces a rate limit of one uncached request every 10 seconds. Repeated calls within that window will return a cached response.