Skip to main content
List endpoints in Memic use page-based pagination with page and page_size query parameters. The response includes enough metadata to know whether more pages exist.

Request

Query parameters

Response shape

  • items — the array of results for the current page
  • total — total count across all pages
  • page — the page you requested (echoed back)
  • page_size — the page size you requested (echoed back)
  • has_moretrue if another page exists

Iterating through all pages

Python (using the SDK)

The SDK handles pagination transparently via a generator. Use this when you need to process every file without thinking about pages.

Python (manual)

cURL (bash)

Best practices

  • Prefer page_size=100 (the maximum) to reduce the number of round-trips
  • Don’t re-fetch old pages if you’re only looking for new items — keep a local cursor of the highest created_at you’ve seen and filter client-side
  • Use the SDK’s iterator when you need to process everything — it handles pagination correctly even if items shift between pages due to concurrent writes