Get edge request logs
Get per-request edge logs for an application’s domains with GET /v2/apps//network/logs, up to 7 days back. Available on Pro and Enterprise.
GET
Get edge request logs
Returns per-request edge logs (HTTP, country, status, bytes) for the application’s primary domain and any configured custom domain. Maximum retention window is 7 days; the start is clamped to the application’s creation date.
Requires an API key with the
Available only on Pro and Enterprise plans. Cache misses share one limit of 20 requests per 60 seconds per application owner, across the analytics, errors, logs and performance endpoints. Cached responses do not count. During platform-wide busy periods the endpoint may return the most recent cached data for the requested window instead.
string
required
The API key for your account. You can find this in your account settings.
apps:read scope.
This is a sample of raw, per-request edge traffic, not the application’s own runtime output; for stdout/stderr from the container, see Get Application Logs instead. Each entry captures the client (IP, country, user agent), the request (method, path, query, protocol), and the response (status, content type, cache HIT/MISS) as Cloudflare saw it.
Results are cached in 5-minute buckets, the same alignment used by Network Analytics, so repeated polling of a moving window reuses the cached sample instead of re-fetching from the edge on every call. Combine with Network Errors to correlate a spike in 5xx responses with the specific requests that triggered it.
Parameters
string
required
The ID of the application. You can find this in the URL of your application’s dashboard.
string
required
ISO 8601 start timestamp. Cannot be earlier than the application’s creation date or older than 7 days.
string
required
ISO 8601 end timestamp. Must be after
start.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 network logs - SDKs:
api.apps.network.logs()(JavaScript),client.apps.network.logs()(Python),c.Apps.Network.Logs()(Go)

