Developer Reference Live Real-Time Responses

API Documentation & Live Console

Integrate real-time, low-latency data feeds. All responses below are fetched live directly from production endpoints. Htay API ဝန်ဆောင်မှုများကို ချိတ်ဆက်အသုံးပြုရန် လမ်းညွှန်ဖြစ်ပါသည်။ အောက်ပါ Response အားလုံးသည် Example အဟောင်းများမဟုတ်ဘဲ တိုက်ရိုက် Real-Time Data အစစ်များ ဖြစ်ပါသည်။

Headers & 2027 Policy Demo Sandbox Endpoints
Mandatory Deadline: May 1, 2027 (2027-05-01) Zero-Trust Auth Standard

Authentication Headers & Platform Whitelist Guide Header ဖြင့် API ခေါ်ယူပုံနှင့် လုံခြုံရေး Whitelist သတ်မှတ်ချက် လမ်းညွှန်

Configure Key Whitelist in Dashboard
Important Security Transition (Effective May 1, 2027): Passing your API key via URL query (?key=YOUR_KEY) and leaving whitelists unrestricted (all) will be retired on 2027-05-01. Before the deadline, legacy calls still work with a security_notice at the top of the JSON response. After the deadline, every platform MUST send X-HtayApi-Key + X-HtayApi-Platform and lock their Domain, Server IP, or Mobile Package + Secret in the Dashboard.
အရေးကြီး လုံခြုံရေး အသိပေးချက် (၂၀၂၇ မေလ ၁ ရက်နေ့ နောက်ဆုံး): လက်ရှိအချိန် (၂၀၂၇-၀၅-၀၁ မတိုင်ခင်) တွင် URL ၌ ?key=... ထည့်ခေါ်ခြင်းနှင့် Dashboard တွင် all ထားပြီး ခေါ်ခြင်းများ ဆက်လက်အလုပ်လုပ်နေဦးမည် ဖြစ်ပါသည်။ သို့သော် ၂၀၂၇ မေလ ၁ ရက်နေ့ ကျော်လွန်ပြီးနောက် သင်၏ API Key ခိုးယူမခံရစေရန် all ဖြင့် ခေါ်ခွင့်ပိတ်သိမ်းမည်ဖြစ်ပြီး Web / Server / Mobile App တိုင်းတွင် သက်ဆိုင်ရာ Header များ နှင့် Dashboard Whitelist များ မဖြစ်မနေ ထည့်သွင်းထားရပါမည်။
1. Backend Server platform: server

For Node.js, PHP, Python, Go, Java, or VPS servers. Configure your server's outbound IP (or CIDR like 103.25.10.0/24) under Allowed Server IPs in Dashboard.

Node.js, PHP, Python, VPS Server များမှ ခေါ်ယူရန် ဖြစ်ပါသည်။ Dashboard → Key Settings → Allowed Server IPs တွင် သင့် Server IP အတိအကျ ထည့်ထားရပါမည် (all မထားရပါ)။

# Required HTTP Headers
X-HtayApi-Key: YOUR_API_KEY
X-HtayApi-Platform: server
Accept: application/json
2. Web App (Browser) platform: web

For React, Vue, Next.js, or Vanilla JS websites. Add your domain (e.g. mysite.com) under Allowed Web Domains. Browsers send Origin automatically. No App Secret needed.

Website Frontend (React, Vue, JS) များမှ တိုက်ရိုက်ခေါ်ရန် ဖြစ်ပါသည်။ Dashboard → Allowed Web Domains တွင် သင့် Domain ထည့်ထားရမည်။ Browser က Origin ကို Auto ပို့ပေးမည်ဖြစ်၍ App Secret မလိုအပ်ပါ။

# Required HTTP Headers
X-HtayApi-Key: YOUR_API_KEY
X-HtayApi-Platform: web
Origin: https://mysite.com (Auto)
3. Mobile App (Android/iOS) platform: app

For Flutter, React Native, Kotlin, or Swift apps. Configure BOTH your Bundle/Package ID and generate an App Secret in Dashboard to prevent APK reverse-engineering theft.

Flutter, Android, iOS App များအတွက် ဖြစ်ပါသည်။ APK Decompile လုပ်၍ Key ခိုးသုံးခြင်းမှ ကာကွယ်ရန် Dashboard တွင် Package Name နှင့် App Secret ၂ ခုလုံး မဖြစ်မနေ ထည့်သွင်းထားရပါမည်။

# Required HTTP Headers
X-HtayApi-Key: YOUR_API_KEY
X-HtayApi-Platform: app
X-HtayApi-Package: com.mycompany.app
X-HtayApi-Secret: htay_xxxxxxxx
Test 2027 Strict Mode Early Today: Send header X-HtayApi-Strict-Test: true on any request. If your setup reaches X-HtayApi-Security-Score: 100/100, the security_notice disappears automatically!
၂၀၂၇ စည်းမျဉ်းအတွက် ယနေ့ပင် ကြိုတင်စမ်းသပ်နိုင်ပါသည် — Request Header တွင် X-HtayApi-Strict-Test: true ထည့်စမ်းကြည့်ပါ။ အားလုံးမှန်ကန်ပြီး 100/100 ရသွားပါက JSON ထိပ်ဆုံးမှ security_notice အလိုအလျောက် ပျောက်သွားပါမည်။

Free Public Sandbox Key: demoapi No Signup Required

Browser Address Bar Direct: Unlimited inspection (?key=demoapi). Code / App / Web Testing: 20 GET & 2 POST requests per IP daily (resets 7:00 AM MMT). For Web testing include X-HtayApi-Platform: web; for Mobile App testing include X-HtayApi-Platform: app, X-HtayApi-Package & X-HtayApi-Secret.

Browser မှ တိုက်ရိုက်ဖွင့်ကြည့်ပါက — ?key=demoapi ဖြင့် အကြိမ်ရေ အကန့်အသတ်မရှိ စမ်းကြည့်နိုင်ပါသည်။ Code / Web / App ဖြင့် စမ်းသပ်ပါက — IP တစ်ခုလျှင် တစ်ရက် GET အကြိမ် ၂၀ နှင့် POST ၂ ကြိမ် အခမဲ့ စမ်းသပ်နိုင်ပြီး မြန်မာစံတော်ချိန် နံနက် ၇:၀၀ နာရီတွင် အလိုအလျောက် Reset ဖြစ်ပါမည်။

Get Free API Key

Loading API Endpoints Reference...

Standard HTTP & Security Error Codes အသုံးများသော Error Code များနှင့် ဖြေရှင်းနည်း

HTTP Machine Code Meaning / ရှင်းလင်းချက်
401 API_KEY_MISSING / API_KEY_INVALID / INVALID_APP_SECRET Missing or invalid API Key or Mobile App Secret. API Key သို့မဟုတ် Mobile App Secret မပါဝင်ခြင်း / မှားယွင်းနေခြင်း။
403 AUTH_HEADER_REQUIRED / STRICT_*_REQUIRED / DOMAIN_RESTRICTED / IP_RESTRICTED Key expired, domain/IP/package mismatch, or missing required header/whitelist after 2027-05-01. သက်တမ်းကုန်ခြင်း၊ Domain/IP/Package မကိုက်ညီခြင်း (သို့) ၂၀၂၇-၀၅-၀၁ နောက်ပိုင်း Whitelist မထည့်ထားခြင်း။
429 QUOTA_EXHAUSTED / RPM_LIMIT_EXCEEDED / DEMO_QUOTA_EXCEEDED Daily quota or per-minute burst limit reached. Daily quota resets at 7:00 AM Asia/Yangon. နေ့စဉ် Quota သို့မဟုတ် တစ်မိနစ် Rate Limit ပြည့်သွားခြင်း (မြန်မာစံတော်ချိန် နံနက် ၇:၀၀ တွင် Reset ဖြစ်သည်)။

Customer Support

Copied