English English
Chinese Chinese
English English
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: 418

API Description:

API Name BYW API Open Platform (Paid API)
Function Provides stable lottery draw result data
Data Content Draw period number, winning numbers, draw time (some lottery types also include next period number and next draw time)
Access Method HTTP / HTTPS (Supports GET / POST)
CORS Support Supports cross-origin CORS GET / POST requests
Response Format XML / JSON / JSON2 / JSONP
Encoding UTF-8
JSONP Support Supported (callback parameter)
Remarks Future support for Socket and HTTP Push integration

API Endpoint:

Request URL https://api.byw.bet/api
Request Method GET / POST
GET Example https://api.byw.bet/api?token=YOUR_TOKEN&t=cqssc&limit=5&p=json
POST Example
POST https://api.byw.bet/api
Content-Type: application/json
{"p": "json","t": "120","token": "YOUR_TOKEN","limit": "5","date": "20260628","nexttime": "1"}

Request Parameters:

Parameter Required Description Example
token Required API key (case-insensitive) ceshi
t Required Lottery code (see Lottery List) cqssc / ssq
limit Optional Number of records returned, default is 1, range 1–50 5
p Required Response format xml / json / json2 / jsonp
date Optional Query by date (returns all data for that day, not limited by limit) 20260516
nexttime Optional Set to 1 to return next draw time 1

API Usage Examples:

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

Parameter Case Sensitivity All parameters are case-insensitive
Max Records Up to 50 records per request. When querying by date, all data for that day is returned without limit restriction
API Type Paid API

Top Reads

Recommended Articles