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ş")const URL = "https://panel.bulutegra.com/api/v1/siparisler";
const H = { Authorization: `Bearer ${process.env.BULUTEGRA_ANAHTAR}` };
let imlec = 0, tumu = [];
while (true) {
const q = new URLSearchParams({ baslangic: "2026-10-01", limit: "200", imlec: String(imlec) });
const d = await (await fetch(`${URL}?${q}`, { headers: H })).json();
tumu.push(...d.siparisler);
if (d.sonraki_imlec === null) break;
imlec = d.sonraki_imlec;
}
console.log(tumu.length, "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