Skip to main content
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"
      }
    ]
  }
}

Documentation Index

Fetch the complete documentation index at: https://docs.squarecloud.app/llms.txt

Use this file to discover all available pages before exploring further.

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.
start
string
required
ISO 8601 start timestamp for the analysis window.
end
string
required
ISO 8601 end timestamp. Must be after start.

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"
      }
    ]
  }
}