Current Location: Home - Technical Articles - Boyi API Data Collection Interface – Request Parameters Documentation

Boyi API Data Collection Interface – Request Parameters Documentation

2019-01-28 Author: Byw.bet Views: 212

Interface Description:

Interface Name Boyi API Open Platform (Paid API)
Function Provides stable lottery draw data
Data Content Draw period, winning numbers, draw time (some lotteries include next period and countdown)
Access Method HTTP / HTTPS (Web API)
Return Format XML / JSON
Encoding UTF-8
JSONP Support Supported (callback parameter)
Note Socket, HTTP Push, and other access methods will be supported in the future

API Endpoint:

Request URL http://api.byw.bet:868/api
Request Method GET
Example Request http://api.byw.bet:868/api?token=[KEY]&t=[LOTTERY_CODE]&limit=[ROWS]&p=[FORMAT]

Request Parameters:

Parameter Required Description Example
token Yes API key (case-insensitive) ceshi
t Yes Lottery code (see lottery list) cqssc / ssq
limit No Number of rows to return, default 1, range 1–10 1
p Yes Return data format xml / json

API Call Examples:

Description Request URL
Chongqing SSC XML (1 row) http://api.byw.bet:868/api?token=ceshi&t=cqssc&limit=1&p=xml
Chongqing SSC JSON (3 rows) http://api.byw.bet:868/api?token=ceshi&t=cqssc&limit=3&p=json
Chongqing SSC JSON (5 rows) http://api.byw.bet:868/api?token=ceshi&t=cqssc&limit=5&p=json

Additional Notes:

Case Sensitivity All parameters are case-insensitive
Maximum Rows Up to 50 rows per request
API Type Paid API
Top Reads Recommended Articles