Skip to main content

Overview

The Blockworks API uses page-based pagination for endpoints that return large collections of data. This allows you to efficiently retrieve results in manageable chunks rather than loading everything at once.

How It Works

All paginated endpoints follow the same pattern:
  1. Request: Include ?page= and (optionally) ?limit= query parameters.
  2. Response: Contains data array, total count, and current page.
  3. Navigation: Increment page until you’ve retrieved all results.

Basic Example

Response Structure

Best Practices

  • Respect rate limits by adding delays between requests when paging through large datasets.
  • Cache results when possible to avoid re-fetching the same data.
  • Use filters (project, category, etc.) to reduce the total number of pages needed.

Example Output

Here’s what you might see when paging through assets with limit=10:
You know you’ve reached the end when any of the following are true:
  • The current page number × limit ≥ total count
  • The data array is shorter than your limit
  • The data array is empty