{
  "openapi": "3.1.0",
  "info": {
    "title": "igsub.me Free API",
    "version": "1.3.0",
    "description": "A 100% free (no fees, no paid plans, no API key), public, browser-only JSON API for growing YouTube channels (subscribers, likes, comments, comment likes) and, when enabled, Instagram / TikTok / X / Facebook posts. There is no API key: your web page calls the API directly with fetch() (CORS), the visitor signs in with their own Google account, and every order spends that visitor's free credits. It is the same API our Blogger theme and our own sites use, so you can build a complete site with it: home page with order form, channel page, video page, order tracking page and account page. Every order is protected by hCaptcha.\n\nRules:\n- Base URL is always https://igsub.me — every request goes there. All responses are JSON (UTF-8).\n- Send the header X-FS-Mode: token on every request and never send cookies (credentials: \"omit\").\n- Without sign-in a visitor can find a channel/video and send 100 free YouTube subscribers once per channel (hCaptcha required). Everything else — likes, comments, other platforms, larger quantities, account, credits, history — requires Google sign-in.\n- After sign-in send Authorization: Bearer <session_token> on every request. The token is valid 30 days.\n- Browser only: requests must come from a real web page (the browser sends Origin, Sec-Fetch-Mode: cors and an OPTIONS preflight). Server-side calls (PHP, cURL, Python, Node, bots) get 403 browser_required.\n- Use POST with Content-Type: application/json for request bodies; unknown body fields are rejected.\n- hCaptcha is required for every order (body field captcha_token) and for invite codes and channel credits (header X-FS-Captcha). Sign-in has no captcha. You need no captcha key: show https://igsub.me/captcha/frame.html in an iframe (it opens in the visitor's browser language; add ?hl=xx to force one), the visitor solves it there, and you receive the token via postMessage. One token = one call. Never put any secret in your page; none is needed.\n- Errors are { \"kod\": \"<code>\", \"error\": \"<English message>\", \"hata\": \"<same>\" } with a matching HTTP status. Translate on your side by kod.\n- The Accept-Language header (sent automatically by browsers) selects the language of YouTube titles/descriptions where available.\n- Accounts and credits are shared: a user who signs in on your site has the same account and balance as on igsub.me.\n\nGames:\n- Signed-in users can play 80+ games with their free credits: single-request games (coin flip, dice, limbo, crash, plinko, wheel, roulette, 12 slot themes, 30 tumble slots, keno, sic bo, baccarat, dragon tiger, horse race, darts, money wheel …), step-by-step games (blackjack, mines, hi-lo, video poker, 14 chain games) plus an hourly wheel, a daily streak, a daily raffle and a weekly tournament.\n- Credits are free: they can never be bought, sold or cashed out. Every result is drawn on the server with a crypto RNG and every game returns at most 97% (payout tables in GET /api/oyun), so playing slowly uses credits up — it never creates money.\n- Bets are 10–2000 credits per hand. POST /api/oyun/oyna plays one hand in one call; POST /api/oyun/hamle runs step-by-step games (hamle \"basla\" first, then moves, until durum.bitti is true).\n- Jackpots on every game: Grand 500× / Major 150× / Minor 50× / Mini 10× of the bet (bet counted up to 2000) plus a progressive pool that grows with every bet — the whole pool is paid at a bet of 100 or more.\n- Weekly tournament (Monday–Sunday UTC): each player's best multiplier on a hand with a bet of at least 100 counts; prizes 25000 / 10000 / 5000 credits for places 1–3 and 1000 for places 4–10, paid automatically.\n- Daily streak: 100, 200, 300, 500, 750, 1000 and 2500 credits (day 7), one claim per UTC day; missing a day restarts at day 1.\n- Without sign-in your page can show the rules (GET /api/oyun), the live feed and jackpot pools (GET /api/oyun/akis, ?hafif=1 for a ticker) and the tournament (GET /api/oyun/turnuva). Everything else needs the session token.\n- Limits: 60 hands per minute and 150 moves per minute per user, plus the usual 90 requests per minute per user for external sites.\n- Game pages on igsub.me: https://igsub.me/{lang}/games (lobby) and https://igsub.me/{lang}/games/{key} (e.g. plinko, crash, mines, blackjack, tb-thunder, zn-towers, slots-classic) — link there for the full animated games.\n\nCredits:\n- Without sign-in: 100 free YouTube subscribers once per channel (max 1 free order per hour per visitor). No credits needed.\n- Credits are free. They are not money and cannot be bought or withdrawn.\n- Every signed-in user gets free credits every hour (gunluk_hak, normally 1000) plus a welcome bonus on the first sign-in.\n- Each friend who signs in with the user's invite link/code gives +1000 credits. Invite link: https://igsub.me/?ref=<referans_kod> (or pass ref to /api/auth/device/start on your own site).\n- Each extra YouTube channel on the user's Google account adds +1000 credits per hour (POST /api/kredi/kanal-topla once per hour).\n- An order costs adet × kredi_carpani credits. If dispatch fails, credits are refunded automatically (iade).\n- Some services unlock only after a number of invites (min_referans).\n\nEarn credits with your site:\n- Put your own invite code on your site and earn +1000 credits for every new user who signs in there.\n- Get your code: sign in on igsub.me (or on your own site) and read referans_kod from GET /api/kredi — it is also shown on the account page.\n- Send it with every sign-in (no captcha needed): POST /api/auth/device/start?ref=YOURCODE. In the example page just set window.FS_REF = 'YOURCODE'.\n- If a visitor arrives with someone else's invite link (?ref=…), that link wins; otherwise your code is used.\n- A user can be invited only once (first invite counts). Limits against abuse: max 30 credited sign-ins per code per day and max 2 per network (IP) per day.\n- Spend the credits like any user: orders for your own channels on any of our sites. Credits are free and cannot be sold or withdrawn.\n- Your visitors also get their own invite code and link (https://igsub.me/?ref=THEIRCODE) to earn credits themselves.\n\nFree 100 subscribers (no sign-in):\n- Any visitor can send 100 free YouTube subscribers without signing in — no account, no credits, no API key.\n- Step 1: POST /api/resolve { \"q\": \"<channel link, @handle or name>\" } → channel_id (no Authorization header needed).\n- Step 2: show the hCaptcha frame (https://igsub.me/captcha/frame.html) and wait for the token.\n- Step 3: POST /api/order { \"tip\": \"sub\", \"hedef_kanal\": \"<channel_id>\", \"captcha_token\": \"<token>\", \"fingerprint\": \"<stable random id>\" } → order_id. Quantity is always 100.\n- Step 4: GET /api/order/{order_id} every 10 s to show live progress (no sign-in needed).\n- Limits: once per channel (lifetime), 1 free order per hour per visitor (IP + fingerprint), 1 free order per hour per channel, and a shared hourly cap for all external sites. When a limit is hit the API answers 401 giris_gerekli or 429 kanal_cooldown — then offer Google sign-in (free credits, every service).\n- Only tip \"sub\" works without sign-in; likes, comments, other platforms and quantities above 100 need sign-in.\n\nhCaptcha:\n- hCaptcha is required on: POST /api/order (body field captcha_token); POST /api/referans/uygula (header X-FS-Captcha); POST /api/kredi/kanal-topla (header X-FS-Captcha). Sign-in (POST /api/auth/device/start) does not need a captcha.\n- No captcha key is needed on your site. Show https://igsub.me/captcha/frame.html in an iframe (about 400x560 px). The visitor solves the check there (igsub.me domain, so our site key is valid everywhere).\n- When solved the frame calls window.parent.postMessage({ fsCaptcha: \"<token>\" }, \"*\") from origin https://igsub.me; { fsCaptchaExpired: true } if the token expired before use. Always check event.origin === \"https://igsub.me\".\n- A token is valid for one call only; get a new one for each order / invite / credit claim. Missing token → 400 captcha_yok, invalid/used/expired → 400 captcha_ret.\n- Frame query parameters: hl — Language of the check. Default (omitted or \"auto\"): the visitor's browser language, so nobody is forced into English. Force one with an hCaptcha language code: en, tr, es, pt, pt-BR, fr, de, it, nl, pl, ru, uk, ar, fa, hi, id, ms, th, vi, ja, ko, zh-CN, zh-TW, ro, cs, el, he, hu, sv, da, fi, no, bg, sr, hr, sk, sl, lt, lv, et and more. Unknown codes fall back to English. | theme — \"dark\" for a dark check that matches dark mode; default light.",
    "x-free-tier": {
      "without_sign_in": "100 YouTube subscribers once per channel (tip sub), hCaptcha required",
      "limits": [
        "once per channel",
        "1 per hour per visitor (IP + fingerprint)",
        "1 per hour per channel",
        "shared hourly cap for external sites"
      ],
      "endpoints": [
        "POST /api/resolve",
        "GET /api/channel/{channelId}",
        "GET /api/video/{videoId}",
        "POST /api/order",
        "GET /api/order/{order_id}"
      ],
      "signed_in": "all services with free hourly credits"
    },
    "x-updated": "2026-10-30",
    "x-games": {
      "rules": [
        "Signed-in users can play 80+ games with their free credits: single-request games (coin flip, dice, limbo, crash, plinko, wheel, roulette, 12 slot themes, 30 tumble slots, keno, sic bo, baccarat, dragon tiger, horse race, darts, money wheel …), step-by-step games (blackjack, mines, hi-lo, video poker, 14 chain games) plus an hourly wheel, a daily streak, a daily raffle and a weekly tournament.",
        "Credits are free: they can never be bought, sold or cashed out. Every result is drawn on the server with a crypto RNG and every game returns at most 97% (payout tables in GET /api/oyun), so playing slowly uses credits up — it never creates money.",
        "Bets are 10–2000 credits per hand. POST /api/oyun/oyna plays one hand in one call; POST /api/oyun/hamle runs step-by-step games (hamle \"basla\" first, then moves, until durum.bitti is true).",
        "Jackpots on every game: Grand 500× / Major 150× / Minor 50× / Mini 10× of the bet (bet counted up to 2000) plus a progressive pool that grows with every bet — the whole pool is paid at a bet of 100 or more.",
        "Weekly tournament (Monday–Sunday UTC): each player's best multiplier on a hand with a bet of at least 100 counts; prizes 25000 / 10000 / 5000 credits for places 1–3 and 1000 for places 4–10, paid automatically.",
        "Daily streak: 100, 200, 300, 500, 750, 1000 and 2500 credits (day 7), one claim per UTC day; missing a day restarts at day 1.",
        "Without sign-in your page can show the rules (GET /api/oyun), the live feed and jackpot pools (GET /api/oyun/akis, ?hafif=1 for a ticker) and the tournament (GET /api/oyun/turnuva). Everything else needs the session token.",
        "Limits: 60 hands per minute and 150 moves per minute per user, plus the usual 90 requests per minute per user for external sites.",
        "Game pages on igsub.me: https://igsub.me/{lang}/games (lobby) and https://igsub.me/{lang}/games/{key} (e.g. plinko, crash, mines, blackjack, tb-thunder, zn-towers, slots-classic) — link there for the full animated games."
      ],
      "catalog": [
        {
          "sayfa": "coin",
          "oyun": "coin",
          "tur": "single",
          "parametreler": "secim: heads | tails",
          "odeme": "1.94× on a correct call. sonuc = side that landed."
        },
        {
          "sayfa": "dice",
          "oyun": "dice",
          "tur": "single",
          "parametreler": "hedef: 2–95",
          "odeme": "Roll deger 0.00–99.99; wins when deger < hedef. Pays floor(97 / hedef, 4 decimals)× (hedef 50 → 1.94×, hedef 2 → 48.5×)."
        },
        {
          "sayfa": "limbo",
          "oyun": "limbo",
          "tur": "single",
          "parametreler": "x: 1.01–1000",
          "odeme": "deger = drawn multiplier (P(deger ≥ x) = 0.97 / x); wins x× when deger ≥ x."
        },
        {
          "sayfa": "crash",
          "oyun": "crash",
          "tur": "single",
          "parametreler": "x: 1.01–1000 (auto cash-out)",
          "odeme": "Same math as limbo; deger = crash point."
        },
        {
          "sayfa": "plinko",
          "oyun": "plinko",
          "tur": "single",
          "parametreler": "satir: 8 | 12 | 16 · risk: low | medium | high · adet: 1–10 balls",
          "odeme": "indeks = pocket (number of right bounces), yol = path (0 left, 1 right). Table plinko[\"<satir><risk>\"]; up to 980×."
        },
        {
          "sayfa": "wheel",
          "oyun": "wheel",
          "tur": "single",
          "parametreler": "risk: low | medium | high",
          "odeme": "indeks = slice; table wheel[risk] (high: one 29.1× slice of 30)."
        },
        {
          "sayfa": "roulette",
          "oyun": "roulette",
          "tur": "single",
          "parametreler": "secim: red | black | even | odd | low | high | dozen1–3 | col1–3 | n:0–n:36",
          "odeme": "European wheel (37 pockets). Even-money bets 2×, dozens/columns 3×, single number 36×; 0 loses all outside bets. deger = number, sonuc = green | red | black."
        },
        {
          "sayfa": "slots-<theme>",
          "oyun": "slots",
          "tur": "single",
          "parametreler": "secim: theme (12, see slot themes; empty = classic)",
          "odeme": "sonuc = winning row name (e.g. diamond, seven, jackpot, pair) or \"lose\"; tables slot / slot_tema."
        },
        {
          "sayfa": "scratch",
          "oyun": "scratch",
          "tur": "single",
          "parametreler": "—",
          "odeme": "sonuc x10 | x5 | x3 | x2 | x1 | lose."
        },
        {
          "sayfa": "rps",
          "oyun": "rps",
          "tur": "single",
          "parametreler": "secim: rock | paper | scissors",
          "odeme": "sonuc / indeks = server hand. Win 1.91×, draw 1× (bet back)."
        },
        {
          "sayfa": "lucky",
          "oyun": "lucky",
          "tur": "single",
          "parametreler": "hedef: 1–10",
          "odeme": "deger = drawn number; 9.7× when equal."
        },
        {
          "sayfa": "cups",
          "oyun": "cups",
          "tur": "single",
          "parametreler": "hedef: 1–3",
          "odeme": "indeks = cup with the ball; 2.91× when equal."
        },
        {
          "sayfa": "baccarat",
          "oyun": "baccarat",
          "tur": "single",
          "parametreler": "secim: player | banker | tie",
          "odeme": "Player 1.95×, banker 1.90×, tie 9× (player/banker bets returned on a tie). kartlar = [player cards, banker cards], deger = player points, indeks = banker points, sonuc = winner."
        },
        {
          "sayfa": "keno",
          "oyun": "keno",
          "tur": "single",
          "parametreler": "secim: 1–10 different numbers 1–40, comma separated",
          "odeme": "sayilar = 10 drawn numbers, indeks = hits; pays keno[picks][hits] (up to 980×)."
        },
        {
          "sayfa": "sicbo",
          "oyun": "sicbo",
          "tur": "single",
          "parametreler": "secim: small | big | odd | even | triple_any | triple:N | double:N (N 1–6) | total:4–17",
          "odeme": "sayilar = 3 dice, deger = total. small/big/odd/even lose on any triple. Table sicbo (up to 209.52×)."
        },
        {
          "sayfa": "dragontiger",
          "oyun": "dragontiger",
          "tur": "single",
          "parametreler": "secim: dragon | tiger | tie",
          "odeme": "One card each (kartlar [[dragon], [tiger]]), higher rank wins. Dragon/tiger 2.10× (lose on a tie), tie 12.61×."
        },
        {
          "sayfa": "ou7",
          "oyun": "ou7",
          "tur": "single",
          "parametreler": "secim: under | over | seven",
          "odeme": "sayilar = 2 dice, deger = sum. Under/over 7: 2.32×, exactly 7: 5.82×."
        },
        {
          "sayfa": "horse",
          "oyun": "horse",
          "tur": "single",
          "parametreler": "hedef: horse 1–6",
          "odeme": "sayilar = finish order, indeks = winner. Pays at[hedef − 1] (3.23× … 16.16×); chances at_olas."
        },
        {
          "sayfa": "darts",
          "oyun": "darts",
          "tur": "single",
          "parametreler": "risk: low | medium | high",
          "odeme": "sonuc = zone (bull, inner, outer, triple, double, single, miss), deger = angle 0–359 for the animation. Table dart[risk]."
        },
        {
          "sayfa": "moneywheel",
          "oyun": "moneywheel",
          "tur": "single",
          "parametreler": "secim: \"1\" | \"2\" | \"5\" | \"10\" | \"20\" | \"40\"",
          "odeme": "indeks = slice of money_dilim (54 slices); pays money_carpan[secim] when that value lands."
        },
        {
          "sayfa": "tb-<theme>",
          "oyun": "tumble",
          "tur": "tumble",
          "parametreler": "secim: tumble theme (30, see tumble themes) · bonus: true to buy free spins",
          "odeme": "tur = TumbleRound (every spin and cascade). Scatter engine (sc-*): 6×5, 8+ of a symbol anywhere pays, multiplier orbs; 4+ scatters → 10 free spins (+5 on 3+ during free spins). Cluster engine (cl-*): 7×7, 5+ connected pay, cell multipliers double on repeat wins; 3+ scatters → 10 free spins. Round cap 5000× bet."
        },
        {
          "sayfa": "blackjack",
          "oyun": "blackjack",
          "tur": "stateful",
          "parametreler": "basla (bahis) → hit | stand | double",
          "odeme": "Infinite deck, dealer hits soft 17, peeks with A/10 up. Win 2×, push 1×, blackjack 2× (pays 1:1), no split, double on the first two cards only."
        },
        {
          "sayfa": "mines",
          "oyun": "mines",
          "tur": "stateful",
          "parametreler": "basla (bahis, mayin 1–24) → ac (hucre 0–24) … → nakit",
          "odeme": "Cash out at 0.97 × 1/P(survive) (3 mines: 1.10×, 1.25×, 1.44× …). Hitting a mine loses; opening every safe cell cashes out automatically."
        },
        {
          "sayfa": "hilo",
          "oyun": "hilo",
          "tur": "stateful",
          "parametreler": "basla (bahis) → yuksek | dusuk | atla … → nakit",
          "odeme": "yuksek = same or higher (strictly higher on an Ace), dusuk = same or lower (strictly lower on a King). Multiplier 0.97 × Π 1/p; p_yuksek / p_dusuk show the chances. atla skips a card for free."
        },
        {
          "sayfa": "videopoker",
          "oyun": "videopoker",
          "tur": "stateful",
          "parametreler": "basla (bahis) → cek (tut[5])",
          "odeme": "Jacks or Better 7/5: royal_flush 800×, straight_flush 50×, four_kind 25×, full_house 7×, flush 5×, straight 4×, three_kind 3×, two_pair 2×, jacks_better 1×."
        },
        {
          "sayfa": "zn-<key>",
          "oyun": "zn-<key>",
          "tur": "chain",
          "parametreler": "basla (bahis, risk) → ac (hucre for \"kule\" games) … → nakit",
          "odeme": "14 chain games (see chain games). After s safe steps: floor(0.97 × (n / k)^s, 2 decimals)×. Reaching max_adim cashes out automatically."
        },
        {
          "sayfa": "raffle",
          "oyun": "—",
          "tur": "single",
          "parametreler": "POST /api/cekilis/bilet",
          "odeme": "Daily raffle: winner gets 97% of all ticket credits."
        }
      ],
      "slot_themes": [
        {
          "secim": "classic",
          "page": "slots-classic",
          "pays": "classic (top 50×)"
        },
        {
          "secim": "candy",
          "page": "slots-candy",
          "pays": "candy (top 10×, low volatility)"
        },
        {
          "secim": "space",
          "page": "slots-space",
          "pays": "space (top 100×)"
        },
        {
          "secim": "gems",
          "page": "slots-gems",
          "pays": "gems (top 200×)"
        },
        {
          "secim": "egypt",
          "page": "slots-egypt",
          "pays": "egypt (top 500×, high volatility)"
        },
        {
          "secim": "lucky7",
          "page": "slots-lucky7",
          "pays": "pays like classic"
        },
        {
          "secim": "fruitstand",
          "page": "slots-fruitstand",
          "pays": "pays like candy"
        },
        {
          "secim": "neon",
          "page": "slots-neon",
          "pays": "pays like space"
        },
        {
          "secim": "ocean",
          "page": "slots-ocean",
          "pays": "pays like gems"
        },
        {
          "secim": "samurai",
          "page": "slots-samurai",
          "pays": "pays like egypt"
        },
        {
          "secim": "western",
          "page": "slots-western",
          "pays": "pays like space"
        },
        {
          "secim": "royal",
          "page": "slots-royal",
          "pays": "pays like gems"
        }
      ],
      "tumble_themes": [
        {
          "secim": "thunder",
          "page": "tb-thunder",
          "profile": "sc-high"
        },
        {
          "secim": "candy",
          "page": "tb-candy",
          "profile": "sc-mid"
        },
        {
          "secim": "fruit",
          "page": "tb-fruit",
          "profile": "sc-low"
        },
        {
          "secim": "dragon",
          "page": "tb-dragon",
          "profile": "sc-high"
        },
        {
          "secim": "ocean",
          "page": "tb-ocean",
          "profile": "sc-mid"
        },
        {
          "secim": "cosmic",
          "page": "tb-cosmic",
          "profile": "sc-mid"
        },
        {
          "secim": "jungle",
          "page": "tb-jungle",
          "profile": "sc-low"
        },
        {
          "secim": "desert",
          "page": "tb-desert",
          "profile": "sc-high"
        },
        {
          "secim": "aztec",
          "page": "tb-aztec",
          "profile": "sc-high"
        },
        {
          "secim": "viking",
          "page": "tb-viking",
          "profile": "sc-mid"
        },
        {
          "secim": "samurai",
          "page": "tb-samurai",
          "profile": "sc-high"
        },
        {
          "secim": "safari",
          "page": "tb-safari",
          "profile": "sc-low"
        },
        {
          "secim": "garden",
          "page": "tb-garden",
          "profile": "sc-low"
        },
        {
          "secim": "casino",
          "page": "tb-casino",
          "profile": "sc-mid"
        },
        {
          "secim": "xmas",
          "page": "tb-xmas",
          "profile": "sc-mid"
        },
        {
          "secim": "monster",
          "page": "tb-monster",
          "profile": "sc-high"
        },
        {
          "secim": "sugar",
          "page": "tb-sugar",
          "profile": "cl-mid"
        },
        {
          "secim": "donut",
          "page": "tb-donut",
          "profile": "cl-low"
        },
        {
          "secim": "crystal",
          "page": "tb-crystal",
          "profile": "cl-high"
        },
        {
          "secim": "farm",
          "page": "tb-farm",
          "profile": "cl-low"
        },
        {
          "secim": "neon",
          "page": "tb-neon",
          "profile": "cl-mid"
        },
        {
          "secim": "frozen",
          "page": "tb-frozen",
          "profile": "cl-mid"
        },
        {
          "secim": "pirate",
          "page": "tb-pirate",
          "profile": "cl-high"
        },
        {
          "secim": "spooky",
          "page": "tb-spooky",
          "profile": "cl-high"
        },
        {
          "secim": "bubble",
          "page": "tb-bubble",
          "profile": "cl-low"
        },
        {
          "secim": "toybox",
          "page": "tb-toybox",
          "profile": "cl-mid"
        },
        {
          "secim": "gemmine",
          "page": "tb-gemmine",
          "profile": "cl-high"
        },
        {
          "secim": "bakery",
          "page": "tb-bakery",
          "profile": "cl-low"
        },
        {
          "secim": "arcade",
          "page": "tb-arcade",
          "profile": "cl-mid"
        },
        {
          "secim": "ufo",
          "page": "tb-ufo",
          "profile": "cl-high"
        }
      ],
      "chain_games": [
        {
          "oyun": "zn-towers",
          "mode": "kule",
          "risk": "easy 4/3 · medium 3/2 · hard 2/1 · expert 3/1",
          "max_adim": 9
        },
        {
          "oyun": "zn-dragontower",
          "mode": "kule",
          "risk": "easy 4/3 · medium 3/2 · hard 2/1 · expert 4/1",
          "max_adim": 9
        },
        {
          "oyun": "zn-doors",
          "mode": "kule",
          "risk": "easy 3/2 · medium 2/1 · hard 3/1",
          "max_adim": 10
        },
        {
          "oyun": "zn-defuse",
          "mode": "kule",
          "risk": "easy 4/3 · medium 4/2 · hard 4/1",
          "max_adim": 8
        },
        {
          "oyun": "zn-ladder",
          "mode": "kule",
          "risk": "easy 5/4 · medium 5/3 · hard 5/2",
          "max_adim": 12
        },
        {
          "oyun": "zn-bridge",
          "mode": "kule",
          "risk": "easy 3/2 · medium 2/1 · hard 3/1",
          "max_adim": 10
        },
        {
          "oyun": "zn-icelake",
          "mode": "kule",
          "risk": "easy 5/4 · medium 4/2 · hard 5/1",
          "max_adim": 10
        },
        {
          "oyun": "zn-minecart",
          "mode": "kule",
          "risk": "easy 4/3 · medium 3/2 · hard 2/1",
          "max_adim": 10
        },
        {
          "oyun": "zn-pump",
          "mode": "tek",
          "risk": "low 20/19 · medium 10/9 · high 5/4 · extreme 3/2",
          "max_adim": 40
        },
        {
          "oyun": "zn-chicken",
          "mode": "tek",
          "risk": "easy 25/24 · medium 12/11 · hard 6/5 · daredevil 3/2",
          "max_adim": 30
        },
        {
          "oyun": "zn-streak",
          "mode": "tek",
          "risk": "normal 2/1",
          "max_adim": 20
        },
        {
          "oyun": "zn-penalty",
          "mode": "tek",
          "risk": "easy 5/4 · medium 5/3 · hard 5/2",
          "max_adim": 10
        },
        {
          "oyun": "zn-spacejump",
          "mode": "tek",
          "risk": "low 10/9 · medium 5/4 · high 3/2",
          "max_adim": 25
        },
        {
          "oyun": "zn-heist",
          "mode": "tek",
          "risk": "easy 6/5 · medium 4/3 · hard 2/1",
          "max_adim": 15
        }
      ],
      "pages": "https://igsub.me/{lang}/games/{page}"
    },
    "x-changelog": [
      {
        "version": "1.3.0",
        "date": "2026-10-30",
        "changes": [
          "New \"Games & jackpots\" API: GET /api/oyun (rules and payout tables), POST /api/oyun/oyna (single-request games: coin, dice, limbo, crash, plinko, wheel, roulette, slots with 12 themes, 30 tumble slots, keno, sic bo, baccarat and more), POST /api/oyun/hamle + GET /api/oyun/oturum (step-by-step games: blackjack, mines, hi-lo, video poker and 14 chain games), GET /api/oyun/akis (live feed, statistics and jackpot pools).",
          "Four jackpot tiers on every game: Grand 500× / Major 150× / Minor 50× / Mini 10× of the bet (bet counted up to 2000) plus a progressive pool that grows with every bet (whole pool at bet ≥ 100).",
          "New \"Wheel, streak, raffle & tournament\" API: hourly lucky wheel (GET /api/cark, POST /api/cark/cevir), 7-day daily streak (GET /api/seri, POST /api/seri/al), daily raffle (GET /api/cekilis, POST /api/cekilis/bilet) and the weekly tournament (GET /api/oyun/turnuva).",
          "GET /api/oyun, GET /api/oyun/akis and GET /api/oyun/turnuva work without sign-in on external sites; all other game calls need the session token.",
          "Game limits: bets 10–2000 credits, 60 hands per minute per user (POST /api/oyun/oyna), 150 moves per minute (POST /api/oyun/hamle). Credits are free and can never be bought or cashed out; every game returns at most 97%.",
          "New game catalog section, data models (GameResult, TumbleRound, GameSession, GameFeed, JackpotPool, Tournament, Streak) and error codes (yetersiz_kredi, bahis, gecersiz, oturum_yok_oyun, alindi, cark_bekle, limit).",
          "Example page and Node.js version: new Games page (live jackpots, weekly tournament, daily streak, coin flip / dice / limbo demo)."
        ]
      },
      {
        "version": "1.2.0",
        "date": "2026-10-25",
        "changes": [
          "Sign-in (POST /api/auth/device/start) no longer needs hCaptcha. hCaptcha stays required for orders, invite codes and channel credits.",
          "Admin statistics per external site (requests, sign-ins, orders).",
          "GET /api/son-siparisler now returns every order completed in the last 24 hours (up to 100).",
          "New order status \"partial\" (durum \"kismi\"): finished with only part delivered; unused credits are refunded automatically.",
          "New download: Node.js version of the example site (React + Vite, /developers/nodejs-starter-kit.zip)."
        ]
      },
      {
        "version": "1.1.0",
        "date": "2026-10-25",
        "changes": [
          "hCaptcha is required for every order (captcha_token) and for sign-in start, invite codes and channel credits (X-FS-Captcha header). Solved in the igsub.me frame https://igsub.me/captcha/frame.html — no keys needed.",
          "Site owners can pass their own invite code (?ref=CODE / window.FS_REF) and earn +1000 credits per new user who signs in on their site.",
          "The example page (starter-kit.html) is now identical to our Blogger theme.",
          "Cross-site API is served only from https://igsub.me.",
          "Free without sign-in: 100 YouTube subscribers once per channel (resolve, channel, video, order and tracking work without sign-in; hCaptcha required).",
          "The hCaptcha frame opens in the visitor's browser language by default (?hl=auto); ?hl=xx forces a language."
        ]
      },
      {
        "version": "1.0.0",
        "date": "2026-10-25",
        "changes": [
          "First public release: no API key, browser-only CORS, Google sign-in, English errors (kod + error) and English order status."
        ]
      }
    ],
    "termsOfService": "https://igsub.me/legal/terms",
    "contact": {
      "name": "igsub.me",
      "url": "https://igsub.me/developers"
    },
    "x-pricing": "Free. No fees, no paid plans, no API key."
  },
  "servers": [
    {
      "url": "https://igsub.me",
      "description": "Production (browser CORS only)"
    }
  ],
  "externalDocs": {
    "url": "https://igsub.me/developers",
    "description": "Full HTML documentation"
  },
  "tags": [
    {
      "name": "Site & catalog",
      "description": "Public information. No sign-in needed."
    },
    {
      "name": "Authentication",
      "description": "Google sign-in with the YouTube TV device code flow. Produces the session token used everywhere else."
    },
    {
      "name": "Account & credits",
      "description": "The signed-in user, credit balance, credit history, invites and extra-channel credits."
    },
    {
      "name": "YouTube lookup",
      "description": "Find channels and videos from any link, @handle or name. Needed to get the channel_id / video_id that orders use."
    },
    {
      "name": "Orders",
      "description": "Create orders, follow live progress and list the user's history."
    },
    {
      "name": "Social proof",
      "description": "Recent completed deliveries (masked names) for a live activity feed."
    },
    {
      "name": "Games & jackpots",
      "description": "Play with free credits: 80+ games (single-request games, tumble slots, step-by-step card/mines/chain games), four jackpot tiers with a progressive pool and a live feed. Every result is decided on the server with a crypto RNG and every game returns at most 97%. Credits are free and can never be bought or cashed out. Bets 10–2000. Rules, payout tables and the live feed are public; playing needs sign-in."
    },
    {
      "name": "Wheel, streak, raffle & tournament",
      "description": "Extra free credits and competitions: hourly lucky wheel, 7-day daily streak, daily raffle and the weekly tournament (highest multiplier wins). The tournament is public; the rest needs sign-in."
    },
    {
      "name": "hCaptcha",
      "description": "hCaptcha is required on: POST /api/order (body field captcha_token); POST /api/referans/uygula (header X-FS-Captcha); POST /api/kredi/kanal-topla (header X-FS-Captcha). Sign-in (POST /api/auth/device/start) does not need a captcha. No captcha key is needed on your site. Show https://igsub.me/captcha/frame.html in an iframe (about 400x560 px). The visitor solves the check there (igsub.me domain, so our site key is valid everywhere). When solved the frame calls window.parent.postMessage({ fsCaptcha: \"<token>\" }, \"*\") from origin https://igsub.me; { fsCaptchaExpired: true } if the token expired before use. Always check event.origin === \"https://igsub.me\". A token is valid for one call only; get a new one for each order / invite / credit claim. Missing token → 400 captcha_yok, invalid/used/expired → 400 captcha_ret. Frame query parameters: hl — Language of the check. Default (omitted or \"auto\"): the visitor's browser language, so nobody is forced into English. Force one with an hCaptcha language code: en, tr, es, pt, pt-BR, fr, de, it, nl, pl, ru, uk, ar, fa, hi, id, ms, th, vi, ja, ko, zh-CN, zh-TW, ro, cs, el, he, hu, sv, da, fi, no, bg, sr, hr, sk, sl, lt, lv, et and more. Unknown codes fall back to English. | theme — \"dark\" for a dark check that matches dark mode; default light."
    }
  ],
  "x-hcaptcha": {
    "frame_url": "https://igsub.me/captcha/frame.html",
    "iframe_size": "400x560",
    "query": {
      "hl": "Language of the check. Default (omitted or \"auto\"): the visitor's browser language, so nobody is forced into English. Force one with an hCaptcha language code: en, tr, es, pt, pt-BR, fr, de, it, nl, pl, ru, uk, ar, fa, hi, id, ms, th, vi, ja, ko, zh-CN, zh-TW, ro, cs, el, he, hu, sv, da, fi, no, bg, sr, hr, sk, sl, lt, lv, et and more. Unknown codes fall back to English.",
      "theme": "\"dark\" for a dark check that matches dark mode; default light."
    },
    "message_origin": "https://igsub.me",
    "message_success": {
      "fsCaptcha": "<token>"
    },
    "message_expired": {
      "fsCaptchaExpired": true
    },
    "required_on": [
      {
        "endpoint": "POST /api/order",
        "send_as": "body field captcha_token"
      },
      {
        "endpoint": "POST /api/referans/uygula",
        "send_as": "header X-FS-Captcha"
      },
      {
        "endpoint": "POST /api/kredi/kanal-topla",
        "send_as": "header X-FS-Captcha"
      }
    ],
    "one_token_per_call": true,
    "errors": {
      "captcha_yok": "token missing (400)",
      "captcha_ret": "token invalid, expired or already used (400)"
    },
    "example_js": "window.addEventListener('message', e => { if (e.origin === 'https://igsub.me' && e.data && e.data.fsCaptcha) send(e.data.fsCaptcha); });"
  },
  "paths": {
    "/api/site": {
      "get": {
        "operationId": "site",
        "tags": [
          "Site & catalog"
        ],
        "summary": "Site information",
        "description": "Name, languages and public settings of the API host. Call it once on page load if you want to show the brand or language list.\n\nOther fields (analytics ids, verification tags) belong to igsub.me itself — ignore them.",
        "parameters": [
          {
            "$ref": "#/components/parameters/XFSMode"
          }
        ],
        "security": [],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "domain": {
                      "type": "string",
                      "description": "API host domain."
                    },
                    "ad": {
                      "type": "string",
                      "description": "Brand name."
                    },
                    "varsayilan_dil": {
                      "type": "string",
                      "description": "Default language code."
                    },
                    "diller": {
                      "type": "array",
                      "items": {},
                      "description": "Supported language codes."
                    },
                    "secili_dil": {
                      "type": "string",
                      "description": "Language picked for this request (Accept-Language)."
                    },
                    "telegram_kanal": {
                      "type": "string",
                      "description": "Telegram channel link."
                    },
                    "telegram_bot": {
                      "type": "string",
                      "description": "Telegram bot link."
                    }
                  }
                },
                "example": {
                  "domain": "igsub.me",
                  "ad": "iGSub",
                  "varsayilan_dil": "en",
                  "diller": [
                    "en",
                    "tr",
                    "es",
                    "pt",
                    "ar",
                    "fr",
                    "de",
                    "ru"
                  ],
                  "secili_dil": "en",
                  "telegram_kanal": "https://t.me/...",
                  "telegram_bot": "https://t.me/..."
                }
              }
            }
          },
          "403": {
            "description": "Forbidden (kod: browser_required — not a real browser request; not_public)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests (kod: rate_limit)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/api/link-servisler": {
      "get": {
        "operationId": "services",
        "tags": [
          "Site & catalog"
        ],
        "summary": "Service catalog",
        "description": "Every service with its limits and credit price. Use it to build the service picker, quantity limits and the cost preview. Hide services where aktif is false.\n\ncost in credits = quantity × kredi_carpani.\n\nmin_referans > 0 means the user needs that many invited friends before using the service (error referans_gerekli).",
        "parameters": [
          {
            "$ref": "#/components/parameters/XFSMode"
          }
        ],
        "security": [],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "servisler": {
                      "type": "array",
                      "items": {},
                      "description": "See the Service model."
                    }
                  }
                },
                "example": {
                  "servisler": [
                    {
                      "tip": "sub",
                      "platform": "youtube",
                      "tur": "sub",
                      "min_adet": 10,
                      "max_adet": 1000000,
                      "kredi_carpani": 1,
                      "min_referans": 0,
                      "aktif": true,
                      "sira": 0
                    },
                    {
                      "tip": "like",
                      "platform": "youtube",
                      "tur": "like",
                      "min_adet": 10,
                      "max_adet": 1000000,
                      "kredi_carpani": 50,
                      "min_referans": 3,
                      "aktif": true,
                      "sira": 6
                    },
                    {
                      "tip": "comment",
                      "platform": "youtube",
                      "tur": "comment",
                      "min_adet": 1,
                      "max_adet": 1000000,
                      "kredi_carpani": 10,
                      "min_referans": 100,
                      "aktif": true,
                      "sira": 7
                    },
                    {
                      "tip": "comment_like",
                      "platform": "youtube",
                      "tur": "comment_like",
                      "min_adet": 10,
                      "max_adet": 1000000,
                      "kredi_carpani": 15,
                      "min_referans": 5,
                      "aktif": true,
                      "sira": 8
                    },
                    {
                      "tip": "ig_views",
                      "platform": "instagram",
                      "tur": "views",
                      "min_adet": 100,
                      "max_adet": 2147483647,
                      "kredi_carpani": 3,
                      "min_referans": 0,
                      "aktif": false,
                      "sira": 1
                    }
                  ]
                }
              }
            }
          },
          "403": {
            "description": "Forbidden (kod: browser_required — not a real browser request; not_public)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests (kod: rate_limit)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/api/auth/device/start": {
      "post": {
        "operationId": "deviceStart",
        "tags": [
          "Authentication"
        ],
        "summary": "Start Google sign-in",
        "description": "Creates a one-time code. Show user_code to the user and send them to qr_url (opens youtube.com/qr/activate with the code pre-filled) or show qr_image to scan with a phone. Keep device_token in memory for polling.\n\nLimit: 12 starts per IP per 10 minutes.",
        "parameters": [
          {
            "name": "ref",
            "in": "query",
            "required": false,
            "description": "Invite code. Use YOUR code to earn +1000 credits for every new user who signs in on your site (or the visitor's ?ref= link if present). Applied when the sign-in completes; max 30 per code per day.",
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/XFSMode"
          }
        ],
        "security": [],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "user_code": {
                      "type": "string",
                      "description": "Code the user enters (format XXX-XXX-XXX)."
                    },
                    "qr_url": {
                      "type": "string",
                      "description": "https://youtube.com/qr/activate/<code> — open in a new tab."
                    },
                    "qr_image": {
                      "type": "string",
                      "description": "PNG QR image URL of qr_url."
                    },
                    "verification_url": {
                      "type": "string",
                      "description": "Plain activation page (code typed manually)."
                    },
                    "interval": {
                      "type": "integer",
                      "description": "Seconds to wait between polls (use at least 3)."
                    },
                    "expires_in": {
                      "type": "integer",
                      "description": "Seconds until the code expires."
                    },
                    "device_token": {
                      "type": "string",
                      "description": "Opaque flow token; send it as X-FS-Device when polling."
                    }
                  }
                },
                "example": {
                  "ok": true,
                  "user_code": "ABC-DEF-GHI",
                  "qr_url": "https://youtube.com/qr/activate/ABC-DEF-GHI",
                  "qr_image": "https://api.qrserver.com/v1/create-qr-code/?size=280x280&data=...",
                  "verification_url": "https://www.google.com/device",
                  "interval": 5,
                  "expires_in": 1800,
                  "device_token": "eyJ...signed"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden (kod: browser_required — not a real browser request; not_public)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Error (kod: rate_limit)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "502": {
            "description": "Error (kod: device_hata)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {}
              },
              "example": {}
            }
          }
        }
      }
    },
    "/api/auth/device/poll": {
      "get": {
        "operationId": "devicePoll",
        "tags": [
          "Authentication"
        ],
        "summary": "Poll sign-in",
        "description": "Call every `interval` seconds until status is true, then save session_token (localStorage) and send it as Authorization: Bearer on every call. Always answers HTTP 200; read status/message.\n\nNew accounts receive a welcome credit bonus.\n\nA user who already has an account gets the same account and credits (accounts are shared with igsub.me and the blog).",
        "parameters": [
          {
            "name": "X-FS-Device",
            "in": "header",
            "required": true,
            "description": "device_token from /api/auth/device/start.",
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/XFSMode"
          }
        ],
        "security": [],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": {
                      "type": "boolean",
                      "description": "true = signed in."
                    },
                    "session_token": {
                      "type": "string",
                      "description": "Present when status is true. Valid for 30 days."
                    },
                    "message": {
                      "type": "string",
                      "description": "When status is false: \"not approved yet\" (keep polling), \"expired\" / \"no_flow\" (start again), \"only gmail\" (only @gmail.com accounts), other values = temporary, keep polling."
                    }
                  }
                },
                "example": {
                  "status": false,
                  "message": "not approved yet"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden (kod: browser_required — not a real browser request; not_public)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests (kod: rate_limit)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/api/auth/me": {
      "get": {
        "operationId": "me",
        "tags": [
          "Authentication"
        ],
        "summary": "Current user",
        "description": "Validate the stored token on page load. 401 oturum_yok / kullanici_yok = token expired or deleted: clear it and show the sign-in button.",
        "parameters": [
          {
            "$ref": "#/components/parameters/XFSMode"
          }
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {}
                },
                "example": {
                  "ok": true,
                  "kullanici": {
                    "id": 156,
                    "email": "name@gmail.com",
                    "ad": "Name",
                    "avatar": "https://lh3.googleusercontent.com/...",
                    "son_giris": "2026-10-25T07:55:40Z"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Error (kod: oturum_yok, kullanici_yok)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden (kod: browser_required — not a real browser request; not_public)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests (kod: rate_limit)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/api/auth/logout": {
      "post": {
        "operationId": "logout",
        "tags": [
          "Authentication"
        ],
        "summary": "Sign out",
        "description": "Tokens are stateless: signing out = deleting session_token from your storage. Calling this endpoint is optional.",
        "parameters": [
          {
            "$ref": "#/components/parameters/XFSMode"
          }
        ],
        "security": [],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ok": {
                      "type": "boolean",
                      "description": "Always true."
                    }
                  }
                },
                "example": {
                  "ok": true
                }
              }
            }
          },
          "403": {
            "description": "Forbidden (kod: browser_required — not a real browser request; not_public)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests (kod: rate_limit)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {}
              },
              "example": {}
            }
          }
        }
      }
    },
    "/api/kredi": {
      "get": {
        "operationId": "credit",
        "tags": [
          "Account & credits"
        ],
        "summary": "Credit balance",
        "description": "Spendable credits and invite info. Show kredi in the header and refresh it after every order.",
        "parameters": [
          {
            "$ref": "#/components/parameters/XFSMode"
          }
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {}
                },
                "example": {
                  "ok": true,
                  "kredi": {
                    "kredi": 1000,
                    "bonus_kredi": 0,
                    "referans_kod": "8E6WNYMQ",
                    "davet_sayisi": 0,
                    "kanal_sayisi": 0,
                    "gunluk_hak": 1000,
                    "sonraki_sifirlama": "2026-10-25T08:00:00Z"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Error (kod: oturum_yok)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden (kod: browser_required — not a real browser request; not_public)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests (kod: rate_limit)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/api/kredi/hareketler": {
      "get": {
        "operationId": "creditHistory",
        "tags": [
          "Account & credits"
        ],
        "summary": "Credit history",
        "description": "Credit movements, newest first.",
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Default 50.",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "offset",
            "in": "query",
            "required": false,
            "description": "Pagination offset.",
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/XFSMode"
          }
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "hareketler": {
                      "type": "array",
                      "items": {},
                      "description": "See the CreditTx model."
                    }
                  }
                },
                "example": {
                  "ok": true,
                  "hareketler": [
                    {
                      "id": 991,
                      "tur": "siparis",
                      "miktar": -100,
                      "aciklama": "tip=sub adet=100x1",
                      "order_id": 3927,
                      "olusturma": "2026-10-24T18:05:43Z"
                    },
                    {
                      "id": 990,
                      "tur": "saatlik",
                      "miktar": 1000,
                      "aciklama": "hourly",
                      "olusturma": "2026-10-24T18:00:00Z"
                    }
                  ]
                }
              }
            }
          },
          "401": {
            "description": "Error (kod: oturum_yok)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden (kod: browser_required — not a real browser request; not_public)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests (kod: rate_limit)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/api/referans/uygula": {
      "post": {
        "operationId": "referral",
        "tags": [
          "Account & credits"
        ],
        "summary": "Apply an invite code",
        "description": "Manually apply a friend's invite code (the inviter gets +1000 credits). Usually not needed: pass ?ref= to device/start instead.\n\n**hCaptcha required** — get a token from the igsub.me frame (https://igsub.me/captcha/frame.html, see \"hCaptcha\" in the API description) and send it as header X-FS-Captcha.",
        "parameters": [
          {
            "$ref": "#/components/parameters/XFSCaptcha"
          },
          {
            "$ref": "#/components/parameters/XFSMode"
          }
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ok": {
                      "type": "boolean",
                      "description": "true on success."
                    },
                    "bonus": {
                      "type": "integer",
                      "description": "Credits given to the inviter."
                    }
                  }
                },
                "example": {
                  "ok": true,
                  "veren_id": 12,
                  "bonus": 1000
                }
              }
            }
          },
          "400": {
            "description": "Error (kod: captcha_yok, captcha_ret, kod_yok, referans_kendi)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden (kod: browser_required — not a real browser request; not_public)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Error (kod: referans_gecersiz)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Error (kod: referans_var)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Error (kod: referans_limit)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-captcha-required": true,
        "x-captcha": {
          "frame": "https://igsub.me/captcha/frame.html",
          "send_as": "header X-FS-Captcha",
          "one_token_per_call": true
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "kod": {
                    "type": "string",
                    "description": "Invite code.",
                    "example": "AB12CD34"
                  }
                },
                "required": [
                  "kod"
                ]
              },
              "example": {
                "kod": "AB12CD34"
              }
            }
          }
        }
      }
    },
    "/api/kredi/kanal-topla": {
      "post": {
        "operationId": "channelCredits",
        "tags": [
          "Account & credits"
        ],
        "summary": "Claim extra-channel credits",
        "description": "Counts the extra YouTube channels on the user's Google account; every channel adds +1000 credits per hour. Once per hour (when called earlier you get beklemede=true and kalan_saniye).\n\n**hCaptcha required** — get a token from the igsub.me frame (https://igsub.me/captcha/frame.html, see \"hCaptcha\" in the API description) and send it as header X-FS-Captcha.",
        "parameters": [
          {
            "$ref": "#/components/parameters/XFSCaptcha"
          },
          {
            "$ref": "#/components/parameters/XFSMode"
          }
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "kanal_sayisi": {
                      "type": "integer",
                      "description": "Extra channels found."
                    },
                    "saatlik_kazanc": {
                      "type": "integer",
                      "description": "Credits per hour from channels."
                    },
                    "kredi": {
                      "type": "integer",
                      "description": "New balance."
                    },
                    "beklemede": {
                      "type": "boolean",
                      "description": "true = called too early."
                    },
                    "kalan_saniye": {
                      "type": "integer",
                      "description": "Seconds until it can be called again."
                    }
                  }
                },
                "example": {
                  "ok": true,
                  "kanal_sayisi": 3,
                  "saatlik_kazanc": 3000,
                  "kredi": 4000
                }
              }
            }
          },
          "400": {
            "description": "Error (kod: captcha_yok, captcha_ret)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Error (kod: oturum_yok)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden (kod: browser_required — not a real browser request; not_public)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests (kod: rate_limit)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "502": {
            "description": "Error (kod: kanal_alinamadi)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-captcha-required": true,
        "x-captcha": {
          "frame": "https://igsub.me/captcha/frame.html",
          "send_as": "header X-FS-Captcha",
          "one_token_per_call": true
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {}
              },
              "example": {}
            }
          }
        }
      }
    },
    "/api/resolve": {
      "post": {
        "operationId": "resolve",
        "tags": [
          "YouTube lookup"
        ],
        "summary": "Find a channel or video",
        "description": "Accepts anything a user may paste: channel URL, @handle, /c/ or /user/ URL, channel name, video URL (watch, youtu.be, shorts) or a bare video id. Returns a channel (tip = \"kanal\") with its latest videos and similar channels, or a video (tip = \"video\").\n\nLimit: 40 per minute per IP.",
        "parameters": [
          {
            "$ref": "#/components/parameters/XFSMode"
          }
        ],
        "security": [
          {},
          {
            "bearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "tip": {
                      "type": "string",
                      "description": "What was found."
                    },
                    "channel_id": {
                      "type": "string",
                      "description": "UC… id — use as hedef_kanal in orders."
                    },
                    "ad": {
                      "type": "string",
                      "description": "Channel name."
                    },
                    "handle": {
                      "type": "string",
                      "description": "Handle without @ (channel only, may be empty)."
                    },
                    "avatar": {
                      "type": "string",
                      "description": "Channel avatar (channel only)."
                    },
                    "abone_sayi": {
                      "type": "integer",
                      "description": "Subscriber count (channel only)."
                    },
                    "video_sayi": {
                      "type": "integer",
                      "description": "Video count (channel only)."
                    },
                    "aciklama": {
                      "type": "string",
                      "description": "Channel description (channel only)."
                    },
                    "videolar": {
                      "type": "array",
                      "items": {},
                      "description": "Latest videos (channel only). id = video id."
                    },
                    "alternatifler": {
                      "type": "array",
                      "items": {},
                      "description": "Similar channels when the input was a name/handle — show \"Not this channel?\"."
                    },
                    "video_id": {
                      "type": "string",
                      "description": "Video id (video only)."
                    },
                    "video": {
                      "type": "object",
                      "description": "Video only: {id, baslik, aciklama, kapak, goruntulenme, sure_sn, yazar}."
                    }
                  }
                },
                "example": {
                  "tip": "kanal",
                  "channel_id": "UCX6OQ3DkcsbYNE6H8uQQuVA",
                  "ad": "MrBeast",
                  "handle": "mrbeast",
                  "avatar": "https://yt3.ggpht.com/...",
                  "abone_sayi": 523000000,
                  "video_sayi": 900,
                  "aciklama": "...",
                  "yontem": "handle",
                  "videolar": [
                    {
                      "id": "dQw4w9WgXcQ",
                      "baslik": "Video title",
                      "kapak": "https://i.ytimg.com/vi/dQw4w9WgXcQ/hqdefault.jpg",
                      "bilgi": "12M views"
                    }
                  ],
                  "alternatifler": [
                    {
                      "channel_id": "UC...",
                      "ad": "MrBeast Gaming",
                      "avatar": "...",
                      "abone_sayi": 45000000
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "description": "Error (kod: bos_girdi)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Error (kod: giris_gerekli)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden (kod: browser_required — not a real browser request; not_public)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Error (kod: cozulemedi)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Error (kod: rate_limit)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "q": {
                    "type": "string",
                    "description": "User input.",
                    "example": "https://www.youtube.com/@MrBeast"
                  }
                },
                "required": [
                  "q"
                ]
              },
              "example": {
                "q": "https://www.youtube.com/@MrBeast"
              }
            }
          }
        }
      }
    },
    "/api/search": {
      "get": {
        "operationId": "search",
        "tags": [
          "YouTube lookup"
        ],
        "summary": "Search channels",
        "description": "Channel search by name (max 12). Use for an autocomplete or a \"pick your channel\" list.",
        "parameters": [
          {
            "name": "q",
            "in": "query",
            "required": true,
            "description": "Search text.",
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/XFSMode"
          }
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "kanallar": {
                      "type": "array",
                      "items": {},
                      "description": "Matching channels."
                    }
                  }
                },
                "example": {
                  "kanallar": [
                    {
                      "channel_id": "UC...",
                      "ad": "Cooking Channel",
                      "avatar": "https://...",
                      "abone_sayi": 120000
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "description": "Error (kod: bos_girdi)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Error (kod: giris_gerekli)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden (kod: browser_required — not a real browser request; not_public)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests (kod: rate_limit)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/api/channel/{channelId}": {
      "get": {
        "operationId": "channel",
        "tags": [
          "YouTube lookup"
        ],
        "summary": "Channel page data",
        "description": "Full channel card plus the first 30 videos. Use it for a channel page (e.g. #/channel/UC...).",
        "parameters": [
          {
            "name": "channelId",
            "in": "path",
            "required": true,
            "description": "UC… channel id.",
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/XFSMode"
          }
        ],
        "security": [
          {},
          {
            "bearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "kanal": {
                      "type": "object",
                      "description": "See the Channel model."
                    },
                    "videolar": {
                      "type": "array",
                      "items": {},
                      "description": "See the Video model."
                    }
                  }
                },
                "example": {
                  "kanal": {
                    "channel_id": "UCX6OQ3DkcsbYNE6H8uQQuVA",
                    "handle": "mrbeast",
                    "ad": "MrBeast",
                    "aciklama": "...",
                    "avatar": "...",
                    "banner": "",
                    "abone_sayi": 523000000,
                    "video_sayi": 900,
                    "ulke": "",
                    "kategori": ""
                  },
                  "videolar": [
                    {
                      "video_id": "...",
                      "channel_id": "UC...",
                      "baslik": "...",
                      "kapak": "...",
                      "goruntulenme": 1000000,
                      "sure_sn": 900,
                      "sira": 1
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "description": "Error (kod: gecersiz_kanal)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Error (kod: giris_gerekli)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden (kod: browser_required — not a real browser request; not_public)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Error (kod: kanal_yok)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests (kod: rate_limit)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/api/channel/{channelId}/videos": {
      "get": {
        "operationId": "channelVideos",
        "tags": [
          "YouTube lookup"
        ],
        "summary": "More channel videos / shorts",
        "description": "Paginated videos. Default tab uses limit/offset. For Shorts or live streams pass sekme=shorts|streams and page with the returned devam token (continuation).",
        "parameters": [
          {
            "name": "channelId",
            "in": "path",
            "required": true,
            "description": "UC… channel id.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "1–100, default 30 (videos tab).",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "offset",
            "in": "query",
            "required": false,
            "description": "Offset (videos tab).",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "sekme",
            "in": "query",
            "required": false,
            "description": "Tab. Default videos.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "continuation",
            "in": "query",
            "required": false,
            "description": "Next-page token (devam) for shorts/streams.",
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/XFSMode"
          }
        ],
        "security": [
          {},
          {
            "bearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "videolar": {
                      "type": "array",
                      "items": {},
                      "description": "Videos (shorts/streams return {video_id, channel_id, baslik, kapak})."
                    },
                    "devam": {
                      "type": "string",
                      "description": "Next page token for shorts/streams (\"\" = end)."
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Error (kod: gecersiz_kanal, sekme_hata)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Error (kod: giris_gerekli)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden (kod: browser_required — not a real browser request; not_public)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests (kod: rate_limit)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/api/video/{videoId}": {
      "get": {
        "operationId": "video",
        "tags": [
          "YouTube lookup"
        ],
        "summary": "Video page data",
        "description": "Video details plus its channel card. Use it for a video page with like/comment ordering.",
        "parameters": [
          {
            "name": "videoId",
            "in": "path",
            "required": true,
            "description": "11-character video id.",
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/XFSMode"
          }
        ],
        "security": [
          {},
          {
            "bearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "video": {
                      "type": "object",
                      "description": "{video_id, baslik, aciklama, channel_id, kapak, goruntulenme, sure_sn, etiketler[], yazar}"
                    },
                    "kanal": {
                      "type": "object",
                      "description": "Channel of the video."
                    }
                  }
                },
                "example": {
                  "video": {
                    "video_id": "dQw4w9WgXcQ",
                    "baslik": "Title",
                    "aciklama": "...",
                    "channel_id": "UC...",
                    "kapak": "https://i.ytimg.com/vi/dQw4w9WgXcQ/hqdefault.jpg",
                    "goruntulenme": 1500000000,
                    "sure_sn": 213,
                    "etiketler": [
                      "music"
                    ],
                    "yazar": "Channel"
                  },
                  "kanal": {
                    "channel_id": "UC...",
                    "ad": "Channel",
                    "avatar": "...",
                    "abone_sayi": 4000000
                  }
                }
              }
            }
          },
          "400": {
            "description": "Error (kod: gecersiz_video)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Error (kod: giris_gerekli)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden (kod: browser_required — not a real browser request; not_public)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Error (kod: video_yok)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests (kod: rate_limit)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/api/order": {
      "post": {
        "operationId": "orderCreate",
        "tags": [
          "Orders"
        ],
        "summary": "Create an order",
        "description": "Without sign-in: 100 free YouTube subscribers (tip sub only) once per channel, max 1 free order per hour per visitor, hCaptcha required. Signed in: spends credits (quantity × kredi_carpani) and starts delivery immediately. YouTube services need hedef_kanal (channel_id from /api/resolve); like and comment also need hedef_video. Instagram / TikTok / X / Facebook services need the full post URL in hedef_video and no hedef_kanal.\n\nLimit: 30 orders per hour per user (external sites) · 20 per hour per IP.\n\nEvery order needs a fresh hCaptcha token (one token = one order).\n\nRequest body must contain only these fields (unknown fields → 400 gecersiz_govde).\n\nRefresh /api/kredi after an order.\n\n**hCaptcha required** — get a token from the igsub.me frame (https://igsub.me/captcha/frame.html, see \"hCaptcha\" in the API description) and send it as body field captcha_token.",
        "parameters": [
          {
            "$ref": "#/components/parameters/XFSMode"
          }
        ],
        "security": [
          {},
          {
            "bearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "order_id": {
                      "type": "string",
                      "description": "Unguessable order token. Keep it: it is the key for tracking (share links like #/order/<order_id>)."
                    },
                    "status": {
                      "type": "object",
                      "description": "Usually \"queued\"; \"failed\" if dispatch failed (credits refunded automatically)."
                    },
                    "durum": {
                      "type": "string",
                      "description": "Same status, internal name."
                    },
                    "adet": {
                      "type": "integer",
                      "description": "Final quantity after clamping."
                    }
                  }
                },
                "example": {
                  "ok": true,
                  "order_id": "c43a7ec92aef79f3e7f96c1b55125d44",
                  "durum": "kuyrukta",
                  "status": "queued",
                  "adet": 100
                }
              }
            }
          },
          "400": {
            "description": "Error (kod: captcha_yok, captcha_ret, gecersiz_tip, hedef_yok, link_gecersiz, servis_yok, gecersiz_govde)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Error (kod: giris_gerekli)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "402": {
            "description": "Error (kod: kredi_yok, min_kredi)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Error (kod: referans_gerekli)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Error (kod: kanal_cooldown, rate_limit)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "x-captcha-required": true,
        "x-captcha": {
          "frame": "https://igsub.me/captcha/frame.html",
          "send_as": "body field captcha_token",
          "one_token_per_call": true
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "tip": {
                    "type": "string",
                    "description": "Service type from /api/link-servisler: sub, like, comment, comment_like (YouTube) · ig_views, ig_likes, tiktok_views, x_views, fb_likes (only when aktif).",
                    "example": "sub"
                  },
                  "hedef_kanal": {
                    "type": "string",
                    "description": "YouTube channel_id (UC…). Required for YouTube services.",
                    "example": "UCX6OQ3DkcsbYNE6H8uQQuVA"
                  },
                  "hedef_video": {
                    "type": "string",
                    "description": "YouTube video id (like, comment, comment_like) or full post URL (Instagram/TikTok/X/Facebook).",
                    "example": "dQw4w9WgXcQ"
                  },
                  "adet": {
                    "type": "integer",
                    "description": "Quantity. Signed in: clamped to the service min/max and to what the balance can pay (omit = 100). Without sign-in: always 100 (omit it).",
                    "example": "100"
                  },
                  "captcha_token": {
                    "type": "string",
                    "description": "hCaptcha token, required for every order. Get it from the igsub.me captcha frame (see \"hCaptcha\" section): open https://igsub.me/captcha/frame.html in an iframe and read the token from the postMessage { fsCaptcha }. Single use."
                  },
                  "fingerprint": {
                    "type": "string",
                    "description": "Stable device id (random string kept in localStorage). Recommended without sign-in: the free quota is counted per IP + fingerprint."
                  }
                },
                "required": [
                  "tip",
                  "captcha_token"
                ]
              },
              "example": {
                "tip": "sub",
                "hedef_kanal": "UCX6OQ3DkcsbYNE6H8uQQuVA",
                "adet": 100,
                "captcha_token": "P1_eyJ0eXAi..."
              }
            }
          }
        }
      }
    },
    "/api/order/{order_id}": {
      "get": {
        "operationId": "orderStatus",
        "tags": [
          "Orders"
        ],
        "summary": "Order progress",
        "description": "Live progress, synced with the delivery engine on every call. Poll every 8–15 seconds while the status is not final. Progress = biten_sayac / adet.",
        "parameters": [
          {
            "name": "order_id",
            "in": "path",
            "required": true,
            "description": "Token from /api/order.",
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/XFSMode"
          }
        ],
        "security": [
          {},
          {
            "bearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "order_id": {
                      "type": "string",
                      "description": "Order token."
                    },
                    "tip": {
                      "type": "string",
                      "description": "Service type."
                    },
                    "status": {
                      "type": "object",
                      "description": "pending | queued | in_progress | completed | partial | canceled | failed."
                    },
                    "adet": {
                      "type": "integer",
                      "description": "Ordered quantity."
                    },
                    "baslangic_sayac": {
                      "type": "integer",
                      "description": "Counter (subscribers/likes) when delivery started; 0 until known."
                    },
                    "biten_sayac": {
                      "type": "integer",
                      "description": "Units delivered so far."
                    },
                    "hedef_kanal": {
                      "type": "string",
                      "description": "Target channel."
                    },
                    "hedef_video": {
                      "type": "string",
                      "description": "Target video / link."
                    },
                    "olusturma": {
                      "type": "string",
                      "format": "date-time",
                      "description": "Created at."
                    },
                    "biten": {
                      "type": "string",
                      "format": "date-time",
                      "description": "Finished at."
                    }
                  }
                },
                "example": {
                  "order_id": "c43a7ec92aef79f3e7f96c1b55125d44",
                  "tip": "sub",
                  "durum": "calisiyor",
                  "status": "in_progress",
                  "adet": 100,
                  "baslangic_sayac": 18300,
                  "biten_sayac": 40,
                  "hedef_kanal": "UCKtuGDfMjgNe5M9Eu_XsdRw",
                  "hedef_video": "",
                  "olusturma": "2026-10-24T18:05:43Z",
                  "biten": null
                }
              }
            }
          },
          "401": {
            "description": "Error (kod: giris_gerekli)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden (kod: browser_required — not a real browser request; not_public)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Error (kod: siparis_yok)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests (kod: rate_limit)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/api/order/{order_id}/events": {
      "get": {
        "operationId": "orderEvents",
        "tags": [
          "Orders"
        ],
        "summary": "Order timeline",
        "description": "Step-by-step events for a timeline view.",
        "parameters": [
          {
            "name": "order_id",
            "in": "path",
            "required": true,
            "description": "Order token.",
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/XFSMode"
          }
        ],
        "security": [
          {},
          {
            "bearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "olaylar": {
                      "type": "array",
                      "items": {},
                      "description": "See the OrderEvent model."
                    }
                  }
                },
                "example": {
                  "order_id": "c43a7ec9...",
                  "olaylar": [
                    {
                      "id": 1,
                      "olay": "olusturuldu",
                      "detay": "tip=sub adet=100",
                      "ts": "2026-10-24T18:05:43Z"
                    },
                    {
                      "id": 2,
                      "olay": "kuyruga_alindi",
                      "detay": "ref=...",
                      "ts": "2026-10-24T18:05:44Z"
                    }
                  ]
                }
              }
            }
          },
          "403": {
            "description": "Forbidden (kod: browser_required — not a real browser request; not_public)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Error (kod: siparis_yok)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests (kod: rate_limit)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/api/siparislerim": {
      "get": {
        "operationId": "myOrders",
        "tags": [
          "Orders"
        ],
        "summary": "My orders",
        "description": "The signed-in user's orders on every site, newest first, with the latest event.",
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Default 50.",
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "offset",
            "in": "query",
            "required": false,
            "description": "Pagination offset.",
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/XFSMode"
          }
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "siparisler": {
                      "type": "array",
                      "items": {},
                      "description": "See the OrderSummary model. Link each row with public_token."
                    }
                  }
                },
                "example": {
                  "ok": true,
                  "siparisler": [
                    {
                      "id": 3927,
                      "public_token": "c43a7ec9...",
                      "platform": "youtube",
                      "tip": "sub",
                      "hedef_kanal": "UC...",
                      "hedef_video": "",
                      "adet": 1000,
                      "durum": "tamamlandi",
                      "status": "completed",
                      "baslangic_sayac": 18300,
                      "biten_sayac": 1000,
                      "son_olay": "kuyruga_alindi",
                      "olusturma": "2026-10-24T18:05:43Z",
                      "biten": "2026-10-24T18:41:02Z"
                    }
                  ]
                }
              }
            }
          },
          "401": {
            "description": "Error (kod: oturum_yok)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden (kod: browser_required — not a real browser request; not_public)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests (kod: rate_limit)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/api/siparislerim/{id}": {
      "get": {
        "operationId": "myOrder",
        "tags": [
          "Orders"
        ],
        "summary": "One of my orders",
        "description": "Summary plus full event list of one order owned by the user (numeric id from /api/siparislerim).",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "description": "Numeric order id.",
            "schema": {
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/XFSMode"
          }
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "siparis": {
                      "type": "object",
                      "description": "Order summary."
                    },
                    "olaylar": {
                      "type": "array",
                      "items": {},
                      "description": "Events."
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Error (kod: gecersiz_id)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Error (kod: oturum_yok)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden (kod: browser_required — not a real browser request; not_public)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Error (kod: siparis_yok)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests (kod: rate_limit)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/api/son-siparisler": {
      "get": {
        "operationId": "recent",
        "tags": [
          "Social proof"
        ],
        "summary": "Recent deliveries",
        "description": "Orders completed in the last 24 hours across all sites (newest first, up to 100) for a \"just delivered\" ticker. Names are masked server-side; no e-mail, channel or IP is returned. Cached 30 seconds.",
        "parameters": [
          {
            "$ref": "#/components/parameters/XFSMode"
          }
        ],
        "security": [],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "siparisler": {
                      "type": "array",
                      "items": {},
                      "description": "ad = masked name (\"\" = guest), saniye_once = seconds ago."
                    }
                  }
                },
                "example": {
                  "siparisler": [
                    {
                      "tip": "sub",
                      "adet": 100,
                      "ad": "Al***",
                      "saniye_once": 42
                    },
                    {
                      "tip": "like",
                      "adet": 50,
                      "ad": "",
                      "saniye_once": 95
                    }
                  ]
                }
              }
            }
          },
          "403": {
            "description": "Forbidden (kod: browser_required — not a real browser request; not_public)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests (kod: rate_limit)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/api/oyun": {
      "get": {
        "operationId": "gamesInfo",
        "tags": [
          "Games & jackpots"
        ],
        "summary": "Game rules & payout tables",
        "description": "Bet limits, the return-to-player cap and every payout table, so your page can show odds and pay tables next to each game. Static data — fetch it once per page session. Probabilities (olasilik) are percentages; multipliers (carpan) are the TOTAL return per 1 credit bet (2 = you get double your bet back).\n\nThe example is shortened: the real response has every plinko/wheel/slot/tumble/zincir/keno/sicbo/dart entry and all 54 money_dilim values.\n\nPublic on external sites (no sign-in needed).",
        "parameters": [
          {
            "$ref": "#/components/parameters/XFSMode"
          }
        ],
        "security": [],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "min_bahis": {
                      "type": "integer",
                      "description": "Minimum bet (10)."
                    },
                    "max_bahis": {
                      "type": "integer",
                      "description": "Maximum bet (2000)."
                    },
                    "max_adet": {
                      "type": "integer",
                      "description": "Max hands in one request (10, plinko balls only)."
                    },
                    "rtp": {
                      "type": "object",
                      "description": "Return-to-player cap of every game (0.97)."
                    },
                    "coin_carpan": {
                      "type": "object",
                      "description": "Coin flip payout (1.94)."
                    },
                    "slot": {
                      "type": "array",
                      "items": {},
                      "description": "Classic slot table (theme \"classic\"): symbol row, chance in %, multiplier."
                    },
                    "slot_tema": {
                      "type": "object",
                      "description": "Other slot themes: theme → [{ad, olasilik, carpan}] (candy, space, gems, egypt). Visual themes lucky7/fruitstand/neon/ocean/samurai/western/royal reuse classic/candy/space/gems/egypt/space/gems."
                    },
                    "plinko": {
                      "type": "object",
                      "description": "Key \"<rows><risk>\" (8low … 16high) → multiplier per pocket (rows + 1 pockets, left to right)."
                    },
                    "wheel": {
                      "type": "object",
                      "description": "low (10 slices) / medium (20) / high (30) → multiplier per slice, all slices equally likely."
                    },
                    "tumble": {
                      "type": "object",
                      "description": "{oyunlar: theme → profile, profiller: profile → {mod, sutun, satir, odeme, scatter_odeme, bonus_fiyat, kure, nokta_tavan}, max_carpan, fs, fs_ek, bonus_max}. See \"Tumble slots\" in the game catalog."
                    },
                    "jackpot_kademe": {
                      "type": "array",
                      "items": {},
                      "description": "Jackpot tiers: name, fixed multiplier of the bet, chance 1/bolen per hand."
                    },
                    "zincir": {
                      "type": "object",
                      "description": "Chain games: key → {mod (\"kule\" pick a box per row | \"tek\" just advance), risk: level → [n, k] (k of n safe), max_adim}."
                    },
                    "keno": {
                      "type": "array",
                      "items": {},
                      "description": "keno[picks][hits] → multiplier (picks 1–10; index 0 is null)."
                    },
                    "sicbo": {
                      "type": "object",
                      "description": "Bet → multiplier (small, big, odd, even, triple_any, triple:1–6, double:1–6, total:4–17)."
                    },
                    "at": {
                      "type": "array",
                      "items": {},
                      "description": "Horse race multiplier for horse 1–6."
                    },
                    "at_olas": {
                      "type": "integer",
                      "description": "Win chance of horse 1–6 in %."
                    },
                    "dart": {
                      "type": "object",
                      "description": "Darts risk (low, medium, high) → [{ad, olasilik, carpan}]."
                    },
                    "money_dilim": {
                      "type": "integer",
                      "description": "Money wheel: value of each of the 54 slices in wheel order."
                    },
                    "money_carpan": {
                      "type": "object",
                      "description": "Money wheel: slice value (\"1\", \"2\", \"5\", \"10\", \"20\", \"40\") → multiplier."
                    }
                  }
                },
                "example": {
                  "ok": true,
                  "min_bahis": 10,
                  "max_bahis": 2000,
                  "max_adet": 10,
                  "rtp": 0.97,
                  "coin_carpan": 1.94,
                  "slot": [
                    {
                      "ad": "diamond",
                      "olasilik": 0.2,
                      "carpan": 50
                    },
                    {
                      "ad": "seven",
                      "olasilik": 0.6,
                      "carpan": 20
                    },
                    {
                      "ad": "cherry",
                      "olasilik": 2,
                      "carpan": 10
                    },
                    {
                      "ad": "lemon",
                      "olasilik": 4,
                      "carpan": 5
                    },
                    {
                      "ad": "pair",
                      "olasilik": 17.5,
                      "carpan": 2
                    }
                  ],
                  "slot_tema": {
                    "candy": [
                      {
                        "ad": "big",
                        "olasilik": 1,
                        "carpan": 10
                      },
                      {
                        "ad": "mid",
                        "olasilik": 4,
                        "carpan": 5
                      },
                      {
                        "ad": "small",
                        "olasilik": 10,
                        "carpan": 2.5
                      },
                      {
                        "ad": "pair",
                        "olasilik": 28,
                        "carpan": 1.5
                      }
                    ]
                  },
                  "plinko": {
                    "8low": [
                      5.48,
                      2.05,
                      1.07,
                      0.97,
                      0.48,
                      0.97,
                      1.07,
                      2.05,
                      5.48
                    ]
                  },
                  "wheel": {
                    "low": [
                      1.42,
                      1.14,
                      1.14,
                      1.14,
                      0,
                      1.14,
                      1.14,
                      1.14,
                      1.42,
                      0
                    ]
                  },
                  "tumble": {
                    "oyunlar": {
                      "thunder": "sc-high",
                      "sugar": "cl-mid"
                    },
                    "profiller": {
                      "sc-high": {
                        "mod": "scatter",
                        "sutun": 6,
                        "satir": 5,
                        "odeme": [
                          [
                            0.35,
                            1.05,
                            2.81
                          ]
                        ],
                        "scatter_odeme": [
                          4.22,
                          7.03,
                          140.7
                        ],
                        "bonus_fiyat": 80,
                        "kure": [
                          2,
                          3,
                          5,
                          8,
                          10,
                          15,
                          20,
                          25,
                          50,
                          100
                        ],
                        "nokta_tavan": 0
                      }
                    },
                    "max_carpan": 5000,
                    "fs": 10,
                    "fs_ek": 5,
                    "bonus_max": 50000
                  },
                  "jackpot_kademe": [
                    {
                      "ad": "grand",
                      "carpan": 500,
                      "bolen": 200000
                    },
                    {
                      "ad": "major",
                      "carpan": 150,
                      "bolen": 30000
                    },
                    {
                      "ad": "minor",
                      "carpan": 50,
                      "bolen": 12500
                    },
                    {
                      "ad": "mini",
                      "carpan": 10,
                      "bolen": 4000
                    }
                  ],
                  "zincir": {
                    "towers": {
                      "mod": "kule",
                      "risk": {
                        "easy": [
                          4,
                          3
                        ],
                        "medium": [
                          3,
                          2
                        ],
                        "hard": [
                          2,
                          1
                        ],
                        "expert": [
                          3,
                          1
                        ]
                      },
                      "max_adim": 9
                    }
                  },
                  "keno": [
                    null,
                    [
                      0,
                      3.88
                    ],
                    [
                      0,
                      1.72,
                      5.28
                    ]
                  ],
                  "sicbo": {
                    "small": 1.99,
                    "big": 1.99,
                    "triple_any": 34.92,
                    "total:4": 69.84
                  },
                  "at": [
                    3.23,
                    4.04,
                    5.38,
                    7.46,
                    10.77,
                    16.16
                  ],
                  "at_olas": [
                    30,
                    24,
                    18,
                    13,
                    9,
                    6
                  ],
                  "dart": {
                    "low": [
                      {
                        "ad": "bull",
                        "olasilik": 2,
                        "carpan": 4.94
                      },
                      {
                        "ad": "inner",
                        "olasilik": 18,
                        "carpan": 1.48
                      },
                      {
                        "ad": "outer",
                        "olasilik": 50,
                        "carpan": 1.08
                      },
                      {
                        "ad": "miss",
                        "olasilik": 30,
                        "carpan": 0.19
                      }
                    ]
                  },
                  "money_dilim": [
                    1,
                    2,
                    1,
                    5,
                    1,
                    2,
                    1,
                    10
                  ],
                  "money_carpan": {
                    "1": 2.18,
                    "2": 3.49,
                    "5": 7.48,
                    "10": 13.09,
                    "20": 26.19,
                    "40": 26.19
                  }
                }
              }
            }
          },
          "403": {
            "description": "Forbidden (kod: browser_required — not a real browser request; not_public)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Error (kod: rate_limit)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Error (kod: db_hata)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/api/oyun/oyna": {
      "post": {
        "operationId": "gamesPlay",
        "tags": [
          "Games & jackpots"
        ],
        "summary": "Play one hand (single-request games)",
        "description": "Places the bet and returns the result in one call: the bet is taken, the result is drawn on the server, the payout is added and a jackpot roll is made — all in one transaction. Which of secim / hedef / x / satir / risk / adet / bonus you send depends on the game (see the game catalog). Animate the result on your side; the outcome is already final.\n\nLimit: 60 hands per minute per user · 90 requests per minute per user (external sites).\n\nkazanc = floor(bahis × carpan) (fractions are rounded down); net = kazanc − bahis; kredi = new balance after the hand and any jackpot. Show kredi in your header.\n\nyetersiz_kredi is answered as { \"ok\": false, \"hata\": \"yetersiz_kredi\", \"kredi\": <balance> } (402) — the code is in hata, not kod. Read kod || hata.\n\nOne jackpot roll per request (also for 10 plinko balls). A hit adds jackpot.tutar to the balance and appears in the live feed.\n\nPayout cap: 200000 credits in one hand.",
        "parameters": [
          {
            "$ref": "#/components/parameters/XFSMode"
          }
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "sonuc": {
                      "type": "object",
                      "description": "The (first) hand. See the GameResult model."
                    },
                    "sonuclar": {
                      "type": "array",
                      "items": {},
                      "description": "Every hand (several only for plinko with adet > 1). sonuc.jackpot is set on the first hand when a jackpot hit."
                    },
                    "kredi": {
                      "type": "integer",
                      "description": "Only on 402 yetersiz_kredi: the current balance."
                    }
                  }
                },
                "example": {
                  "ok": true,
                  "sonuc": {
                    "oyun": "coin",
                    "bahis": 100,
                    "kazanc": 194,
                    "net": 94,
                    "carpan": 1.94,
                    "sonuc": "heads",
                    "indeks": 0,
                    "kredi": 5194
                  },
                  "sonuclar": [
                    {
                      "oyun": "coin",
                      "bahis": 100,
                      "kazanc": 194,
                      "net": 94,
                      "carpan": 1.94,
                      "sonuc": "heads",
                      "indeks": 0,
                      "kredi": 5194
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "description": "Error (kod: bahis, gecersiz)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Error (kod: oturum_yok, giris_gerekli)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "402": {
            "description": "Error (kod: yetersiz_kredi)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden (kod: browser_required — not a real browser request; not_public)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Error (kod: rate_limit)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Error (kod: db_hata)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "oyun": {
                    "type": "string",
                    "description": "Game key: coin, dice, limbo, crash, slots, scratch, plinko, wheel, roulette, rps, lucky, cups, baccarat, keno, sicbo, dragontiger, ou7, horse, darts, moneywheel, tumble.",
                    "example": "coin"
                  },
                  "bahis": {
                    "type": "integer",
                    "description": "Bet per hand, 10–2000 credits (400 bahis otherwise). For plinko with adet > 1 the cost is bahis × adet; for a tumble bonus buy it is bahis × bonus_fiyat.",
                    "example": "100"
                  },
                  "secim": {
                    "type": "string",
                    "description": "coin: heads | tails · roulette: red | black | even | odd | low | high | dozen1–dozen3 | col1–col3 | n:0 … n:36 · rps: rock | paper | scissors · baccarat: player | banker | tie · dragontiger: dragon | tiger | tie · ou7: under | over | seven · sicbo: small | big | odd | even | triple_any | triple:1–6 | double:1–6 | total:4–17 · keno: 1–10 different numbers 1–40, comma separated (\"3,7,12\") · moneywheel: \"1\" | \"2\" | \"5\" | \"10\" | \"20\" | \"40\" · slots: theme classic (default) | candy | space | gems | egypt | lucky7 | fruitstand | neon | ocean | samurai | western | royal · tumble: theme key (required, 30 themes, see catalog).",
                    "example": "heads"
                  },
                  "hedef": {
                    "type": "integer",
                    "description": "dice: 2–95 (win when the roll is below it) · lucky: 1–10 · cups: 1–3 · horse: 1–6.",
                    "example": "50"
                  },
                  "x": {
                    "type": "object",
                    "description": "limbo / crash: target multiplier 1.01–1000 (2 decimals, rounded down).",
                    "example": "2.5"
                  },
                  "satir": {
                    "type": "integer",
                    "description": "plinko: rows 8 | 12 | 16.",
                    "example": "12"
                  },
                  "risk": {
                    "type": "string",
                    "description": "plinko, wheel, darts: low | medium | high.",
                    "example": "medium"
                  },
                  "adet": {
                    "type": "integer",
                    "description": "plinko only: balls in one request, 1–10 (default 1). Other games must send 1 or omit it.",
                    "example": "1"
                  },
                  "bonus": {
                    "type": "boolean",
                    "description": "tumble only: buy 10 free spins directly for bahis × bonus_fiyat credits (max 50000).",
                    "example": "false"
                  }
                },
                "required": [
                  "oyun",
                  "bahis"
                ]
              },
              "example": {
                "oyun": "coin",
                "bahis": 100,
                "secim": "heads"
              }
            }
          }
        }
      }
    },
    "/api/oyun/hamle": {
      "post": {
        "operationId": "gamesMove",
        "tags": [
          "Games & jackpots"
        ],
        "summary": "Step-by-step games (start, move, cash out)",
        "description": "Blackjack, mines, hi-lo, video poker and the 14 chain games (oyun \"zn-<key>\") are played in steps. hamle \"basla\" takes the bet and opens a session (one active session per user per game, kept on the server for 24 hours); the following moves change it until the game ends (durum.bitti = true), when the payout is added. Hidden information (dealer hole card, mine positions, the deck) stays on the server and is revealed only when the game ends.\n\nLimit: 150 moves per minute per user · 90 requests per minute per user (external sites).\n\nbasla while a session of the same game is still open does not take a new bet: it returns the open session (safe on double clicks and page reloads).\n\nAny move other than basla without an open session → 409 oturum_yok_oyun. Call GET /api/oyun/oturum on page load to resume.\n\nInvalid moves (opening the same cell twice, double after the first two cards, cash out before the first safe step, wrong tut length) → 400 gecersiz.\n\nThe jackpot roll happens once at basla (durum.jackpot). When bitti is true: kazanc = payout, carpan = kazanc / toplam, sonuc = result.\n\nSessions untouched for 24 hours are closed and their bet is lost.",
        "parameters": [
          {
            "$ref": "#/components/parameters/XFSMode"
          }
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "durum": {
                      "type": "object",
                      "description": "Visible state after the move. See the GameSession model."
                    },
                    "kredi": {
                      "type": "integer",
                      "description": "Only on 402 yetersiz_kredi: the current balance."
                    }
                  }
                },
                "example": {
                  "ok": true,
                  "durum": {
                    "oyun": "mines",
                    "bitti": false,
                    "bahis": 100,
                    "toplam": 100,
                    "kazanc": 0,
                    "carpan": 1.1,
                    "mayin": 3,
                    "acik": [
                      12
                    ],
                    "sonraki": 1.25,
                    "kredi": 4900
                  }
                }
              }
            }
          },
          "400": {
            "description": "Error (kod: bahis, gecersiz)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Error (kod: oturum_yok, giris_gerekli)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "402": {
            "description": "Error (kod: yetersiz_kredi)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden (kod: browser_required — not a real browser request; not_public)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Error (kod: oturum_yok_oyun)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Error (kod: rate_limit)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Error (kod: db_hata)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "oyun": {
                    "type": "string",
                    "description": "blackjack | mines | hilo | videopoker | zn-<key> (zn-towers, zn-dragontower, zn-doors, zn-defuse, zn-ladder, zn-bridge, zn-icelake, zn-minecart, zn-pump, zn-chicken, zn-streak, zn-penalty, zn-spacejump, zn-heist).",
                    "example": "mines"
                  },
                  "hamle": {
                    "type": "string",
                    "description": "basla (start, every game) · blackjack: hit | stand | double · mines: ac | nakit · hilo: yuksek | dusuk | atla | nakit · videopoker: cek · zn-*: ac | nakit. ac = reveal/advance, nakit = cash out, yuksek/dusuk = higher/lower, atla = skip card, cek = draw.",
                    "example": "basla"
                  },
                  "bahis": {
                    "type": "integer",
                    "description": "basla only: bet 10–2000. Blackjack \"double\" takes the same bet again.",
                    "example": "100"
                  },
                  "mayin": {
                    "type": "integer",
                    "description": "mines + basla: number of mines 1–24 on the 5×5 board.",
                    "example": "3"
                  },
                  "hucre": {
                    "type": "integer",
                    "description": "mines + ac: cell 0–24 (row × 5 + column, not opened before) · zn-* \"kule\" games + ac: box 0 … n−1 in the next row. Ignored by \"tek\" chain games.",
                    "example": "12"
                  },
                  "tut": {
                    "type": "boolean",
                    "description": "videopoker + cek: which of the 5 cards to hold (true = keep). Exactly 5 values.",
                    "example": "[true, true, false, false, true]"
                  },
                  "risk": {
                    "type": "string",
                    "description": "zn-* + basla: difficulty, one of the game's risk levels (see GET /api/oyun zincir and the game catalog).",
                    "example": "medium"
                  }
                },
                "required": [
                  "oyun",
                  "hamle"
                ]
              },
              "example": {
                "oyun": "mines",
                "hamle": "basla",
                "bahis": 100,
                "mayin": 3
              }
            }
          }
        }
      }
    },
    "/api/oyun/oturum": {
      "get": {
        "operationId": "gamesSession",
        "tags": [
          "Games & jackpots"
        ],
        "summary": "Resume an open game",
        "description": "The open session of a step-by-step game for the signed-in user, or null. Call it when the game page opens so a refreshed page continues the same hand.\n\nkredi is 0 in this response (not loaded); use GET /api/kredi for the balance.",
        "parameters": [
          {
            "name": "oyun",
            "in": "query",
            "required": true,
            "description": "blackjack | mines | hilo | videopoker | zn-<key>.",
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/XFSMode"
          }
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "durum": {
                      "type": "object",
                      "description": "Open session (bitti is always false here) or null."
                    }
                  }
                },
                "example": {
                  "ok": true,
                  "durum": {
                    "oyun": "hilo",
                    "bitti": false,
                    "bahis": 100,
                    "toplam": 100,
                    "kazanc": 0,
                    "carpan": 1.4,
                    "kart": 4,
                    "gecmis": [
                      8,
                      4
                    ],
                    "tahmin": [
                      "dusuk"
                    ],
                    "p_yuksek": 0.6923076923076923,
                    "p_dusuk": 0.38461538461538464,
                    "kredi": 0
                  }
                }
              }
            }
          },
          "401": {
            "description": "Error (kod: oturum_yok, giris_gerekli)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden (kod: browser_required — not a real browser request; not_public)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests (kod: rate_limit)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Error (kod: db_hata)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/api/oyun/akis": {
      "get": {
        "operationId": "gamesFeed",
        "tags": [
          "Games & jackpots"
        ],
        "summary": "Live feed, statistics & jackpot pools",
        "description": "Everything for a live game lobby: the latest hands, today's big wins, leaders, 30-day records, the four jackpot pools and recent jackpot winners, plus period statistics per player and per game (with the real return). Names are masked. Signed in, it also returns the user's own statistics. Use ?hafif=1 for a small, fast answer with only the jackpot pools and the last 5 jackpot winners (ideal for a ticker; poll every 5–15 s).\n\nThe first example is ?hafif=1, the second the full answer (shortened). The public part is cached for 3 seconds.\n\nPublic on external sites (no sign-in needed); send Authorization to also get benim / benim_son.\n\nIn liderler only oyuncu, net, el and harcama are filled (the other Lider fields are 0 / \"\").",
        "parameters": [
          {
            "name": "hafif",
            "in": "query",
            "required": false,
            "description": "\"1\" = light answer: only jackpot and jackpot_son (max 5).",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "donem",
            "in": "query",
            "required": false,
            "description": "Period of genel.donem statistics. Default 24h.",
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/XFSMode"
          }
        ],
        "security": [
          {},
          {
            "bearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "jackpot": {
                      "type": "array",
                      "items": {},
                      "description": "hafif=1 only: the four tiers."
                    },
                    "jackpot_son": {
                      "type": "array",
                      "items": {},
                      "description": "hafif=1 only: last 5 jackpot winners."
                    },
                    "genel": {
                      "type": "object",
                      "description": "Full answer: public feed and statistics. See the GameFeed model."
                    },
                    "benim": {
                      "type": "object",
                      "description": "Signed in only (last 30 days): {el, harcanan, kazanilan, net, en_iyi_carpan, en_buyuk, bugun_net, favori, oyun_bazli (game → hands), oyunlar[] (per-game summary), gunluk[] ({gun, net, harcama, el} for 14 days), jackpotlar[] (JackpotWin), kazanma (share of winning hands 0–1)}."
                    },
                    "benim_son": {
                      "type": "array",
                      "items": {},
                      "description": "Signed in only: the user's last 25 hands."
                    }
                  }
                },
                "example": {
                  "ok": true,
                  "jackpot": [
                    {
                      "ad": "grand",
                      "carpan": 500,
                      "havuz": 18234,
                      "bolen": 200000
                    },
                    {
                      "ad": "major",
                      "carpan": 150,
                      "havuz": 6120,
                      "bolen": 30000
                    },
                    {
                      "ad": "minor",
                      "carpan": 50,
                      "havuz": 2310,
                      "bolen": 12500
                    },
                    {
                      "ad": "mini",
                      "carpan": 10,
                      "havuz": 655,
                      "bolen": 4000
                    }
                  ],
                  "jackpot_son": [
                    {
                      "oyuncu": "Me***",
                      "ad": "mini",
                      "tutar": 1655,
                      "oyun": "plinko",
                      "bahis": 100,
                      "zaman": "2026-10-30T09:12:44Z"
                    }
                  ]
                }
              }
            }
          },
          "403": {
            "description": "Forbidden (kod: browser_required — not a real browser request; not_public)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests (kod: rate_limit)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Error (kod: db_hata)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/api/oyun/turnuva": {
      "get": {
        "operationId": "tournament",
        "tags": [
          "Wheel, streak, raffle & tournament"
        ],
        "summary": "Weekly tournament",
        "description": "This week's leaderboard (top 10), the signed-in user's place and last week's winners. A week runs Monday 00:00 – Sunday 23:59 UTC. Each player is ranked by their single best multiplier (carpan) on a hand with a bet of at least 100 credits; on a tie the earlier hand wins. When the week ends the prizes are paid automatically: 25000 / 10000 / 5000 credits for places 1–3 and 1000 for places 4–10.\n\nPublic on external sites (no sign-in needed); benim appears only when signed in and the user has a qualifying hand.\n\nThe leaderboard is cached for 10 seconds.",
        "parameters": [
          {
            "$ref": "#/components/parameters/XFSMode"
          }
        ],
        "security": [
          {},
          {
            "bearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "turnuva": {
                      "type": "object",
                      "description": "See the Tournament model."
                    }
                  }
                },
                "example": {
                  "ok": true,
                  "turnuva": {
                    "bas": "2026-10-26T00:00:00Z",
                    "bitis": "2026-11-02T00:00:00Z",
                    "min_bahis": 100,
                    "oduller": [
                      25000,
                      10000,
                      5000,
                      1000,
                      1000,
                      1000,
                      1000,
                      1000,
                      1000,
                      1000
                    ],
                    "liderler": [
                      {
                        "sira": 1,
                        "oyuncu": "Se***",
                        "carpan": 980.03,
                        "oyun": "plinko",
                        "bahis": 100,
                        "zaman": "2026-10-28T21:03:55Z",
                        "odul": 25000
                      },
                      {
                        "sira": 2,
                        "oyuncu": "Ka***",
                        "carpan": 312.5,
                        "oyun": "limbo",
                        "bahis": 200,
                        "zaman": "2026-10-29T11:20:07Z",
                        "odul": 10000
                      }
                    ],
                    "benim": {
                      "sira": 37,
                      "oyuncu": "Na***",
                      "carpan": 12.4,
                      "oyun": "tb-candy",
                      "bahis": 100,
                      "zaman": "2026-10-30T08:00:12Z",
                      "odul": 0
                    },
                    "gecen": [
                      {
                        "sira": 1,
                        "oyuncu": "Al***",
                        "carpan": 1000,
                        "oyun": "crash",
                        "bahis": 150,
                        "zaman": "2026-10-22T19:45:00Z",
                        "odul": 25000
                      }
                    ]
                  }
                }
              }
            }
          },
          "403": {
            "description": "Forbidden (kod: browser_required — not a real browser request; not_public)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests (kod: rate_limit)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Error (kod: db_hata)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/api/seri": {
      "get": {
        "operationId": "streak",
        "tags": [
          "Wheel, streak, raffle & tournament"
        ],
        "summary": "Daily streak status",
        "description": "The 7-day login streak: one bonus per UTC day — 100, 200, 300, 500, 750, 1000 and 2500 credits on day 7 — then it starts again at day 1. Missing a day restarts the streak at day 1.",
        "parameters": [
          {
            "$ref": "#/components/parameters/XFSMode"
          }
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "seri": {
                      "type": "object",
                      "description": "See the Streak model."
                    }
                  }
                },
                "example": {
                  "ok": true,
                  "seri": {
                    "seri": 3,
                    "bugun": false,
                    "sonraki": 4,
                    "oduller": [
                      100,
                      200,
                      300,
                      500,
                      750,
                      1000,
                      2500
                    ],
                    "sifirlama": "2026-10-31T00:00:00Z"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Error (kod: oturum_yok, giris_gerekli)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden (kod: browser_required — not a real browser request; not_public)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests (kod: rate_limit)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Error (kod: db_hata)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/api/seri/al": {
      "post": {
        "operationId": "streakClaim",
        "tags": [
          "Wheel, streak, raffle & tournament"
        ],
        "summary": "Claim today's streak bonus",
        "description": "Adds today's bonus (oduller[sonraki − 1]) to the balance and moves the streak forward. Once per UTC day.\n\nAlready claimed today → 409 { \"ok\": false, \"hata\": \"alindi\" } (code in hata). Show a countdown to sifirlama.",
        "parameters": [
          {
            "$ref": "#/components/parameters/XFSMode"
          }
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "seri": {
                      "type": "object",
                      "description": "New state, with kazanilan (credits added) and kredi (new balance)."
                    }
                  }
                },
                "example": {
                  "ok": true,
                  "seri": {
                    "seri": 4,
                    "bugun": true,
                    "sonraki": 5,
                    "oduller": [
                      100,
                      200,
                      300,
                      500,
                      750,
                      1000,
                      2500
                    ],
                    "sifirlama": "2026-10-31T00:00:00Z",
                    "kredi": 5500,
                    "kazanilan": 500
                  }
                }
              }
            }
          },
          "401": {
            "description": "Error (kod: oturum_yok, giris_gerekli)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden (kod: browser_required — not a real browser request; not_public)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Error (kod: alindi)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests (kod: rate_limit)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Error (kod: db_hata)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {}
              },
              "example": {}
            }
          }
        }
      }
    },
    "/api/cark": {
      "get": {
        "operationId": "wheel",
        "tags": [
          "Wheel, streak, raffle & tournament"
        ],
        "summary": "Hourly lucky wheel status",
        "description": "Whether the user can spin the free wheel this hour, the last prize and the wheel slices (prizes in display order). One spin per user per clock hour (UTC).\n\nOn igsub.me itself it answers without sign-in too (giris false, hazir false); external sites need the session token.",
        "parameters": [
          {
            "$ref": "#/components/parameters/XFSMode"
          }
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "giris": {
                      "type": "boolean",
                      "description": "true when signed in."
                    },
                    "hazir": {
                      "type": "boolean",
                      "description": "true = a spin is available now."
                    },
                    "son_miktar": {
                      "type": "integer",
                      "description": "Prize of this hour's spin (0 if not spun yet)."
                    },
                    "sonraki": {
                      "type": "string",
                      "format": "date-time",
                      "description": "Start of the next hour (next spin)."
                    },
                    "dilimler": {
                      "type": "integer",
                      "description": "Credits on each slice in wheel order: 100, 500, 200, 1000, 300, 2500, 750, 5000."
                    }
                  }
                },
                "example": {
                  "ok": true,
                  "giris": true,
                  "hazir": true,
                  "son_miktar": 0,
                  "sonraki": "2026-10-30T10:00:00Z",
                  "dilimler": [
                    100,
                    500,
                    200,
                    1000,
                    300,
                    2500,
                    750,
                    5000
                  ]
                }
              }
            }
          },
          "401": {
            "description": "Error (kod: giris_gerekli)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden (kod: browser_required — not a real browser request; not_public)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests (kod: rate_limit)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Error (kod: db_hata)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/api/cark/cevir": {
      "post": {
        "operationId": "wheelSpin",
        "tags": [
          "Wheel, streak, raffle & tournament"
        ],
        "summary": "Spin the hourly wheel",
        "description": "Picks the prize on the server and adds it to the balance. Spin your wheel animation so it stops on slice indeks.",
        "parameters": [
          {
            "$ref": "#/components/parameters/XFSMode"
          }
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "indeks": {
                      "type": "integer",
                      "description": "Winning slice (index into dilimler)."
                    },
                    "miktar": {
                      "type": "integer",
                      "description": "Credits won."
                    },
                    "kredi": {
                      "type": "integer",
                      "description": "New balance (also sent with cark_bekle)."
                    },
                    "sonraki": {
                      "type": "string",
                      "format": "date-time",
                      "description": "Next spin time."
                    }
                  }
                },
                "example": {
                  "ok": true,
                  "indeks": 2,
                  "miktar": 200,
                  "kredi": 5200,
                  "sonraki": "2026-10-30T10:00:00Z"
                }
              }
            }
          },
          "401": {
            "description": "Error (kod: oturum_yok, giris_gerekli)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden (kod: browser_required — not a real browser request; not_public)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Error (kod: cark_bekle)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Error (kod: db_hata)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {}
              },
              "example": {}
            }
          }
        }
      }
    },
    "/api/cekilis": {
      "get": {
        "operationId": "raffle",
        "tags": [
          "Wheel, streak, raffle & tournament"
        ],
        "summary": "Daily raffle status",
        "description": "Today's raffle (UTC day): tickets cost 100 credits, max 50 per user per day. When the day ends one ticket is drawn and its owner wins 97% of all ticket credits.",
        "parameters": [
          {
            "$ref": "#/components/parameters/XFSMode"
          }
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "cekilis": {
                      "type": "object",
                      "description": "{gun, toplam_bilet, katilimci, havuz (prize now), benim_bilet, bilet_fiyat (100), max_bilet (50), bitis (draw time), son_kazanan (masked), son_odul, son_ben_kazandim}."
                    }
                  }
                },
                "example": {
                  "ok": true,
                  "cekilis": {
                    "gun": "2026-10-30",
                    "toplam_bilet": 420,
                    "katilimci": 61,
                    "havuz": 40740,
                    "benim_bilet": 5,
                    "bilet_fiyat": 100,
                    "max_bilet": 50,
                    "bitis": "2026-10-31T00:00:00Z",
                    "son_kazanan": "Ay***",
                    "son_odul": 38800
                  }
                }
              }
            }
          },
          "401": {
            "description": "Error (kod: giris_gerekli)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden (kod: browser_required — not a real browser request; not_public)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests (kod: rate_limit)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Error (kod: db_hata)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/api/cekilis/bilet": {
      "post": {
        "operationId": "raffleBuy",
        "tags": [
          "Wheel, streak, raffle & tournament"
        ],
        "summary": "Buy raffle tickets",
        "description": "Buys adet tickets for today's raffle (adet × 100 credits).",
        "parameters": [
          {
            "$ref": "#/components/parameters/XFSMode"
          }
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "kredi": {
                      "type": "integer",
                      "description": "New balance."
                    },
                    "benim_bilet": {
                      "type": "integer",
                      "description": "User's tickets today."
                    }
                  }
                },
                "example": {
                  "ok": true,
                  "kredi": 4500,
                  "benim_bilet": 5
                }
              }
            }
          },
          "400": {
            "description": "Error (kod: gecersiz, limit)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Error (kod: oturum_yok, giris_gerekli)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "402": {
            "description": "Error (kod: yetersiz_kredi)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden (kod: browser_required — not a real browser request; not_public)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests (kod: rate_limit)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "500": {
            "description": "Error (kod: db_hata)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "adet": {
                    "type": "integer",
                    "description": "Tickets, 1–50 (today's total per user max 50).",
                    "example": "5"
                  }
                },
                "required": [
                  "adet"
                ]
              },
              "example": {
                "adet": 5
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "bearerAuth": {
        "type": "http",
        "scheme": "bearer",
        "description": "session_token from GET /api/auth/device/poll (valid 30 days)."
      }
    },
    "parameters": {
      "XFSCaptcha": {
        "name": "X-FS-Captcha",
        "in": "header",
        "required": true,
        "schema": {
          "type": "string"
        },
        "description": "hCaptcha token from https://igsub.me/captcha/frame.html (postMessage { fsCaptcha }). One token per call."
      },
      "XFSMode": {
        "name": "X-FS-Mode",
        "in": "header",
        "required": true,
        "schema": {
          "type": "string",
          "enum": [
            "token"
          ]
        },
        "description": "Always \"token\" (cookie-less cross-site mode)."
      }
    },
    "schemas": {
      "Error": {
        "type": "object",
        "properties": {
          "kod": {
            "type": "string",
            "description": "Language-neutral error code.",
            "enum": [
              "giris_gerekli",
              "kanal_cooldown",
              "oturum_yok",
              "kullanici_yok",
              "browser_required",
              "not_public",
              "captcha_yok",
              "captcha_ret",
              "kredi_yok",
              "min_kredi",
              "referans_gerekli",
              "rate_limit",
              "gecersiz_govde",
              "gecersiz_tip",
              "hedef_yok",
              "link_gecersiz",
              "servis_yok",
              "bos_girdi",
              "cozulemedi",
              "kanal_yok",
              "video_yok",
              "siparis_yok",
              "referans_gecersiz",
              "referans_kendi",
              "referans_var",
              "referans_limit",
              "kanal_alinamadi",
              "device_hata",
              "yetersiz_kredi",
              "bahis",
              "gecersiz",
              "oturum_yok_oyun",
              "alindi",
              "cark_bekle",
              "limit",
              "db_hata"
            ]
          },
          "error": {
            "type": "string",
            "description": "English message."
          },
          "hata": {
            "type": "string",
            "description": "Same message (legacy field)."
          }
        },
        "required": [
          "kod"
        ]
      },
      "OrderStatus": {
        "type": "string",
        "enum": [
          "pending",
          "queued",
          "in_progress",
          "completed",
          "partial",
          "canceled",
          "failed"
        ],
        "description": "pending: Created, not yet sent to delivery. queued: Accepted by the delivery engine, waiting to start. in_progress: Delivering. biten_sayac grows. completed: Finished (final). partial: Finished, but only part was delivered (final). Credits for the undelivered part are refunded automatically. canceled: Canceled (final). failed: Could not be dispatched; credits refunded (final)."
      },
      "Service": {
        "type": "object",
        "properties": {
          "tip": {
            "type": "string",
            "description": "Service type used in orders."
          },
          "platform": {
            "type": "string",
            "description": "youtube | instagram | tiktok | x | facebook"
          },
          "tur": {
            "type": "string",
            "description": "sub | like | comment | comment_like | views | likes"
          },
          "min_adet": {
            "type": "integer",
            "description": "Minimum quantity."
          },
          "max_adet": {
            "type": "integer",
            "description": "Maximum quantity per order."
          },
          "kredi_carpani": {
            "type": "integer",
            "description": "Credits per unit."
          },
          "min_referans": {
            "type": "integer",
            "description": "Invites needed to unlock (0 = open)."
          },
          "aktif": {
            "type": "boolean",
            "description": "false = hide it."
          },
          "sira": {
            "type": "integer",
            "description": "Display order."
          }
        },
        "description": "Item of /api/link-servisler."
      },
      "Channel": {
        "type": "object",
        "properties": {
          "channel_id": {
            "type": "string",
            "description": "UC… id."
          },
          "handle": {
            "type": "string",
            "description": "Handle without @."
          },
          "ad": {
            "type": "string",
            "description": "Name."
          },
          "aciklama": {
            "type": "string",
            "description": "Description."
          },
          "avatar": {
            "type": "string",
            "description": "Avatar URL."
          },
          "banner": {
            "type": "string",
            "description": "Banner URL (may be empty)."
          },
          "abone_sayi": {
            "type": "integer",
            "description": "Subscribers."
          },
          "video_sayi": {
            "type": "integer",
            "description": "Videos."
          }
        },
        "description": "YouTube channel card."
      },
      "Video": {
        "type": "object",
        "properties": {
          "video_id": {
            "type": "string",
            "description": "Video id."
          },
          "channel_id": {
            "type": "string",
            "description": "Channel id."
          },
          "baslik": {
            "type": "string",
            "description": "Title."
          },
          "aciklama": {
            "type": "string",
            "description": "Description."
          },
          "kapak": {
            "type": "string",
            "description": "Thumbnail URL (fallback: https://i.ytimg.com/vi/<id>/mqdefault.jpg)."
          },
          "goruntulenme": {
            "type": "integer",
            "description": "Views."
          },
          "sure_sn": {
            "type": "integer",
            "description": "Duration in seconds."
          },
          "etiketler": {
            "type": "array",
            "items": {},
            "description": "Tags."
          }
        },
        "description": "Video card in channel lists."
      },
      "OrderSummary": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "description": "Numeric id (for /api/siparislerim/{id})."
          },
          "public_token": {
            "type": "string",
            "description": "Order token (for /api/order/{order_id})."
          },
          "platform": {
            "type": "string",
            "description": "Platform."
          },
          "tip": {
            "type": "string",
            "description": "Service type."
          },
          "hedef_kanal": {
            "type": "string",
            "description": "Target channel."
          },
          "hedef_video": {
            "type": "string",
            "description": "Target video / link."
          },
          "adet": {
            "type": "integer",
            "description": "Quantity."
          },
          "status": {
            "type": "object",
            "description": "English status."
          },
          "baslangic_sayac": {
            "type": "integer",
            "description": "Start count."
          },
          "biten_sayac": {
            "type": "integer",
            "description": "Delivered."
          },
          "son_olay": {
            "type": "string",
            "description": "Latest event name."
          },
          "olusturma": {
            "type": "string",
            "format": "date-time",
            "description": "Created."
          },
          "biten": {
            "type": "string",
            "format": "date-time",
            "description": "Finished (omitted while running)."
          }
        },
        "description": "Row of /api/siparislerim."
      },
      "OrderEvent": {
        "type": "object",
        "properties": {
          "olay": {
            "type": "string",
            "description": "olusturuldu (created) · kuyruga_alindi (queued for delivery) · teslimat_hata (dispatch error) · kredi_iade (credits refunded) · otomatik_sonlandir (closed automatically)"
          },
          "detay": {
            "type": "string",
            "description": "Free text detail."
          },
          "ts": {
            "type": "string",
            "format": "date-time",
            "description": "Time."
          }
        },
        "description": "Timeline item."
      },
      "CreditTx": {
        "type": "object",
        "properties": {
          "tur": {
            "type": "string",
            "description": "saatlik (hourly free credits) · hosgeldin (welcome bonus) · referans_bonus (invite bonus) · siparis (order, negative) · iade (refund) · oyun (game: bet/payout, net per hand) · jackpot (jackpot win) · seri (daily streak) · turnuva (tournament prize) · cark (hourly wheel) · cekilis (raffle tickets / win)"
          },
          "miktar": {
            "type": "integer",
            "description": "+ added / − spent."
          },
          "aciklama": {
            "type": "string",
            "description": "Detail."
          },
          "order_id": {
            "type": "integer",
            "description": "Related order (optional)."
          },
          "olusturma": {
            "type": "string",
            "format": "date-time",
            "description": "Time."
          }
        },
        "description": "Credit history row."
      },
      "GameResult": {
        "type": "object",
        "properties": {
          "oyun": {
            "type": "string",
            "description": "Game key sent."
          },
          "bahis": {
            "type": "integer",
            "description": "Credits staked on this hand (tumble bonus buy: bahis × bonus_fiyat)."
          },
          "kazanc": {
            "type": "integer",
            "description": "Payout (0 = lost). floor(bet × carpan), max 200000."
          },
          "net": {
            "type": "integer",
            "description": "kazanc − bahis (negative on a loss)."
          },
          "carpan": {
            "type": "object",
            "description": "Total return multiplier of the hand (0 = lost, 1 = bet back)."
          },
          "sonuc": {
            "type": "string",
            "description": "Game-specific label: coin side, roulette colour, rps server hand, baccarat/dragontiger winner, slot/scratch/darts row, tumble theme. \"\" for other games."
          },
          "deger": {
            "type": "object",
            "description": "Optional. dice roll, limbo/crash point, roulette number, lucky number, sicbo/ou7 total, baccarat player points, darts angle."
          },
          "indeks": {
            "type": "integer",
            "description": "plinko pocket, wheel / moneywheel slice, cups cup, rps server hand (0 rock, 1 paper, 2 scissors), keno hits, horse winner, baccarat banker points; 0 otherwise."
          },
          "yol": {
            "type": "integer",
            "description": "Optional. plinko path, one 0 (left) / 1 (right) per row."
          },
          "kartlar": {
            "type": "integer",
            "description": "Optional. baccarat [player, banker] / dragontiger [[dragon], [tiger]]. Card code 0–51: rank = code % 13 + 1 (1 = A … 13 = K), suit = floor(code / 13) (0 ♠, 1 ♥, 2 ♦, 3 ♣)."
          },
          "sayilar": {
            "type": "integer",
            "description": "Optional. keno draw (10 numbers), sicbo / ou7 dice, horse finish order."
          },
          "tur": {
            "type": "object",
            "description": "Optional. tumble only: the whole round for the animation."
          },
          "jackpot": {
            "type": "object",
            "description": "Optional. Jackpot hit on this request: tier and credits added."
          },
          "kredi": {
            "type": "integer",
            "description": "Balance after the request."
          }
        },
        "description": "One hand of POST /api/oyun/oyna (sonuc / sonuclar[]). Fields marked optional are left out when empty."
      },
      "TumbleRound": {
        "type": "object",
        "properties": {
          "spinler": {
            "type": "array",
            "items": {},
            "description": "Spins in order (base spin then free spins). a = cascade steps; ku = orb total applied (scatter engine); gc = global multiplier after the free spin; k = spin win (× bet); sc = scatters landed; fs = true for a free spin; ek = extra free spins won."
          },
          "fs_sayi": {
            "type": "integer",
            "description": "Free spins played."
          },
          "toplam": {
            "type": "object",
            "description": "Round win in multiples of the bet (kazanc = floor(bet × toplam)); capped at 5000."
          },
          "bonus": {
            "type": "boolean",
            "description": "Optional. true for a bought bonus."
          },
          "sutun": {
            "type": "integer",
            "description": "Columns (6 scatter, 7 cluster)."
          },
          "satir": {
            "type": "integer",
            "description": "Rows (5 scatter, 7 cluster)."
          },
          "mod": {
            "type": "string",
            "description": "Engine."
          }
        },
        "description": "GameResult.tur of a tumble slot. Grids are row-major arrays of sutun × satir cells (index = row × sutun + column). Cell values: 0 … 8 symbols (low to high pay; cluster games 0 … 6), 9 = scatter, 100 + v = multiplier orb ×v (e.g. 105 = ×5, scatter engine only)."
      },
      "GameSession": {
        "type": "object",
        "properties": {
          "oyun": {
            "type": "string",
            "description": "Game key."
          },
          "bitti": {
            "type": "boolean",
            "description": "true = game over (payout added, session closed)."
          },
          "bahis": {
            "type": "integer",
            "description": "Hand bet."
          },
          "toplam": {
            "type": "integer",
            "description": "Total staked (blackjack double adds the bet again)."
          },
          "kazanc": {
            "type": "integer",
            "description": "Payout when bitti (0 while playing)."
          },
          "carpan": {
            "type": "object",
            "description": "Playing: current cash-out multiplier (mines, hilo, chain). Finished: kazanc / toplam."
          },
          "sonuc": {
            "type": "string",
            "description": "When bitti: win | lose | push | blackjack | bust | cashout, or the video poker hand name (royal_flush … jacks_better; lose when nothing)."
          },
          "sonraki": {
            "type": "object",
            "description": "mines / chain: multiplier after one more safe step."
          },
          "kredi": {
            "type": "integer",
            "description": "Balance after the move (0 in GET /api/oyun/oturum)."
          },
          "jackpot": {
            "type": "object",
            "description": "Jackpot hit at basla."
          },
          "oyuncu": {
            "type": "integer",
            "description": "blackjack: player cards (card codes, see GameResult.kartlar)."
          },
          "kurp": {
            "type": "integer",
            "description": "blackjack: dealer cards; [upcard, -1] while playing (-1 = face down)."
          },
          "oyuncu_t": {
            "type": "integer",
            "description": "blackjack: player total."
          },
          "kurp_t": {
            "type": "integer",
            "description": "blackjack: dealer total (upcard only while playing)."
          },
          "ikikat_ok": {
            "type": "boolean",
            "description": "blackjack: double is allowed now."
          },
          "mayin": {
            "type": "integer",
            "description": "mines: number of mines."
          },
          "acik": {
            "type": "integer",
            "description": "mines: opened cells (0–24)."
          },
          "mayinlar": {
            "type": "integer",
            "description": "mines: mine cells, only when bitti."
          },
          "kart": {
            "type": "integer",
            "description": "hilo: current card code."
          },
          "gecmis": {
            "type": "integer",
            "description": "hilo: all cards so far."
          },
          "tahmin": {
            "type": "array",
            "items": {},
            "description": "hilo: guesses so far (yuksek | dusuk | atla)."
          },
          "p_yuksek": {
            "type": "object",
            "description": "hilo: chance (0–1) that \"yuksek\" wins on the current card."
          },
          "p_dusuk": {
            "type": "object",
            "description": "hilo: chance (0–1) that \"dusuk\" wins."
          },
          "el": {
            "type": "integer",
            "description": "videopoker: the 5 cards (after cek: the final hand)."
          },
          "el_adi": {
            "type": "string",
            "description": "videopoker: current hand name (\"\" = no win)."
          },
          "risk": {
            "type": "string",
            "description": "chain: difficulty."
          },
          "n": {
            "type": "integer",
            "description": "chain: boxes per row (kule) / odds denominator (tek)."
          },
          "k": {
            "type": "integer",
            "description": "chain: safe boxes per row (chance per step k / n)."
          },
          "max_adim": {
            "type": "integer",
            "description": "chain: steps until automatic cash-out."
          },
          "satirlar": {
            "type": "boolean",
            "description": "chain: revealed rows (true = safe box); \"tek\" games have one value per step."
          },
          "secimler": {
            "type": "integer",
            "description": "chain: box picked in each row."
          }
        },
        "description": "durum of POST /api/oyun/hamle and GET /api/oyun/oturum. Only the fields of the current game are present (optional fields are left out when empty)."
      },
      "GameFeed": {
        "type": "object",
        "properties": {
          "son": {
            "type": "array",
            "items": {},
            "description": "Last 30 hands of all players."
          },
          "buyuk": {
            "type": "array",
            "items": {},
            "description": "Top 10 wins of the last 24 hours."
          },
          "liderler": {
            "type": "array",
            "items": {},
            "description": "Top 10 net winners of the last 24 hours ({oyuncu, net, el, harcama})."
          },
          "rekor": {
            "type": "array",
            "items": {},
            "description": "Top 20 wins of the last 30 days."
          },
          "jackpot": {
            "type": "array",
            "items": {},
            "description": "The four jackpot tiers."
          },
          "jackpot_son": {
            "type": "array",
            "items": {},
            "description": "Last 20 jackpot winners."
          },
          "donem": {
            "type": "object",
            "description": "Statistics for ?donem: {donem, kazananlar[], oynayanlar[], kaybedenler[] (Lider: oyuncu, net, el, harcama, kazanc, en_iyi, favori, son; top 20 each), oyunlar[] ({oyun, el, oyuncu, harcama, odeme, rtp, en_iyi, en_buyuk, kazanma} per game, rtp = real return), toplam {el, harcama, odeme, oyuncu}}."
          },
          "gun": {
            "type": "object",
            "description": "Last 24 hours: {el (hands), harcama (credits bet), oyuncu (players)}."
          },
          "FeedRow": {
            "type": "object",
            "description": "oyun is the stored key: game key, \"tb-<theme>\" for tumble, \"zn-<key>\" for chain games; slot themes are stored as \"slots\"."
          }
        },
        "description": "genel of GET /api/oyun/akis. Player names are masked (\"Al***\")."
      },
      "JackpotPool": {
        "type": "object",
        "properties": {
          "ad": {
            "type": "string",
            "description": "Tier."
          },
          "carpan": {
            "type": "integer",
            "description": "Fixed multiplier of the bet: 500 / 150 / 50 / 10."
          },
          "havuz": {
            "type": "integer",
            "description": "Current progressive pool in credits."
          },
          "bolen": {
            "type": "integer",
            "description": "Chance per hand is 1 / bolen (200000 / 30000 / 12500 / 4000)."
          },
          "JackpotWin": {
            "type": "object",
            "description": "Winner row (jackpot_son): masked name, tier, credits won, game, bet, time."
          }
        },
        "description": "One jackpot tier. A hit pays carpan × bet (bet counted up to 2000) + the progressive pool × min(1, bet / 100) — the whole pool at a bet of 100 or more. Every bet adds 0.25% to each pool. One roll per request; tiers are checked from grand down."
      },
      "Tournament": {
        "type": "object",
        "properties": {
          "bas": {
            "type": "string",
            "format": "date-time",
            "description": "Week start (Monday 00:00 UTC)."
          },
          "bitis": {
            "type": "string",
            "format": "date-time",
            "description": "Week end (next Monday 00:00 UTC) — prizes are paid then."
          },
          "min_bahis": {
            "type": "integer",
            "description": "Minimum bet of a qualifying hand (100)."
          },
          "oduller": {
            "type": "integer",
            "description": "Prize per place 1–10: 25000, 10000, 5000, 1000 × 7."
          },
          "liderler": {
            "type": "array",
            "items": {},
            "description": "Top 10: {sira, oyuncu, carpan, oyun, bahis, zaman, odul}."
          },
          "benim": {
            "type": "object",
            "description": "Signed-in user's place (left out when none)."
          },
          "gecen": {
            "type": "array",
            "items": {},
            "description": "Last week's paid winners."
          }
        },
        "description": "turnuva of GET /api/oyun/turnuva."
      },
      "Streak": {
        "type": "object",
        "properties": {
          "seri": {
            "type": "integer",
            "description": "Last claimed day 1–7 (0 = none or broken)."
          },
          "bugun": {
            "type": "boolean",
            "description": "true = today's bonus already claimed."
          },
          "sonraki": {
            "type": "integer",
            "description": "Day (1–7) that the next claim pays."
          },
          "oduller": {
            "type": "integer",
            "description": "Bonus per day: 100, 200, 300, 500, 750, 1000, 2500."
          },
          "sifirlama": {
            "type": "string",
            "format": "date-time",
            "description": "Next UTC day start (next claim possible)."
          },
          "kredi": {
            "type": "integer",
            "description": "POST only: new balance."
          },
          "kazanilan": {
            "type": "integer",
            "description": "POST only: credits added."
          }
        },
        "description": "seri of GET /api/seri and POST /api/seri/al."
      }
    }
  }
}