Get Affiliate User List
To use this endpoint, you should have an affiliate account and only tick "affiliate" permission while creating the API key.
Affiliate site: https://affiliates.bybit.com
tip
- Use master UID only
- The api key can only have "Affiliate" permission
HTTP Request
GET /v5/affiliate/aff-user-list
Request Parameters
Parameter | Required | Type | Comments |
---|---|---|---|
size | false | integer | Limit for data size per page. [0 , 1000 ]. Default: 0 |
cursor | false | string | Cursor. Use the nextPageCursor token from the response to retrieve the next page of the result set |
Response Parameters
Parameter | Type | Comments |
---|---|---|
list | array | Object |
> userId | string | user Id |
> registerTime | string | user register time |
> source | integer | user registration source, from which referrer code |
> remarks | integer | The remark |
> isKyc | boolean | Whether KYC is completed |
nextPageCursor | string | Refer to the cursor request parameter |
Request Example
- HTTP
- Python
- Node.js
GET /v5/affiliate/aff-user-list?cursor=""&size=2 HTTP/1.1
Host: api-testnet.bybit.com
X-BAPI-API-KEY: uQ61dcX0lSe7ygD2EA
X-BAPI-TIMESTAMP: 1685596324209
X-BAPI-RECV-WINDOW: 5000
X-BAPI-SIGN: xxxxxx
Content-Type: application/json
const { RestClientV5 } = require('bybit-api');
const client = new RestClientV5({
testnet: true,
key: 'apikey',
secret: 'apisecret',
});
client
.getAffiliateUserInfo({ size: 2 })
.then((response) => {
console.log(response);
})
.catch((error) => {
console.error(error);
});
Response Example
{
"retCode": 0,
"retMsg": "",
"result": {
"list": [
{
"userId": "101527036",
"registerTime": "2024-06-21",
"source": "1564",
"remarks": "test",
"isKyc": false
},
{
"userId": "103929118",
"registerTime": "2024-11-12",
"source": "1564",
"remarks": "",
"isKyc": false
}
],
"nextPageCursor": "16197"
},
"retExtInfo": {},
"time": 1733205472513
}