First, you need to go to the console's "Automation" -> "API" menu to obtain the API KEY. Then, use the DuoPlus-API-Key
in the request header for all API requests to pass in the obtained API KEY.
The QPS limit for each interface is set to 1.
Domain: https://openapi.duoplus.net
POST
Parameter | Value | Description |
---|---|---|
Lang | zh | Set the interface interaction language, supports: zh, zh-TW, en, ru |
Content-Type | application/json | All data is transmitted using JSON |
DuoPlus-API-Key | xx-xx-xx | API Key, obtained from the "Automation" -> "API" menu in the console |
Use JSON string to transmit
{"key":"value"}
Parameter | Type | Description |
---|---|---|
code | int | Response status code, 200 means normal; 401 requires re-login |
data | object | Content body |
message | string | Message, usually error information |
Parameter | Type | Required | Description |
---|---|---|---|
page | int | No | Request page number, defaults to the first page if not provided |
pagesize | int | No | Number of items per page, defaults to 10 items/page if not provided |
The following parameters are within the returned data object. Typically for lists, data contains a list and the following pagination parameters at the same level.
Parameter | Type | Required | Description |
---|---|---|---|
page | int | Yes | Page number |
pagesize | int | Yes | Number of items per page |
total | int | Yes | Total number of items |
total_page | int | Yes | Total number of pages |