GET
/
v2
/
apps
/
{app_id}
/
network
/
analytics
Website Analytics
curl --request GET \
  --url https://api.squarecloud.app/v2/apps/{app_id}/network/analytics \
  --header 'Authorization: <authorization>'
{
  "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"
      }
    ]
  }
}
Authorization
string
required
The API key for your account. You can find this in your account settings.
app_id
string
required
The ID of the application. You can find this in the URL of your application’s dashboard.
range
string
Time range for the analytics data. It can be daily or weekly. Default is daily.

Response

This route can send a response in a compressed format, optimizing data transmission.
status
string
Indicates whether the call was successful.. success if successful, error if not.
response
object
Check the Response Example in right side to see the full response.
{
  "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"
      }
    ]
  }
}