Application - Network
Website Analytics
Get analytics for a website hosted on Square Cloud. There is a rate limit of 1 uncached request every 10 seconds.
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"
}
]
}
}
The API key for your account. You can find this in your account settings.
Parameters
The ID of the application. You can find this in the URL of your application’s dashboard.
ISO 8601 start timestamp for the analysis window.
ISO 8601 end timestamp. Must be after
start.Response
This route can send a response in a compressed format, optimizing data transmission.
Indicates whether the call was successful..
success if successful, error if not.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"
}
]
}
}
⌘I
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"
}
]
}
}

