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
Key | Datatype | Required | Description |
---|---|---|---|
from | string | Specify the start date for the required data. Use the following date format: YYYY-MM-DD. | |
to | string | Enter the current date or any date after the from date. The date format should be: YYYY-MM-DD. | |
duration | string | Enter a value like day, week, or month. This parameter determines the granularity of the data you want to fetch. | |
orgUid | string | Enter the UID of your Organization. | |
services | string | Specify the array of services for which you want statistics, such as: ["cma", "ui", "cdn", "graphql", "images", "assets", "automations", "launch"]. | |
httpStatusCode | number | Enter an HTTP status code to filter the response. | |
apiKey | string | Enter your stack API key to get data for that specific stack. |
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
authtoken | string | Enter your authtoken . | |
Content-Type | string |