Skip to main content
GET
Network 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.
Available only on Pro and Enterprise plans. Cache miss rate limit: 10 requests per 60 seconds per owner.
Authorization
string
required
The API key for your account. You can find this in your account settings.
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

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. Cannot be earlier than the application’s creation date or older than 7 days.
end
string
required
ISO 8601 end timestamp. Must be after start.

Response

status
string
Indicates whether the call was successful.. success if successful, error if not.
response
array
The contents of the response.

Common errors