Query Logs
Returns historical worker logs for a project within a time window. Supports filtering by HTTP method, status code, URL, and minimum severity level, plus cursor-based pagination.
The start and end query parameters are both required, and the window between them cannot exceed 7 days.
Note: To stream logs in real time instead, use the Tail Worker Logs endpoint.
Authentication
OAuth scopes
Authentication header
Further reading
For example requests and more information about authenticating BigCommerce APIs, see Authentication and Example Requests.
For more about BigCommerce OAuth scopes, see our Guide to API Accounts.
For a list of API status codes, see API Status Codes.
Path parameters
Query parameters
The start of the time window to query. Accepts an RFC 3339 timestamp or a Unix epoch in seconds. Must be before end.
The end of the time window to query. Accepts an RFC 3339 timestamp or a Unix epoch in seconds. The window between start and end cannot exceed 7 days.
Filter logs by HTTP method, for example GET.
Response
Meta information including cursor-based pagination.