Pagination
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.
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:
curl -s "https://orbitoads.pro/api/v1/campaigns?limit=500&cursor=" -H "X-API-Key: $ORBITO_API_KEY"{
"success": true,
"data": [ { "ad_id": 90412, "account_id": 53, "…": "…" } ],
"meta": { "limit": 500, "cursor": null, "next_cursor": "eyJhIjo1MywiaSI6OTAzMTB9", "hasMore": true }
}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_idfirst), 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_domainandtypealways use cursor mode. - Cursor mode leaves out a few heavy fields (targeting summary, media, last action). Use
GET /v1/campaigns/{ad_id}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.
"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.
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'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
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
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
Reference revision