# REST API Endpoints

REST API methods are used to render the UI for new versions of Blockscout. These can be accessed and used to get many types of information. Methods parameters and schemas are available at <https://quaiscan.io/api-docs>.

<figure><img src="https://3049643675-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F38YKcjYqMJT3HBhioNFl%2Fuploads%2F1IDJacMfxc57qOVV8c2E%2FScreenshot%202024-09-27%20at%203.23.21%E2%80%AFPM.png?alt=media&#x26;token=2da3568e-0d75-4efa-b4b2-8db8753a6fab" alt=""><figcaption></figcaption></figure>

## Pagination

Quaiscan uses the keyset pagination method to quickly return results. By default an API response returns the first 50 results. To access additional results (in groups of 50), add the `next_page_params` to your query.

For example, open <https://quaiscan.io/api/v2/transactions> and scroll to the bottom of the response.

<figure><img src="https://3049643675-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F38YKcjYqMJT3HBhioNFl%2Fuploads%2FEqYC0KQYmgD9bviSeJe7%2FScreenshot%202024-09-27%20at%203.24.57%E2%80%AFPM.png?alt=media&#x26;token=0fdc334c-9c21-4421-8a01-081d7373cb9f" alt=""><figcaption></figcaption></figure>

You will see the `next_page_params` object. Add the parameters from this object to your next query to receive the next 50 results.

<https://quaiscan.io/api/v2/transactions?block_number=4023&index=12&items_count=50>

Repeat this process to continue receiving results in groups of 50 (remove params and substitute the new `next_page_params` found in the body of the query).

In this example, the query to receive the next 50 results would be:

<https://quaiscan.io/api/v2/transactions?block_number=4023&index=69&items_count=100>
