Orbitoads
Browse documentation

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.

Markdown

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} 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

MethodRouteParametersRequest contentResponse codes
GET/api/v1/campaignsaccount_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

FieldDocumented value
limit1 … 500
limit =100
cursorstring
meta.next_cursorstring | null
sortBy =date
sortOrder =DESC

Source · Data source

CampaignListItem

FieldField type
ad_idinteger
account_idinteger
titlestring
textstring | null
statusCampaignStatus
tme_pathstring | null
promote_urlstring | null
viewsinteger
opensinteger
clicksinteger
actionsinteger
spentMoney
budgetMoney
cpmMoney
cpcMoney
cpaMoney
ctrstring | null
cvrstring | null
datestring | null
group_idinteger | null
status_changed_atstring | null · date-time

Source · Data source

Reference revision

Pro Panel
Pro Panel