# Pagination

[Orbito Ads · English · HTML](https://orbitoads.pro/docs/api/pagination/)

Sources checked · 2026-11-27

### Browse documentation



[All documentation](/docs/) 
Get started

- [API quickstart](/docs/api/)
- [Keys and cabinet permissions](/docs/api/authentication/)
- [Using the API reference with an assistant](/docs/api/ai-assistants/)

Concepts

- [Reading API errors](/docs/api/errors/)
- [Request and event limits](/docs/api/rate-limits/)
- [Retrying a single operation](/docs/api/idempotency/)
- [Tracking a queued operation](/docs/api/tasks/)
- [Stepping through campaign pages](/docs/api/pagination/)

API reference

- [Accessible advertising accounts](/docs/api/accounts/)
- [Looking up a campaign](/docs/api/campaigns/)
- [Creating campaigns and media](/docs/api/create-campaigns/)
- [Changing existing campaigns](/docs/api/manage-campaigns/)
- [Campaign and account statistics](/docs/api/stats/)
- [Targeting dictionaries and groups](/docs/api/targeting/)

Integrations

- [Receiving campaign events](/docs/api/webhooks/)
- [Sending confirmed conversions](/docs/api/conversions/)
- [API versions and changes](/docs/api/changelog/)

Machine-readable

- [OpenAPI · YAML](/docs/api/openapi.yaml)
- [OpenAPI · JSON](/docs/api/openapi.json)
- [llms.txt](/en/docs/llms.txt)
- [llms-full.txt](/en/docs/llms-full.txt)



[All documentation](/docs/) 
Get started

- [API quickstart](/docs/api/)
- [Keys and cabinet permissions](/docs/api/authentication/)
- [Using the API reference with an assistant](/docs/api/ai-assistants/)

Concepts

- [Reading API errors](/docs/api/errors/)
- [Request and event limits](/docs/api/rate-limits/)
- [Retrying a single operation](/docs/api/idempotency/)
- [Tracking a queued operation](/docs/api/tasks/)
- [Stepping through campaign pages](/docs/api/pagination/)

API reference

- [Accessible advertising accounts](/docs/api/accounts/)
- [Looking up a campaign](/docs/api/campaigns/)
- [Creating campaigns and media](/docs/api/create-campaigns/)
- [Changing existing campaigns](/docs/api/manage-campaigns/)
- [Campaign and account statistics](/docs/api/stats/)
- [Targeting dictionaries and groups](/docs/api/targeting/)

Integrations

- [Receiving campaign events](/docs/api/webhooks/)
- [Sending confirmed conversions](/docs/api/conversions/)
- [API versions and changes](/docs/api/changelog/)

Machine-readable

- [OpenAPI · YAML](/docs/api/openapi.yaml)
- [OpenAPI · JSON](/docs/api/openapi.json)
- [llms.txt](/en/docs/llms.txt)
- [llms-full.txt](/en/docs/llms-full.txt)



[Orbito Ads](/en/) [Documentation](/docs/) [API](/docs/api/)



Start cursor pagination with an empty cursor. Follow meta.next_cursor until it becomes null and keep the filters fixed. The published maximum is 500 campaign records per page.


[Markdown](/docs/api/pagination.md)



`GET /v1/campaigns` is the only list that pages. It has two modes.



## Cursor mode (use this)



Add `cursor=` (empty on the first call) and follow `meta.next_cursor` until it is `null`:


Example

```
curl -s "https://orbitoads.pro/api/v1/campaigns?limit=500&cursor=" -H "X-API-Key: $ORBITO_API_KEY"
```

Example

```
{
  "success": true,
  "data": [ { "ad_id": 90412, "account_id": 53, "…": "…" } ],
  "meta": { "limit": 500, "cursor": null, "next_cursor": "eyJhIjo1MywiaSI6OTAzMTB9", "hasMore": true }
}
```

Example

```
def all_campaigns():
    cursor = ""
    while True:
        r = requests.get("https://orbitoads.pro/api/v1/campaigns",
                         params={"limit": 500, "cursor": cursor},
                         headers={"X-API-Key": API_KEY}, timeout=60).json()
        yield from r["data"]
        cursor = r["meta"]["next_cursor"]
        if not cursor:
            break
```


- Treat the cursor as opaque. It is only valid with the same filters.
- Order is fixed (cabinet, then newest `ad_id` first), so pages stay stable while campaigns are added.
- No upper limit — this is how you read a cabinet with 100,000 campaigns.
- Filters `bot_username`, `promote_domain` and `type` always use cursor mode.
- Cursor mode leaves out a few heavy fields (targeting summary, media, last action). Use [`GET /v1/campaigns/{ad_id}`](/docs/api/campaigns/#doc-note-get-one-campaign) for the full record of one campaign.



## Offset mode (small cabinets)



Without `cursor`, the endpoint pages with `limit` and `offset` and can sort (`sortBy`, `sortOrder`). It reads at most **500 campaigns per cabinet** : past that `meta.truncated` is `true` and `meta.next_step` tells you to switch to cursor mode.


Example

```
"meta": { "total": 1240, "limit": 100, "offset": 0, "hasMore": true, "truncated": true,
          "next_step": "Use ?cursor= for full traversal beyond 500 campaigns per cabinet" }
```



## Page size



`limit` is 1–500, default 100.



## API reference

The full advertising contract requires a dedicated provider credential for this workspace. Use your Orbito API key for client calls. Account orders, provisioning and external billing are separate workflows.

Example · cURL

```
curl -X GET 'https://orbitoads.pro/api/v1/campaigns?account_id=7401&status=Active%2COn+Hold&limit=25&cursor=' \
  -H 'X-API-Key: YOUR_ORBITO_KEY'
```

Example · cURL

```
curl -X GET 'https://orbitoads.pro/api/v1/campaigns?account_id=7401&status=Active%2COn+Hold&limit=25&cursor=OPAQUE_NEXT_CURSOR' \
  -H 'X-API-Key: YOUR_ORBITO_KEY'
```



## Implementation notes

## Paging a large list

Start GET /api/v1/campaigns with cursor= and the required filters. For the next page reuse all filters and pass meta.next_cursor unchanged. Stop when it is null. limit ranges from 1 to 500 and defaults to 100.



## Ordering and offset limits

Cursor mode orders by cabinet and descending ad_id. bot_username, promote_domain and type also select this mode. Offset mode permits sortBy and sortOrder but reads at most 500 campaigns per cabinet. meta.truncated signals that a cursor is needed.



## Operations and fields

GET /api/v1/campaigns cursor meta.next_cursor limit offset



- GET /api/v1/campaigns
- cursor
- meta.next_cursor
- limit
- offset



## Request example

GET /api/v1/campaigns?limit=500&cursor= HTTP/1.1 Host: orbitoads.pro X-API-Key: {key}



## Schema fields and limits

This table follows the public v1 contract. Parameter and field names are case-sensitive. For each operation, the HTTP response codes distinguish a successful result, input validation and access checks. The linked specification defines the full request and response shapes.



## Protocol reference

| Method | Route | Parameters | Request content | Response codes |
| --- | --- | --- | --- | --- |
| GET | /api/v1/campaigns | account_id, status, title, bot_username, promote_domain, promote_domain_mode, type, limit, cursor, offset, sortBy, sortOrder | — | 200, 400, 401, 404, 429 |


Source · [Data source](https://adsly.pro/docs/api/openapi.yaml)

## Schema fields and limits · Stepping through campaign pages

| Field | Documented value |
| --- | --- |
| limit | 1 … 500 |
| limit = | 100 |
| cursor | string |
| meta.next_cursor | string \| null |
| sortBy = | date |
| sortOrder = | DESC |


Source · [Data source](https://adsly.pro/docs/api/pagination/)

## CampaignListItem

| Field | Field type |
| --- | --- |
| ad_id | integer |
| account_id | integer |
| title | string |
| text | string \| null |
| status | CampaignStatus |
| tme_path | string \| null |
| promote_url | string \| null |
| views | integer |
| opens | integer |
| clicks | integer |
| actions | integer |
| spent | Money |
| budget | Money |
| cpm | Money |
| cpc | Money |
| cpa | Money |
| ctr | string \| null |
| cvr | string \| null |
| date | string \| null |
| group_id | integer \| null |
| status_changed_at | string \| null · date-time |


Source · [Data source](https://adsly.pro/docs/api/openapi.yaml)



## Related reading

[Reading API errors](/docs/api/errors/)[Request and event limits](/docs/api/rate-limits/)[Retrying a single operation](/docs/api/idempotency/)[Tracking a queued operation](/docs/api/tasks/)



Reference revision 2026-10-08



[Previous topic**Tracking a queued operation**](/docs/api/tasks/)[Next topic**Accessible advertising accounts**](/docs/api/accounts/)

## Sources and data

- [openapi.yaml](https://orbitoads.pro/docs/api/openapi.yaml)
- [openapi.json](https://orbitoads.pro/docs/api/openapi.json)
