Skip to content

Pagination

Three list routes page with page and limit: /api/v1/projects, /api/v1/articles and /api/v1/social/content. There are no cursors.

01Query

ParameterDefaultRules
page1Integer, 1 or more
limit20Integer, 1 to 100. Anything else is a 400 VALIDATION_ERROR.

GET /api/v1/actors is not paginated: it returns every Actor in the project with meta.total.

02Response

200Response
{
  "success": true,
  "data": [],
  "pagination": {
    "total": 42,
    "page": 2,
    "limit": 20,
    "total_pages": 3,
    "has_more": true
  },
  "meta": {
    "timestamp": "2026-10-29T15:40:14.123Z"
  }
}
FieldMeaning
totalRows matching your filters
total_pagesceil(total / limit)
has_moreTrue when another page exists

03Walk every page

Your codeBrainpercent
  1. Your code to Brainpercent: GET /api/v1/articles?page=1
  2. Brainpercent to Your code: has_more: trueAnother page exists. Ask for the next one.
  3. Your code to Brainpercent: GET /api/v1/articles?page=2
  4. Brainpercent to Your code: has_more: falseThat was the last page. Stop.
has_more is inside the pagination object of every answer.
curl "https://www.brainpercent.app/api/v1/articles?page=2&limit=100" \
  -H "Authorization: Bearer $BP_KEY"