Skip to content
TR Open panel
Getting started

Pagination

List endpoints (siparisler, urunler) are cursor-paginated. The response carries sonraki_imlec; pass it as the imlec parameter to get the next page. When sonraki_imlec is null, you are on the last page.

import os, requests

URL = "https://panel.bulutegra.com/api/v1/siparisler"
H = {"Authorization": "Bearer " + os.environ["BULUTEGRA_ANAHTAR"]}

imlec, tumu = 0, []
while True:
    r = requests.get(URL, headers=H, params={"baslangic": "2026-10-01", "limit": 200, "imlec": imlec}, timeout=30)
    r.raise_for_status()
    d = r.json()
    tumu += d["siparisler"]
    if d["sonraki_imlec"] is None:
        break
    imlec = d["sonraki_imlec"]
print(len(tumu), "sipariş")
i
The cursor follows insertion order; records created while you page through are not skipped — they appear on later pages.

Last updated: 2026-10-07