Status Code

GET https://{{base_url}}/analytics/v2/http-statuses?from=2024-01-31&to=2024-03-31&duration=day&orgUid={{orgUid}}&services=["cdn","cma"]

The Status Code request will show the count for the number of API requests made for each HTTP status code. For example, 200, 201, 400, 404, and so on. You can use the httpStatusCode parameter to get the count for a specific status code instead of all status codes.

To use the API request, you will need to authenticate yourself either with an Authtoken. 
Read more about it in Authentication.


For more information, refer to the Status Code API Reference document

Request Params

KeyDatatypeRequiredDescription
fromstringSpecify the start date for the required data. Use the following date format: YYYY-MM-DD.
tostringEnter the current date or any date after the from date. The date format should be: YYYY-MM-DD.
durationstringEnter a value like day, week, or month. This parameter determines the granularity of the data you want to fetch.
orgUidstringEnter the UID of your Organization.
servicesstringSpecify the array of services for which you want statistics, such as: ["cma", "ui", "cdn", "graphql", "images", "assets", "automations", "launch"].
httpStatusCodenumberEnter an HTTP status code to filter the response.
apiKeystringEnter your stack API key to get data for that specific stack.

HEADERS

KeyDatatypeRequiredDescription
authtokenstringEnter your authtoken .
Content-Typestring