Gerbang API: akses web (Stockbit, Gemini, DeepSeek, Dola) menjadi API key siap pakai.
Header : X-API-Key: ak_xxxxx Bearer : Authorization: Bearer ak_xxxxx Query : ?apikey=ak_xxxxx
Key dibuat di dashboard web (https://aksesapi.pages.dev) → tab API Key. Nilai penuh hanya ditampilkan sekali.
| Method | Path | Keterangan |
|---|---|---|
| GET | /api/v1/ping | Cek hidup |
| GET | /api/v1/providers | Daftar provider |
| GET | /api/v1/models?provider=gemini | Daftar model |
| POST | /api/v1/chat/completions | Chat (OpenAI-compatible) |
| GET | /api/v1/stockbit/sectors | Daftar sektor IDX |
| GET | /api/v1/stockbit/info/{kode} | Info emiten |
| GET | /api/v1/stockbit/orderbook/{kode} | Orderbook bid/offer |
| GET | /api/v1/stockbit/historical/{kode} | OHLC historis (days,limit,page,start,end) |
| GET | /api/v1/stockbit/keystats/{kode} | PER/PBV/ROE 10 tahun |
| GET | /api/v1/stockbit/broker/{kode} | Bandarmologi (days,limit) |
| GET | /api/v1/test/{provider} | Uji kredensial provider |
| GET | /api/v1/generic/{provider}/{path} | Passthrough endpoint provider |
curl -H "X-API-Key: ak_xxxxx" \
"https://aksesapi.pages.dev/api/v1/stockbit/broker/BBCA?days=30"
curl -X POST "https://aksesapi.pages.dev/api/v1/chat/completions" \
-H "X-API-Key: ak_xxxxx" -H "Content-Type: application/json" \
-d '{"provider":"gemini","model":"gemini-3.5-flash",
"messages":[{"role":"user","content":"Analisis BBCA"}]}'
| Endpoint | Parameter | Keterangan |
|---|---|---|
| /stockbit/historical | days (≤365), limit (≤50), page | Batas upstream; otomatis dijepit |
| /stockbit/broker | days (≤365), limit (≤25) | Rekap akumulasi/distribusi broker |
| /chat/completions | provider, model, messages, stream | provider: gemini | deepseek | dola |
Tempel ringkasan ini ke prompt AI-mu:
Base URL: https://aksesapi.pages.dev/api/v1
Auth : header X-API-Key: ak_xxxxx
Docs : https://aksesapi.pages.dev/llms.txt
Stockbit data saham Indonesia: /stockbit/broker/{kode}, /stockbit/keystats/{kode},
/stockbit/historical/{kode}, /stockbit/orderbook/{kode}
Chat : POST /chat/completions {"provider":"gemini|deepseek|dola","messages":[...]}