API Reference

The Orders, Events and Offers endpoints support pagination. Below is an example:

Fetch Orders of a Contract Using Pagination

Step 1. Fetch the first page with the following request:

https://api.x2y2.org/v1/orders?contract={contract_address}

If there are remaining orders on the next page, the next in the response will be a short string, otherwise, it will be a null .

{
 "data": [...],
 "next": "WzE2NTE3NDIyMDUwMDBd",
 "success": true
}

Step 2. To fetch the next page, send a request with the cursor parameter set to the next value in the previous response:

https://api.x2y2.org/v1/orders?contract={contract_address}&cursor={next_string}