Get application metrics
Get an application’s CPU, RAM and network history with GET /v2/apps//metrics: up to 288 points over the last 24 hours, one every 5 minutes.
GET
Get Application Metrics
string
required
The API key for your account. You can find this in your account settings.
apps:read scope.
This endpoint returns historical resource usage rather than the current snapshot: up to 288 data points covering the last 24 hours, sampled every 5 minutes, for CPU, RAM, and network. Points come newest first. Use it to render a usage chart or to spot trends over time; for the application’s current live numbers, use Get Application Status or the status events on Real-time Logs instead.
Metrics collection requires at least 512 MB of RAM allocated to the application; smaller applications return METRICS_NOT_SUPPORTED. Results are cached for 2.5 minutes per (owner, application), and the endpoint is rate limited to 10 requests every 5 seconds per user, with a short block once that cap is hit.
Parameters
string
required
The ID of the application. You can find this in the URL of your application’s dashboard.
Response
string
Indicates whether the call was successful:
success if it was, error if not.array
The contents of the response.
Common errors
Related
- CLI:
squarecloud app metrics - SDKs:
api.apps.metrics()(JavaScript),client.apps.metrics()(Python),c.Apps.Metrics()(Go)

