Statuspage is making important performance-based changes to the authenticated REST API by enforcing pagination for a specific set of endpoints. If you have an existing integration with our REST API, you may need to make changes to your REST API calls to accommodate these changes, so please read on to understand the details.
Which endpoints are affected?
/pages/{page_id}/page_access_users/{page_access_user_id}/components
/pages/{page_id}/page_access_users/{page_access_user_id}/metrics
/pages/{page_id}/page_access_groups/{page_access_group_id}/components
/pages/{page_id}/metrics_providers/{metrics_provider_id}/metrics
What's changing?
As of Aug 31, 2022, all GET requests made to the above endpoints accept the following pagination parameters, which are both initially optional:
page
- Page offset to fetch
per_page
- Number of results to return per page (note: for backward compatibility, /pages/{page_id}/subscribers will continue to use the limit
query parameter)
These parameters will instruct the REST API to return a paginated set of results for a given endpoint, specifically returning up to per_page
results that are offset by page
. Previously, all GET requests to the above endpoints would have returned the full set of results without being paginated or truncated. Example request and response bodies for each endpoint can be viewed by referencing our API documentation.
As of Feb. 28, 2023, all GET requests made to the above endpoints will have default values unless explicitly specified:
page
- 1st page
per_page
- 100 results
Requests that omit these parameters will return a truncated set equivalent of ?page=1&per_page=100
instead of the full set of results.
What you need to do:
If you’re using any of the endpoints listed above in your integration, please implement pagination for your GET requests before Feb. 28, 2023.
If you have questions about these changes, please feel free to post a comment here.
Vincent Cheng
20 comments