English English
Chinese Chinese
English English

Frequently Asked Questions

Common questions and solutions for BYW Lottery API integration.

Account & Token

Q: How to get API Token?

A: Login to BYW, go to "API Management" -> "Token Management" to create your token.

Q: Token validity period?

A: Tokens don't expire, but your account must have active API access and sufficient permissions.

API Calls

Q: "Token not found" error?

  • Check token spelling
  • Verify token exists in dashboard
  • Ensure account has active API access
  • Confirm lottery is purchased for this token

Q: Request interval?

A: Latest query: min 1 second, recommended 5-10 seconds. History query: min 10 seconds.

Q: Supported languages?

A: All HTTP-capable languages: C#, PHP, JavaScript, Python, Java, Go, etc.

Error Codes

Code Meaning Solution
1001 Token empty Add valid token
1002 Token invalid/expired Check token
1003 Permission denied Purchase lottery access
1004 Invalid lottery code Check lotteryid
1005 Too many requests Reduce frequency
1006 IP not authorized Add to whitelist

Security

Q: Token leaked?

  1. Delete the leaked token in dashboard
  2. Create a new token
  3. Check usage history for anomalies

💬 Need Help?