911Proxy OpenAPI
The app_key authentication key can be found on your personal homepage after logging in.
Please keep your key safe, as it grants administrator privileges to your account.
Base URLs:
https://api.911proxy.com
Authentication Method
App Key Authentication
POST Parameters:
app_key: {your_app_key}
Or as a query parameter:
?app_key={your_app_key}
Response format
All interfaces return a unified JSON format:
{
"code": 200,
"message": "Operation successful",
"data": {}
}
code: Status code, 200 indicates success, other values indicate failuremessage: Response message (Chinese)data: Response data
Authentication
This interface supports the following two authentication methods:
1. Bearer Token(JWT)
Pass Token via HTTP Header.
Header 示例:
Authorization: Bearer <your_jwt_token>
API Key Authentication
This interface uses the API Key method for authentication.
The client needs to include the app_key parameter in the request, otherwise the request will be rejected.
Example:
GET /api/example?app_key=your_app_key
POST /api/example?app_key=your_app_key
Content-Type: application/json
Agent Account Management
GET Proxy Account List
GET /api-gate-way/whitelist-account/list
Return Example
Successful Response (200)
{
"code": 200,
"msg": "string",
"data": {
"list": [
{
"id": 0,
"username": "string",
"password": "string",
"created_at": "string",
"remark": "string",
"product_type": 9,
"usage_flow": 0,
"limit_flow": 102400,
"status": 0
}
]
}
}
Return Result
| Status Code | Status Code Meaning | Explanation | Data Model |
|---|---|---|---|
| 200 | OK | Request successful | Inline |
Return Data Structure
Status code 200
| Name | Type | Required | Constraint | Chinese Name | Explanation |
|---|---|---|---|---|---|
| » code | responseCode | false | none | Status code, 200 Success, 3 app_key invalid | |
| » msg | string | false | none | Status message | |
| » data | object | false | none | none | |
| »» list | [object] | false | none | none | |
| »»» id | integer | false | none | Account Number | |
| »»» username | string | false | none | Proxy account name | |
| »»» password | string | false | none | Proxy Account Password | |
| »»» created_at | string | false | none | Add Time | |
| »»» remark | string | false | none | Remarks | |
| »»» product_type | productTypes | false | none | Package Type, 9 Dynamic Residential Traffic Package, 11 Dynamic Residential IP, 14 Static Data Center IP, 25 Static Residential IP | |
| »»» usage_flow | integer | false | none | Used traffic, unit: KB | |
| »»» limit_flow | integer | false | none | Custom traffic limit: unit GB, maximum 102400, 0 for unlimited | |
| »»» status | integer | false | none | Enable Status: 1 Enabled, 0 Disabled |
Enumerated values
| Property | Value |
|---|---|
| product_type | 9 |
| product_type | 11 |
| product_type | 14 |
| product_type | 25 |
POST Add Proxy Account
POST /api-gate-way/whitelist-account/add
Body Request Parameters
{
"app_key": "stringstringstringstringstringst",
"accounts": "user01:pass,user02:pass,user03:pass",
"remark": "",
"product_type": 9
}
Request Parameters
| Name | Location | Type | Required | Explanation |
|---|---|---|---|---|
| body | body | object | No | none |
| » app_key | body | string | No | Authorization Key |
| » accounts | body | string | No | Account password, please fill in the format username:password. The account and password only support numbers and letters. Do not enter any special symbols or spaces. Separate the account and password with a colon. Supports batch addition, separated by English commas (,). |
| » remark | body | string | No | Description of proxy account |
| » product_type | body | productTypes | No | Package Type, 9 Dynamic Residential Traffic Package, 11 Dynamic Residential IP, 14 Static Data Center IP, 25 Static Residential IP |
Enumerated values
| Property | Value |
|---|---|
| » product_type | 9 |
| » product_type | 11 |
| » product_type | 14 |
| » product_type | 25 |
Return Example
200 Response
{
"code": 200,
"msg": "string",
"data": null
}
Return Result
| Status Code | Status Code Meaning | Explanation | Data Model |
|---|---|---|---|
| 200 | OK | Request successful | Inline |
Return Data Structure
Status code 200
| Name | Type | Required | Constraint | Chinese Name | Explanation |
|---|---|---|---|---|---|
| » code | integer | false | none | Status code, 200 success, 3 app_key invalid, 156 account not real-name authenticated | |
| » msg | string | false | none | Status message | |
| » data | null | false | none | none |
POST Delete Agent Account
POST /api-gate-way/whitelist-account/delete
Please note that deletion is irreversible, and used traffic data cannot be queried. Deletion will take approximately 5 minutes, during which charges may still be incurred.
Body Request Parameters
{
"app_key": "stringstringstringstringstringst",
"accounts": "user01,user02"
}
Request Parameters
| Name | Location | Type | Required | Explanation |
|---|---|---|---|---|
| body | body | object | No | none |
| » app_key | body | string | No | Authorization Key |
| » accounts | body | string | No | Agent account, only supports numbers and letters. Supports batch operations, separate agent accounts with commas (,). |
Return Example
200 Response
{
"code": 200,
"msg": "string",
"data": null
}
Return Result
| Status Code | Status Code Meaning | Explanation | Data Model |
|---|---|---|---|
| 200 | OK | Request Success | Inline |
Return Data Structure
Status code 200
| Name | Type | Required | Constraint | Chinese Name | Explanation |
|---|---|---|---|---|---|
| » code | integer | false | none | Status code, 200 success, 3 app_key invalid, 156 account not real-name authenticated | |
| » msg | string | false | none | Status message | |
| » data | null | false | none | none |
POST Disable Proxy Account
POST /api-gate-way/whitelist-account/disable
Disabling has an approximate 5-minute wait time, during which charges may still be incurred.
Body Request Parameters
{
"app_key": "stringstringstringstringstringst",
"accounts": "user01,user02"
}
Request Parameters
| Name | Location | Type | Required | Explanation |
|---|---|---|---|---|
| body | body | object | No | none |
| » app_key | body | string | No | Authorization Key |
| » accounts | body | string | No | Agent account, only supports numbers and letters. Supports batch operations, separate agent accounts with commas (,). |
Return Example
200 Response
{
"code": 200,
"msg": "string",
"data": null
}
Return Result
| Status Code | Status Code Meaning | Explanation | Data Model |
|---|---|---|---|
| 200 | OK | Request Success | Inline |
Return Data Structure
Status code 200
| Name | Type | Required | Constraint | Chinese Name | Explanation |
|---|---|---|---|---|---|
| » code | integer | false | none | Status code, 200 success, 3 app_key invalid, 156 account not real-name authenticated | |
| » msg | string | false | none | Status message | |
| » data | null | false | none | none |
POST Enable proxy account
POST /api-gate-way/whitelist-account/enable
Body Request Parameters
{
"app_key": "stringstringstringstringstringst",
"accounts": "user01,user02"
}
Request Parameters
| Name | Location | Type | Required | Explanation |
|---|---|---|---|---|
| body | body | object | No | none |
| » app_key | body | string | No | Authorization Key |
| » accounts | body | string | No | Agent account, only supports numbers and letters. Supports batch operations, separate agent accounts with commas (,). |
Return Example
200 Response
{
"code": 200,
"msg": "string",
"data": null
}
Return Result
| Status Code | Status Code Meaning | Explanation | Data Model |
|---|---|---|---|
| 200 | OK | Request Success | Inline |
Return Data Structure
Status code 200
| Name | Type | Required | Constraint | Chinese Name | Explanation |
|---|---|---|---|---|---|
| » code | integer | false | none | Status code, 200 success, 3 app_key invalid, 156 account not real-name authenticated | |
| » msg | string | false | none | Status message | |
| » data | null | false | none | none |
POST Modify Proxy Account Password
POST /api-gate-way/whitelist-account/change-password
Please note that there is a 5-minute waiting period after modification, during which the old password may still be used normally.
Body Request Parameters
{
"app_key": "stringstringstringstringstringst",
"account": "user",
"password": "pass"
}
Request Parameters
| Name | Location | Type | Required | Explanation |
|---|---|---|---|---|
| body | body | object | No | none |
| » app_key | body | string | No | Authorization Key |
| » account | body | string | No | Agent accounts only support numbers and letters. |
| » password | body | string | No | New password for proxy account, only supports numbers and letters. |
Return Example
200 Response
{
"code": 200,
"msg": "string",
"data": null
}
Return Result
| Status Code | Status Code Meaning | Explanation | Data Model |
|---|---|---|---|
| 200 | OK | Request Success | Inline |
Return Data Structure
Status code 200
| Name | Type | Required | Constraint | Chinese Name | Explanation |
|---|---|---|---|---|---|
| » code | integer | false | none | Status code, 200 success, 3 app_key invalid, 156 account not real-name authenticated | |
| » msg | string | false | none | Status message | |
| » data | null | false | none | none |
POST Modify Agent Account Remarks
POST /api-gate-way/whitelist-account/change-remark
Body Request Parameters
{
"app_key": "stringstringstringstringstringst",
"account": "user",
"remark": ""
}
Request Parameters
| Name | Location | Type | Required | Explanation |
|---|---|---|---|---|
| body | body | object | No | none |
| » app_key | body | string | No | Authorization Key |
| » account | body | string | No | Agent accounts only support numbers and letters. |
| » remark | body | string | No | The new remarks for the agent account, within 32 Chinese characters or 64 English characters. |
Return Example
200 Response
{
"code": 200,
"msg": "string",
"data": null
}
Return Result
| Status Code | Status Code Meaning | Explanation | Data Model |
|---|---|---|---|
| 200 | OK | Request Success | Inline |
Return Data Structure
Status code 200
| Name | Type | Required | Constraint | Chinese Name | Explanation |
|---|---|---|---|---|---|
| » code | integer | false | none | Status code, 200 success, 3 app_key invalid, 156 account not real-name authenticated | |
| » msg | string | false | none | Status message | |
| » data | null | false | none | none |
POST Modify Agent Account Traffic Limit
POST /api-gate-way/whitelist-account/change-limit
Please note that traffic statistics may have a delay of up to 5 minutes, meaning the actual traffic consumption may exceed this limit.
Body Request Parameters
{
"app_key": "stringstringstringstringstringst",
"account": "user",
"limit": 0
}
Request Parameters
| Name | Location | Type | Required | Explanation |
|---|---|---|---|---|
| body | body | object | No | none |
| » app_key | body | string | No | Authorization Key |
| » account | body | string | No | Agent accounts only support numbers and letters. |
| » limit | body | integer | No | Traffic limit, unit: GB, 0 means no limit |
Return Example
200 Response
{
"code": 200,
"msg": "string",
"data": null
}
Return Result
| Status Code | Status Code Meaning | Explanation | Data Model |
|---|---|---|---|
| 200 | OK | Request Success | Inline |
Return Data Structure
Status code 200
| Name | Type | Required | Constraint | Chinese Name | Explanation |
|---|---|---|---|---|---|
| » code | integer | false | none | Status code, 200 success, 3 app_key invalid, 156 account not real-name authenticated | |
| » msg | string | false | none | Status message | |
| » data | null | false | none | none |
Traffic Log Query
GET Daily Traffic Aggregation
GET /api-gate-way/user-usage-flow/total
Request Parameters
| Name | Location | Type | Required | Explanation |
|---|---|---|---|---|
| app_key | query | string(password) | Yes | Authentication Key |
| start_time | query | string(Y-m-d H:i:s) | No | Start time, accurate to the second. Please note that there is a delay of up to 5 minutes in logging. Default is within 7 days. |
| end_time | query | string(Y-m-d H:i:s) | No | End time, accurate to the second. Please note that there is a delay of up to 5 minutes in logging. Defaults to the current time. |
| username | query | string | No | Sub-account name, defaults to query all accounts, you can specify a sub-account. Please note that if you add sub-accounts with the same name, this query will return all usage records for proxy accounts with the same name. |
| product_type | query | number | No | Package Type |
Return Example
200 Response
{
"code": 200,
"msg": "string",
"data": {
"list": [
{
"day": "2022-08-01",
"flow": 0
}
]
}
}
Return Result
| Status Code | Status Code Meaning | Explanation | Data Model |
|---|---|---|---|
| 200 | OK | Request Success | Inline |
Return Data Structure
Status code 200
| Name | Type | Required | Constraint | Chinese Name | Explanation |
|---|---|---|---|---|---|
| » code | integer | false | none | Status code, 200 success, 3 app_key invalid, 156 account not real-name authenticated | |
| » msg | string | false | none | Status message | |
| » data | object | false | none | none | |
| »» list | [object] | false | none | none | |
| »»» day | string | false | none | Date | |
| »»» flow | integer | false | none | Traffic consumption, unit: KB |
Package Query
GET purchased package list
GET /api-gate-way/user-product/list
Request Parameters
| Name | Location | Type | Required | Explanation |
|---|---|---|---|---|
| app_key | query | string(password) | Yes | Authentication Key |
| trade_no | query | string | No | Order number, please enter the complete order number. Fuzzy search is not supported. |
| page | query | number | No | Pagination, default: 1 |
| size | query | number | No | Number of items displayed per page, default: 20 |
| product_type | query | number | No | Package Type |
Return Example
200 Response
{
"code": 200,
"msg": "string",
"data": {
"list": [
{
"id": 0,
"created_at": "2022-05-13 12:14:15",
"expired_at": "2022-05-13 12:14:15",
"product_type": 9,
"trade_no": "2022051312134339861461465434",
"order": {
"created_at": "2022-05-13 12:13:43",
"pay_at": "2022-05-13 12:13:43",
"title": "入门级"
}
}
],
"page": 1,
"page_size": 20,
"total_count": 0,
"total_page": 0
}
}
Return Result
| Status Code | Status Code Meaning | Explanation | Data Model |
|---|---|---|---|
| 200 | OK | Request Success | Inline |
Return Data Structure
Status code 200
| Name | Type | Required | Constraint | Chinese Name | Explanation |
|---|---|---|---|---|---|
| » code | integer | false | none | Status code, 200 success, 3 app_key invalid, 156 account not real-name authenticated | |
| » msg | string | false | none | Status message | |
| » data | object | false | none | none | |
| »» list | [object] | false | none | none | |
| »»» id | integer | false | none | Package ID | |
| »»» created_at | string | false | none | Package activation time | |
| »»» expired_at | string | false | none | Package expiration time, after expiration the traffic cannot be used. | |
| »»» product_type | productTypes | false | none | Package Type, 9 Dynamic Residential Traffic Package, 11 Dynamic Residential IP, 14 Static Data Center IP, 25 Static Residential IP | |
| »»» trade_no | string | false | none | Order Transaction Number | |
| »»» order | object | false | none | none | |
| »»»» created_at | string | false | none | Order Creation Time | |
| »»»» pay_at | string | false | none | Order payment time | |
| »»»» title | string | false | none | Order Description | |
| »» page | integer | false | none | Current Page | |
| »» page_size | integer | false | none | Page Size | |
| »» total_count | integer | false | none | Total number of records | |
| »» total_page | integer | false | none | Total number of pages |
Enumerated values
| Property | Value |
|---|---|
| product_type | 9 |
| product_type | 11 |
| product_type | 14 |
| product_type | 25 |
GET User Package Summary
GET /api-gate-way/user-product/summary
Retrieve statistical summary information of user packages, including total amount, effective amount, expiring amount, expired amount, etc.
Request Parameters
| Parameter Name | Type | Required | Description |
|---|---|---|---|
| app_key | string(password) | Yes | Authentication key |
| product_type | integer | No | Product type, only supports: 9 (Dynamic Traffic Package), 12 (Long-term IDC Traffic Package) |
Response
{
"code": 200,
"msg": "Success",
"data": {
"total": 1048576,
"total_count": 5,
"effective": 524288,
"effective_count": 3,
"effective_total": 786432,
"effective_used": 262144,
"temporary": 102400,
"temporary_count": 1,
"expired": 51200,
"expired_count": 1,
"used": 473088
}
}
Response Data Structure
Status Code 200
| Field | Type | Description |
|---|---|---|
| total | integer | Total traffic/IP amount (unit: KB) |
| total_count | integer | Total number of packages |
| effective | integer | Effective remaining amount (unit: KB) |
| effective_count | integer | Number of effective packages |
| effective_total | integer | Total effective amount (unit: KB) |
| effective_used | integer | Used amount within effective packages (unit: KB) |
| temporary | integer | Total expiring amount (expires within 7 days, KB) |
| temporary_count | integer | Number of expiring packages (within 7 days) |
| expired | integer | Remaining expired amount (unit: KB) |
| expired_count | integer | Number of expired packages |
| used | integer | Total used amount (unit: KB) |
IP Extraction
GET Extract IP
GET /api-gate-way/ip/v3
Request Parameters
| Name | Location | Type | Required | Explanation |
|---|---|---|---|---|
| app_key | query | string(password) | No | Access Key |
| cc | query | string | No | Country or Region |
| state | query | string | No | State or Province |
| city | query | string | No | City |
| format | query | string | No | Get format |
| lb | query | string | No | Separator, valid only for text format |
| num | query | number | No | Extraction Quantity |
| life | query | number | No | Retention Period - Minutes |
| ep | query | string | No | Proxy Network |
Return Example
200 Response
{
"code": 200,
"msg": "string",
"data": {
"list": [
[
"150.109.114.72:1140",
"150.109.114.72:1141",
"150.109.114.72:1142",
"150.109.114.72:1143",
"150.109.114.72:1144",
"150.109.114.72:1145",
"150.109.114.72:1146",
"150.109.114.72:1147",
"150.109.114.72:1148",
"150.109.114.72:1149"
]
]
}
}
Return Result
| Status Code | Status Code Meaning | Explanation | Data Model |
|---|---|---|---|
| 200 | OK | Request Success | Inline |
Return Data Structure
Status code 200
| Name | Type | Required | Constraint | Chinese Name | Explanation |
|---|---|---|---|---|---|
| » code | integer | false | none | Status code, 200 success, 3 app_key invalid, 156 account not real-name authenticated | |
| » msg | string | false | none | Status message | |
| » data | object | false | none | none | |
| »» list | [any] | false | none | none |
GET city list
GET /api-gate-way/ip/dynamic-citys
Return Example
200 Response
{
"code": 200,
"msg": "string",
"data": {
"list": [
{
"name_zh_cn": "美国",
"name_en": "United States",
"continent_code": "NA",
"country_code": "US",
"items": [
{
"city": null,
"state": null,
"continent_code": null,
"country_code": null
}
]
}
]
}
}
Return Result
| Status Code | Status Code Meaning | Explanation | Data Model |
|---|---|---|---|
| 200 | OK | Request Success | Inline |
Return Data Structure
Status code 200
| Name | Type | Required | Constraint | Chinese Name | Explanation |
|---|---|---|---|---|---|
| » code | integer | false | none | Status code, 200 success, 3 app_key invalid, 156 account not real-name authenticated | |
| » msg | string | false | none | Status message | |
| » data | object | false | none | none | |
| »» list | [object] | false | none | List | |
| »»» name_zh_cn | string | false | none | Country or region name | |
| »»» name_en | string | false | none | Country or region name | |
| »»» continent_code | string | false | none | Continent Code | |
| »»» country_code | string | false | none | Country or region code | |
| »»» items | [object] | false | none | State or Province | |
| »»»» city | string | false | none | City Name | |
| »»»» state | string | false | none | State or Province Name Code | |
| »»»» continent_code | string | false | none | Continent Code | |
| »»»» country_code | string | false | none | Country or region code |
GET City Search
GET /api-gate-way/ip/dynamic-citys/search
Request Parameters
| Name | Location | Type | Required | Description |
|---|---|---|---|---|
| country_code | query | string | Yes | Country or region code |
| state | query | string | Yes | State or province code |
Return Example
200 Response
{
"code": 200,
"msg": "string",
"data": {
"list": ["string"]
}
}
Return Result
| Status Code | Status Code Meaning | Description | Data Model |
|---|---|---|---|
| 200 | OK | Request Success | Inline |
Return Data Structure
Status Code 200
| Name | Type | Required | Constraint | Chinese Name | Description |
|---|---|---|---|---|---|
| » code | integer | false | none | Status code, 200 success, 3 app_key invalid, 156 account not real-name authenticated | |
| » msg | string | false | none | Status message | |
| » data | object | false | none | none | |
| »» list | [string] | false | none | List |
GET State List
GET /api-gate-way/ip/dynamic-states
Return Example
200 Response
{
"code": 200,
"msg": "string",
"data": {
"list": [
{
"name_zh_cn": "美国",
"name_en": "United States",
"continent_code": "NA",
"country_code": "US",
"items": [
{
"state": null,
"continent_code": null,
"country_code": null
}
]
}
]
}
}
Return Result
| Status Code | Status Code Meaning | Description | Data Model |
|---|---|---|---|
| 200 | OK | Request Success | Inline |
Return Data Structure
Status Code 200
| Name | Type | Required | Constraint | Chinese Name | Description |
|---|---|---|---|---|---|
| » code | integer | false | none | Status code, 200 success, 3 app_key invalid, 156 account not real-name authenticated | |
| » msg | string | false | none | Status message | |
| » data | object | false | none | none | |
| »» list | [object] | false | none | List | |
| »»» name_zh_cn | string | false | none | Country or region name | |
| »»» name_en | string | false | none | Country or region name | |
| »»» continent_code | string | false | none | Continent Code | |
| »»» country_code | string | false | none | Country or region code | |
| »»» items | [object] | false | none | State or Province | |
| »»»» state | string | false | none | State or Province Name Code | |
| »»»» continent_code | string | false | none | Continent Code | |
| »»»» country_code | string | false | none | Country or region code |
GET State/Province Search
GET /api-gate-way/ip/dynamic-states/search
Request Parameters
| Name | Location | Type | Required | Description |
|---|---|---|---|---|
| country_code | query | string | Yes | Country or region code |
Return Example
200 Response
{
"code": 200,
"msg": "string",
"data": {
"list": ["string"]
}
}
Return Result
| Status Code | Status Code Meaning | Description | Data Model |
|---|---|---|---|
| 200 | OK | Request Success | Inline |
Return Data Structure
Status Code 200
| Name | Type | Required | Constraint | Chinese Name | Description |
|---|---|---|---|---|---|
| » code | integer | false | none | Status code, 200 success, 3 app_key invalid, 156 account not real-name authenticated | |
| » msg | string | false | none | Status message | |
| » data | object | false | none | none | |
| »» list | [string] | false | none | List |
GET Retrieve Purchased Static IP List
GET /api-gate-way/ip/get-static-ip
Request Parameters
| Name | Location | Type | Required | Description |
|---|---|---|---|---|
| country_code | query | string | No | Country or region code |
| product_type | query | number | No | Product Type, 25: Static Residential IP, 14: Datacenter IP |
| trade_no | query | string | No | Filter IP by order number |
| page | query | number | No | Page number |
| size | query | number | No | Items per page |
| status | query | number | No | Status, 1: valid, 2: invalid, 3: expiring soon, 4: under maintenance |
Enumerated values
| Property | Value |
|---|---|
| product_type | 14 |
| product_type | 25 |
| status | 1 |
| status | 2 |
| status | 3 |
| status | 4 |
Return Example
200 Response
{}
Return Result
| Status Code | Status Code Meaning | Description | Data Model |
|---|---|---|---|
| 200 | OK | none | Inline |
Return Data Structure
GET Get the number of static IPs in the sales area
GET /api-gate-way/static-ip-region
Request Parameters
| Name | Location | Type | Required | Description |
|---|---|---|---|---|
| isp | query | string | No | IP Type |
IP Type Description
| IP Type | Description |
|---|---|
| 1 | Residential Static IP |
| 0 | Static IP of Data Center |
Return Example
200 Response
{
"code": 200,
"msg": "Request successful",
"data": {
"list": [
{
"code": "US",
"number": 55
}
]
}
}
Return Result
| Status Code | Status Code Meaning | Description | Data Model |
|---|---|---|---|
| 200 | OK | none | Inline |
Return Data Structure
Status Code 200
| Name | Type | Required | Constraint | Chinese Name | Description |
|---|---|---|---|---|---|
| » code | integer | false | none | Status code, 200 Success | |
| » msg | string | false | none | Status message | |
| » data | object | false | none | none | |
| »» list | [object] | false | none | none | |
| »»» code | string | false | none | Country or region code | |
| »»» number | integer | false | none | Quantity |
Order Management
GET Order List
GET /api-gate-way/order/list
Request Parameters
| Name | Location | Type | Required | Description |
|---|---|---|---|---|
| page_no | query | integer | No | none |
| page_size | query | integer | No | none |
| trade_no | query | string | No | Order Number |
| status | query | integer | No | Order Status |
| product_type | query | integer | No | Product Type |
Detailed Description
status: Order Status
| Status | Description |
|---|---|
| 0 | Pending Payment |
| 1 | Paid |
| 2 | Unpaid and Canceled Due to Timeout |
| 3 | Refunded |
product_type: 产品类型
| Product Type | Description |
|---|---|
| 3 | Balance top-up |
| 9 | Dynamic Traffic Package |
| 11 | Dynamic Global Hourly Package V2 |
| 12 | Long-Term IDC Traffic Package |
| 13 | Residential Static IP Traffic Package |
| 14 | Data Center Static IP Package |
| 15 | Long-Term ISP Traffic Package |
| 16 | Static Traffic Package |
| 17 | Dynamic IP Quantity Package |
| 18 | web-scraper |
| 19 | Static IP Renewal |
| 20 | Static IP Change Quota |
| 21 | Static Traffic Package v2 |
| 24 | Static Traffic Add-on Package |
| 25 | Residential Static IP Package |
| 26 | Reissue Order - Some payment channels require users to manually enter the amount, such as: virtual currency. If there is a shortfall, you need to contact customer service to make a supplementary payment through this product |
| 27 | Serp |
| 28 | Video |
Enumerated values
| Property | Value |
|---|---|
| status | 0 |
| status | 1 |
| status | 2 |
| status | 3 |
| product_type | 3 |
| product_type | 9 |
| product_type | 11 |
| product_type | 12 |
| product_type | 14 |
| product_type | 16 |
| product_type | 17 |
| product_type | 18 |
| product_type | 19 |
| product_type | 21 |
| product_type | 24 |
| product_type | 25 |
| product_type | 26 |
| product_type | 27 |
| product_type | 28 |
Return Example
200 Response
{
"code": 0,
"message": "Operation successful",
"data": {
"list": [
{
"id": 0,
"trade_no": "string",
"product_id": 0,
"product_name": "string",
"total_fee": 0.1,
"pay_fee": 0.1,
"status": 0,
"created_at": "2019-08-24T14:15:22Z"
}
],
"pagination": {
"total": 0,
"page_no": 0,
"page_size": 0,
"total_pages": 0
}
}
}
Return Result
| Status Code | Status Code Meaning | Description | Data Model |
|---|---|---|---|
| 200 | OK | Success | Inline |
Return Data Structure
POST Create Order
POST /api-gate-way/order/create
Due to the large variety of packages and different configurations for each package, please fill in the parameters according to the actual situation. Improperly filled parameters may cause order creation failure.
examples:
Renew Static IP
{
"pid": x, // Contact customer service to obtain
"upids": "1,2,3,4,5,6", // from /api-gate-way/ip/get-static-ip Get the corresponding ID
"pm_id": 1 // from /api-gate-way/payment/list Get
"coupon_sn: "xxx", // Optional coupons
}
Body Request Parameters
{
"pid": 0,
"upids": "string",
"amount": 0,
"pm_id": 0,
"region_list": "string",
"coupon_sn": "string",
"use_invitation_registration_discount": true,
"renew_duration": 0,
"product_sku_bandwidth_id": 0,
"product_sku_concurrency_id": 0,
"recharge_amount": 0
}
Request Parameters
| Name | Location | Type | Required | Description |
|---|---|---|---|---|
| body | body | object | Yes | none |
| » pid | body | integer | Yes | Package ID |
| » upids | body | string | No | List of renewal package IDs |
| » amount | body | number | No | Number of newly purchased packages |
| » pm_id | body | integer | Yes | Payment method ID |
| » region_list | body | string | No | Specify region + quantity when purchasing static IP |
| » coupon_sn | body | string | No | Coupon code |
| » use_invitation_registration_discount | body | boolean | No | Whether to use invitation registration discount |
| » renew_duration | body | integer | No | Renewal period - Static IP optional |
| » product_sku_bandwidth_id | body | integer | No | Package 11: Bandwidth package ID |
| » product_sku_concurrency_id | body | integer | No | Package 11: Concurrent package ID |
| » recharge_amount | body | integer | No | Package 3: Recharge Amount |
Return Example
200 Response
{
"code": 0,
"message": "Operation successful",
"data": {
"id": 0,
"trade_no": "string",
"product_id": 0,
"product_name": "string",
"total_fee": 0.1,
"pay_fee": 0.1,
"status": 0,
"created_at": "2019-08-24T14:15:22Z"
}
}
Return Result
| Status Code | Status Code Meaning | Description | Data Model |
|---|---|---|---|
| 200 | OK | Created successfully | Inline |
Return Data Structure
POST Cancel order
POST /api-gate-way/order/close
Body Request Parameters
{
"trade_no": "string"
}
Request Parameters
| Name | Location | Type | Required | Description |
|---|---|---|---|---|
| body | body | object | Yes | none |
| » trade_no | body | string | Yes | none |
Return Result
| Status Code | Status Code Meaning | Description | Data Model |
|---|---|---|---|
| 200 | OK | Operation successful | None |
User Management
GET Get User Information - Not yet open
GET /api-gate-way/user/info
Return Example
200 Response
{
"code": 0,
"message": "Operation successful",
"data": {
"id": 0,
"email": "[email protected]",
"phone": "string",
"balance": 0.1,
"status": 0,
"is_real_name": true,
"created_at": "2019-08-24T14:15:22Z"
}
}
Return Result
| Status Code | Status Code Meaning | Description | Data Model |
|---|---|---|---|
| 200 | OK | Success | Inline |
Return Data Structure
Payment Management
GET Get Payment Method List
GET /api-gate-way/payment/groups
Request Parameters
| Name | Location | Type | Required | Description |
|---|---|---|---|---|
| trade_no | query | string | No | Order number - can be passed in when some orders need to obtain a specific payment method |
Return Example
200 Response
{
"code": 0,
"message": "Operation successful",
"data": {
"list": [
{
"name": "Grouping",
"logos": ["https://example.com/logo1.png", "https://example.com/logo2.png"],
"items": [
{
"id": 1,
"title": "title1",
"logo": "https://example.com/logo1.png",
"group": "online",
"disabled": false,
"min": 10,
"max": 5000
}
]
}
]
}
}
Return Result
| Status Code | Status Code Meaning | Description | Data Model |
|---|---|---|---|
| 200 | OK | Successfully retrieved | Inline |
Return Data Structure
| Name | Type | Required | Constraint | Chinese Name | Description |
|---|---|---|---|---|---|
| » code | integer | false | none | Status code, 200 success, 3 app_key invalid, 156 account not real-name authenticated | |
| » msg | string | false | none | Status message | |
| » data | object | false | none | none | |
| »» name | string | false | none | Group Name | |
| »» logos | string[] | false | none | Group Icon List | |
| »» items | object[] | false | none | List of items within a group | |
| »»» id | integer | false | none | Payment Method ID | |
| »»» title | string | false | none | Payment method name | |
| »»» logo | string | false | none | Payment method logo | |
| »»» group | string | false | none | Payment method group ID | |
| »»» disabled | boolean | false | none | Whether to disable (default false) | |
| »»» min | number | false | none | Minimum Amount | |
| »»» max | number | false | none | Maximum Amount |
Marketing
GET Recharge Bonus Ratio
GET /api-gate-way/activity/balance-recharge-gift-ratio
Recharge Bonus Ratio
Return Example
200 Response
{
"code": 0,
"msg": "Operation successful",
"data": {
"list": [
{
"amount": 100,
"ratio": 1.2
}
]
}
}
Return Result
| Status Code | Status Code Meaning | Description | Data Model |
|---|---|---|---|
| 200 | OK | OK | Inline |
Return Data Structure
| Name | Type | Required | Constraint | Chinese Name | Description |
|---|---|---|---|---|---|
| » code | integer | false | none | Status code, 200 success, 3 app_key invalid, 156 account not real-name authenticated | |
| » msg | string | false | none | Status message | |
| » data | object | false | none | none | |
| » list | [object] | false | none | none | |
| »» amount | integer | false | none | Recharge amount | |
| »» ratio | number | false | none | Recharge ratio |
Data Structure Description (Schemas)
productTypes (Package types)
| Field | Type | Description |
|---|---|---|
| product_type | integer | Package Type |
Optional value description:
| Value | Meaning |
|---|---|
| 9 | Dynamic Residential Traffic Package |
| 11 | Dynamic Residential IP |
| 14 | Static Data Center IP |
| 25 | Static Residential IP |
API Key (Authentication Key)
Used for interface authentication, please pass it through the Query parameter.
| Parameter name | Location | Type | Required | Description |
|---|---|---|---|---|
| app_key | query | string | Yes | Authentication Key |
Common Response Fields
responseCode
| Field | Type | Example | Description |
|---|---|---|---|
| code | integer | 200 | Status code (200 for success, 3 indicates invalid app_key) |
responseMsg
| Field | Type | Example | Description |
|---|---|---|---|
| message | string | success | Response Information |
Success Response(SuccessResponse)
{
"code": 0,
"message": "Operation successful",
"data": {}
}
Error Response (ErrorResponse)
{
"code": 400,
"message": "Parameter error",
"errors": {}
}
User
{
"id": 0,
"email": "[email protected]",
"phone": "string",
"balance": 0.1,
"status": 0,
"is_real_name": true,
"created_at": "2019-08-24T14:15:22Z"
}
| Name | Type | Required | Constraint | Chinese Name | Description |
|---|---|---|---|---|---|
| id | integer | false | none | none | |
| string(email) | false | none | none | ||
| phone | string | false | none | none | |
| balance | number(float) | false | none | none | |
| status | integer | false | none | none | |
| is_real_name | boolean | false | none | none | |
| created_at | string(date-time) | false | none | none |
Order
{
"id": 0,
"trade_no": "string",
"product_id": 0,
"product_name": "string",
"total_fee": 0.1,
"pay_fee": 0.1,
"status": 0,
"created_at": "2019-08-24T14:15:22Z"
}
| Name | Type | Required | Constraint | Chinese Name | Description |
|---|---|---|---|---|---|
| id | integer | false | none | none | |
| trade_no | string | false | none | none | |
| product_id | integer | false | none | none | |
| product_name | string | false | none | none | |
| total_fee | number(float) | false | none | none | |
| pay_fee | number(float) | false | none | none | |
| status | integer | false | none | none | |
| created_at | string(date-time) | false | none | none |
Product
{
"id": 0,
"name": "string",
"type": 0,
"price": 0.1,
"description": "string"
}
| Name | Type | Required | Constraint | Chinese Name | Description |
|---|---|---|---|---|---|
| id | integer | false | none | none | |
| name | string | false | none | none | |
| type | integer | false | none | none | |
| price | number(float) | false | none | none | |
| description | string | false | none | none |
WhiteIp
{
"id": 0,
"ip": "string",
"remark": "string",
"created_at": "2019-08-24T14:15:22Z"
}
| Name | Type | Required | Constraint | Chinese Name | Description |
|---|---|---|---|---|---|
| id | integer | false | none | none | |
| ip | string | false | none | none | |
| remark | string | false | none | none | |
| created_at | string(date-time) | false | none | none |
WhitelistAccount
{
"id": 0,
"username": "string",
"limit": 0,
"used": 0,
"status": 0
}
| Name | Type | Required | Constraint | Chinese Name | Description |
|---|---|---|---|---|---|
| id | integer | false | none | none | |
| username | string | false | none | none | |
| limit | integer | false | none | none | |
| used | integer | false | none | none | |
| status | integer | false | none | none |
Coupon
{
"id": 0,
"name": "string",
"code": "string",
"discount": 0.1,
"expire_time": "2019-08-24T14:15:22Z"
}
| Name | Type | Required | Constraint | Chinese Name | Description |
|---|---|---|---|---|---|
| id | integer | false | none | none | |
| name | string | false | none | none | |
| code | string | false | none | none | |
| discount | number(float) | false | none | none | |
| expire_time | string(date-time) | false | none | none |
Article
{
"id": 0,
"title": "string",
"content": "string",
"created_at": "2019-08-24T14:15:22Z"
}
| Name | Type | Required | Constraint | Chinese Name | Description |
|---|---|---|---|---|---|
| id | integer | false | none | none | |
| title | string | false | none | none | |
| content | string | false | none | none | |
| created_at | string(date-time) | false | none | none |
Pagination
{
"total": 0,
"page_no": 0,
"page_size": 0,
"total_pages": 0
}
| Name | Type | Required | Constraint | Chinese Name | Description |
|---|---|---|---|---|---|
| total | integer | false | none | none | |
| page_no | integer | false | none | none | |
| page_size | integer | false | none | none | |
| total_pages | integer | false | none | none |