GET
/
v2
/
apps
/
{app_id}
/
network
/
analytics
Header
Path
curl --request GET \
  --url https://api.squarecloud.app/v2/apps/{app_id}/network/analytics \
  --header 'Authorization: <authorization>'
{
  "status": "success",
  "response": {
    "hostname": "joaootavios.dev",
    "total": {
      "visits": 557,
      "megabytes": "2.09",
      "bytes": 2089127
    },
    "countries": [...],
    "methods": [...],
    "referers": [...],
    "browsers": [...],
    "deviceTypes": [...],
    "operatingSystems": [...],
    "agents": [...],
    "hosts": [...],
    "paths": [...]
  }
}

Is necessary to have at least the senior plan to use this route.

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.

Response

status
string

Indicates whether the call was successful. “success” if successful, “error” if not.

response
object

The contents of the response.