OpenAPIOpenAPI
  • English
  • 简体中文
  • Indonesia
  • हिंदी
  • Русский
  • Tiếng Việt
  • German
  • português
  • English
  • 简体中文
  • Indonesia
  • हिंदी
  • Русский
  • Tiếng Việt
  • German
  • português
  • ProxyCC OpenAPI

ProxyCC OpenAPI

Please log in to view the app_key authentication key on the homepage of your personal center.

Please keep the key safe, as it has administrator privileges for your account.

Base URLs:

https://api.proxy.cc

Authentication method

App Key 认证

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": "操作成功",
	"data": {}
}
  • code: Status code, 200 indicates success, other values indicate failure
  • message: Response message (Chinese)
  • data: Response data

Authentication

This interface supports the following two authentication methods:

1. Bearer Token(JWT)

Pass the Token through the 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

Proxy Account Management

GET Proxy Account List

GET /open/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 CodeStatus Code MeaningDescriptionData Model
200OKRequest successfulInline

Return Data Structure

Status Code 200

NameTypeRequiredConstraintChinese NameDescription
» coderesponseCodefalsenoneStatus code, 200 success, 3 app_key invalid
» msgstringfalsenoneStatus message
» dataobjectfalsenonenone
»» list[object]falsenonenone
»»» idintegerfalsenoneAccount number
»»» usernamestringfalsenoneAgent account name
»»» passwordstringfalsenoneAgent account password
»»» created_atstringfalsenoneAdd Time
»»» remarkstringfalsenoneRemarks
»»» product_typeproductTypesfalsenonePackage Type, 9 Dynamic Residential Traffic Package, 11 Dynamic Residential IP, 14 Static Datacenter IP, 25 Static Residential IP
»»» usage_flowintegerfalsenoneTraffic Used, Unit: KB
»»» limit_flowintegerfalsenoneCustom traffic limit: Unit GB, maximum 102400, 0 for unlimited
»»» statusintegerfalsenoneEnable status: 1 enabled, 0 disabled

Enum Value

PropertyValue
product_type9
product_type11
product_type14
product_type25

POST Add Proxy Account

POST /open/whitelist-account/add

Body Request Parameters

{
	"app_key": "stringstringstringstringstringst",
	"accounts": "user01:pass,user02:pass,user03:pass",
	"remark": "",
	"product_type": 9
}

Request Parameters

NameLocationTypeRequiredDescription
bodybodyobjectNonone
» app_keybodystringNoAuthorization Key
» accountsbodystringNoAccount password, please fill in the format username:password. Only numbers and letters are supported for the account and password. Do not enter any special symbols or spaces. Separate the account and password with a colon. Batch addition is supported, and proxy accounts are separated by English commas (,).
» remarkbodystringNoProxy account description
» product_typebodyproductTypesNoPackage Type, 9 Dynamic Residential Traffic Package, 11 Dynamic Residential IP, 14 Static Datacenter IP, 25 Static Residential IP

Enum Value

PropertyValue
» product_type9
» product_type11
» product_type14
» product_type25

Return example

200 Response

{
	"code": 200,
	"msg": "string",
	"data": null
}

Return Result

Status CodeStatus Code MeaningDescriptionData Model
200OKRequest successfulInline

Return Data Structure

Status Code 200

NameTypeRequiredConstraintChinese NameDescription
» codeintegerfalsenoneStatus code: 200 Success, 3 invalid app_key, 156 account not real-name authenticated
» msgstringfalsenoneStatus message
» datanullfalsenonenone

POST Delete Proxy Account

POST /open/whitelist-account/delete

Please note that deletion is irreversible, and used traffic and other data cannot be queried after deletion. Deletion takes approximately 5 minutes, and charges may still be incurred during this period.

Body Request Parameters

{
	"app_key": "stringstringstringstringstringst",
	"accounts": "user01,user02"
}

Request Parameters

NameLocationTypeRequiredDescription
bodybodyobjectNonone
» app_keybodystringNoAuthorization Key
» accountsbodystringNoProxy account, only supports numbers and letters. Supports batch operations, separate proxy accounts with English commas (,).

Return example

200 Response

{
	"code": 200,
	"msg": "string",
	"data": null
}

Return Result

Status CodeStatus Code MeaningDescriptionData Model
200OKRequest SuccessInline

Return Data Structure

Status Code 200

NameTypeRequiredConstraintChinese NameDescription
» codeintegerfalsenoneStatus code: 200 Success, 3 invalid app_key, 156 account not real-name authenticated
» msgstringfalsenoneStatus message
» datanullfalsenonenone

POST Disable Proxy Account

POST /open/whitelist-account/disable

Disabling has an approximately 5-minute waiting period, during which fees may still be incurred.

Body Request Parameters

{
	"app_key": "stringstringstringstringstringst",
	"accounts": "user01,user02"
}

Request Parameters

NameLocationTypeRequiredDescription
bodybodyobjectNonone
» app_keybodystringNoAuthorization Key
» accountsbodystringNoProxy account, only supports numbers and letters. Supports batch operations, separate proxy accounts with English commas (,).

Return example

200 Response

{
	"code": 200,
	"msg": "string",
	"data": null
}

Return Result

Status CodeStatus Code MeaningDescriptionData Model
200OKRequest SuccessInline

Return Data Structure

Status Code 200

NameTypeRequiredConstraintChinese NameExplanation
» codeintegerfalsenoneStatus code, 200 success, 3 app_key invalid, 156 account not real-name authenticated
» msgstringfalsenoneStatus message
» datanullfalsenonenone

POST Enable Proxy Account

POST /open/whitelist-account/enable

Body Request Parameters

{
	"app_key": "stringstringstringstringstringst",
	"accounts": "user01,user02"
}

Request Parameters

NameLocationTypeRequiredDescription
bodybodyobjectNonone
» app_keybodystringNoAuthorization Key
» accountsbodystringNoProxy account, only supports numbers and letters. Supports batch operations, separate proxy accounts with English commas (,).

Return example

200 Response

{
	"code": 200,
	"msg": "string",
	"data": null
}

Return Result

Status CodeStatus Code MeaningDescriptionData Model
200OKRequest SuccessInline

Return Data Structure

Status Code 200

NameTypeRequiredConstraintChinese NameDescription
» codeintegerfalsenoneStatus code: 200 Success, 3 invalid app_key, 156 account not real-name authenticated
» msgstringfalsenoneStatus message
» datanullfalsenonenone

POST Modify proxy account password

POST /open/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

NameLocationTypeRequiredDescription
bodybodyobjectNonone
» app_keybodystringNoAuthorization Key
» accountbodystringNoProxy account, only supports numbers and letters.
» passwordbodystringNoNew password for proxy account, only numbers and letters are supported.

Return example

200 Response

{
	"code": 200,
	"msg": "string",
	"data": null
}

Return Result

Status CodeStatus Code MeaningDescriptionData Model
200OKRequest SuccessInline

Return Data Structure

Status Code 200

NameTypeRequiredConstraintChinese NameDescription
» codeintegerfalsenoneStatus code: 200 Success, 3 invalid app_key, 156 account not real-name authenticated
» msgstringfalsenoneStatus message
» datanullfalsenonenone

POST Modify proxy account remarks

POST /open/whitelist-account/change-remark

Body Request Parameters

{
	"app_key": "stringstringstringstringstringst",
	"account": "user",
	"remark": ""
}

Request Parameters

NameLocationTypeRequiredDescription
bodybodyobjectNonone
» app_keybodystringNoAuthorization Key
» accountbodystringNoProxy account, only supports numbers and letters.
» remarkbodystringNoNew agent account note, within 32 Chinese characters or 64 English characters.

Return example

200 Response

{
	"code": 200,
	"msg": "string",
	"data": null
}

Return Result

Status CodeStatus Code MeaningDescriptionData Model
200OKRequest SuccessInline

Return Data Structure

Status Code 200

NameTypeRequiredConstraintChinese NameDescription
» codeintegerfalsenoneStatus code: 200 Success, 3 invalid app_key, 156 account not real-name authenticated
» msgstringfalsenoneStatus message
» datanullfalsenonenone

POST Modify Agent Account Traffic Limit

POST /open/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

NameLocationTypeRequiredDescription
bodybodyobjectNonone
» app_keybodystringNoAuthorization Key
» accountbodystringNoProxy account, only supports numbers and letters.
» limitbodyintegerNoTraffic limit, unit: GB, 0 means no limit

Return example

200 Response

{
	"code": 200,
	"msg": "string",
	"data": null
}

Return Result

Status CodeStatus Code MeaningDescriptionData Model
200OKRequest SuccessInline

Return Data Structure

Status Code 200

NameTypeRequiredConstraintChinese NameDescription
» codeintegerfalsenoneStatus code: 200 Success, 3 invalid app_key, 156 account not real-name authenticated
» msgstringfalsenoneStatus message
» datanullfalsenonenone

Traffic Log Query

GET Usage Traffic Aggregated by Day

GET /open/user-usage-flow/total

Request Parameters

NameLocationTypeRequiredDescription
app_keyquerystring(password)YesAuthentication Key
start_timequerystring(Y-m-d H:i:s)NoStart time, accurate to the second. Please note that there is a delay of up to 5 minutes in logging. Default within 7 days.
end_timequerystring(Y-m-d H:i:s)NoEnd time, accurate to the second. Please note that there is a delay of up to 5 minutes in logging. Defaults to the current time.
usernamequerystringNoSub-account name, defaults to query all accounts, can specify a sub-account. Please note that if you have added sub-accounts with the same name, this query will return all usage records for proxy accounts with the same name.
product_typequerynumberNoPackage Type

Return example

200 Response

{
	"code": 200,
	"msg": "string",
	"data": {
		"list": [
			{
				"day": "2022-08-01",
				"flow": 0
			}
		]
	}
}

Return Result

Status CodeStatus Code MeaningDescriptionData Model
200OKRequest SuccessInline

Return Data Structure

Status Code 200

NameTypeRequiredConstraintChinese NameDescription
» codeintegerfalsenoneStatus code: 200 Success, 3 invalid app_key, 156 account not real-name authenticated
» msgstringfalsenoneStatus message
» dataobjectfalsenonenone
»» list[object]falsenonenone
»»» daystringfalsenoneDate
»»» flowintegerfalsenoneTraffic consumption, unit: KB

Package inquiry

GET purchased package list

GET /open/user-product/list

Request Parameters

NameLocationTypeRequiredDescription
app_keyquerystring(password)YesAuthentication Key
trade_noquerystringNoOrder number, please enter the complete order number. Fuzzy search is not supported.
pagequerynumberNoPagination, default: 1
sizequerynumberNoNumber of items per page, default: 20
product_typequerynumberNoPackage 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 CodeStatus Code MeaningDescriptionData Model
200OKRequest SuccessInline

Return Data Structure

Status Code 200

NameTypeRequiredConstraintChinese NameDescription
» codeintegerfalsenoneStatus code: 200 Success, 3 invalid app_key, 156 account not real-name authenticated
» msgstringfalsenoneStatus message
» dataobjectfalsenonenone
»» list[object]falsenonenone
»»» idintegerfalsenonePackage Number
»»» created_atstringfalsenonePackage Activation Time
»»» expired_atstringfalsenonePackage Expiration Time, after expiration the traffic cannot be used.
»»» product_typeproductTypesfalsenonePackage Type, 9 Dynamic Residential Traffic Package, 11 Dynamic Residential IP, 14 Static Datacenter IP, 25 Static Residential IP
»»» trade_nostringfalsenoneOrder transaction number
»»» orderobjectfalsenonenone
»»»» created_atstringfalsenoneOrder creation time
»»»» pay_atstringfalsenoneOrder payment time
»»»» titlestringfalsenoneOrder Description
»» pageintegerfalsenoneCurrent Page
»» page_sizeintegerfalsenonePage Size
»» total_countintegerfalsenoneTotal number of records
»» total_pageintegerfalsenoneTotal number of pages

Enum Value

PropertyValue
product_type9
product_type11
product_type14
product_type25

IP Extraction

GET Extract IP

GET /open/ip/v3

Request Parameters

NameLocationTypeRequiredDescription
app_keyquerystring(password)NoAccess Key
ccquerystringNoCountry or Region
statequerystringNoState or Province
cityquerystringNoCity
formatquerystringNoGet Format
lbquerystringNoSeparator, valid only for text format
numquerynumberNoExtraction Quantity
lifequerynumberNoKeep Cycle - Minutes
epquerystringNoProxy 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 CodeStatus Code MeaningDescriptionData Model
200OKRequest SuccessInline

Return Data Structure

Status Code 200

NameTypeRequiredConstraintChinese NameDescription
» codeintegerfalsenoneStatus code: 200 Success, 3 invalid app_key, 156 account not real-name authenticated
» msgstringfalsenoneStatus message
» dataobjectfalsenonenone
»» list[any]falsenonenone

GET City List

GET /open/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 CodeStatus Code MeaningDescriptionData Model
200OKRequest SuccessInline

Return Data Structure

Status Code 200

NameTypeRequiredConstraintChinese NameDescription
» codeintegerfalsenoneStatus code: 200 Success, 3 invalid app_key, 156 account not real-name authenticated
» msgstringfalsenoneStatus message
» dataobjectfalsenonenone
»» list[object]falsenoneList
»»» name_zh_cnstringfalsenoneCountry or region name
»»» name_enstringfalsenoneCountry or region name
»»» continent_codestringfalsenoneContinent code
»»» country_codestringfalsenoneCountry or region code
»»» items[object]falsenoneState or Province
»»»» citystringfalsenoneCity name
»»»» statestringfalsenoneProvince or state name code
»»»» continent_codestringfalsenoneContinent code
»»»» country_codestringfalsenoneCountry or region code

GET City Search

GET /open/ip/dynamic-citys/search

Request Parameters

NameLocationTypeRequiredDescription
country_codequerystringYesCountry or region code
statequerystringYesState or province code

Return example

200 Response

{
	"code": 200,
	"msg": "string",
	"data": {
		"list": ["string"]
	}
}

Return Result

Status CodeStatus Code MeaningDescriptionData Model
200OKRequest SuccessInline

Return Data Structure

Status Code 200

NameTypeRequiredConstraintChinese NameDescription
» codeintegerfalsenoneStatus code: 200 Success, 3 invalid app_key, 156 account not real-name authenticated
» msgstringfalsenoneStatus message
» dataobjectfalsenonenone
»» list[string]falsenoneList

GET State List

GET /open/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 CodeStatus Code MeaningDescriptionData Model
200OKRequest SuccessInline

Return Data Structure

Status Code 200

NameTypeRequiredConstraintChinese NameDescription
» codeintegerfalsenoneStatus code: 200 Success, 3 invalid app_key, 156 account not real-name authenticated
» msgstringfalsenoneStatus message
» dataobjectfalsenonenone
»» list[object]falsenoneList
»»» name_zh_cnstringfalsenoneCountry or region name
»»» name_enstringfalsenoneCountry or region name
»»» continent_codestringfalsenoneContinent code
»»» country_codestringfalsenoneCountry or region code
»»» items[object]falsenoneState or Province
»»»» statestringfalsenoneProvince or state name code
»»»» continent_codestringfalsenoneContinent code
»»»» country_codestringfalsenoneCountry or region code

GET State/Province Search

GET /open/ip/dynamic-states/search

Request Parameters

NameLocationTypeRequiredDescription
country_codequerystringYesCountry or region code

Return example

200 Response

{
	"code": 200,
	"msg": "string",
	"data": {
		"list": ["string"]
	}
}

Return Result

Status CodeStatus Code MeaningDescriptionData Model
200OKRequest SuccessInline

Return Data Structure

Status Code 200

NameTypeRequiredConstraintChinese NameDescription
» codeintegerfalsenoneStatus code: 200 Success, 3 invalid app_key, 156 account not real-name authenticated
» msgstringfalsenoneStatus message
» dataobjectfalsenonenone
»» list[string]falsenoneList

GET Extract Purchased Static IP List

GET /open/ip/get-static-ip

Request Parameters

NameLocationTypeRequiredDescription
country_codequerystringNoCountry or region code
product_typequerynumberNoProduct Type, 25: Static Residential IP, 14: Data Center IP
trade_noquerystringNoFilter IPs by Order Number
pagequerynumberNoPage number
sizequerynumberNoPage size
statusquerynumberNoStatus, 1: valid, 2: invalid, 3: expiring soon, 4: under maintenance

Enum Value

PropertyValue
product_type14
product_type25
status1
status2
status3
status4

Return example

200 Response

{}

Return Result

Status CodeStatus Code MeaningDescriptionData Model
200OKnoneInline

Return Data Structure


GET Get the number of static IPs in the sales area

GET /open/static-ip-region

Request Parameters

NameLocationTypeRequiredDescription
ispquerystringNoIP Type

IP Type Description

IP TypeDescription
1Residential Static IP
0Data Center Static IP

Return example

200 Response

{
	"code": 200,
	"msg": "请求成功",
	"data": {
		"list": [
			{
				"code": "US",
				"number": 55
			}
		]
	}
}

Return Result

Status CodeStatus Code MeaningDescriptionData Model
200OKnoneInline

Return Data Structure

Status Code 200

NameTypeRequiredConstraintChinese NameDescription
» codeintegerfalsenoneStatus Code, 200 Success
» msgstringfalsenoneStatus message
» dataobjectfalsenonenone
»» list[object]falsenonenone
»»» codestringfalsenoneCountry or region code
»»» numberintegerfalsenoneQuantity

Order Management

GET Order List

GET /open/order/list

Request Parameters

NameLocationTypeRequiredDescription
page_noqueryintegerNonone
page_sizequeryintegerNonone
trade_noquerystringNoOrder number
statusqueryintegerNoOrder Status
product_typequeryintegerNoProduct Type

Detailed Description

status: Order Status

StatusDescription
0Pending Payment
1Paid
2Cancelled due to timeout
3Refunded

product_type: 产品类型

Product TypeDescription
3Top Up Balance
9Dynamic Traffic Package
11Dynamic Global Hourly Package V2
12Long-term IDC traffic package
13Residential static IP traffic package
14Data center static IP package
15Long-term ISP traffic package
16Static Traffic Package
17Dynamic IP Quantity Package
18web-scraper
19Static IP Renewal
20Static IP Replacement Quota
21Static Traffic Package v2
24Static Traffic Add-on Package
25Residential Static IP Package
26Order Completion - 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
27Serp
28Video

Enum Value

PropertyValue
status0
status1
status2
status3
product_type3
product_type9
product_type11
product_type12
product_type14
product_type16
product_type17
product_type18
product_type19
product_type21
product_type24
product_type25
product_type26
product_type27
product_type28

Return example

200 Response

{
	"code": 0,
	"message": "操作成功",
	"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 CodeStatus Code MeaningDescriptionData Model
200OKSuccessInline

Return Data Structure


POST Create Order

POST /open/order/create

Due to the variety of packages and different configurations for each package, please fill in the parameters according to the actual situation. Improperly filled parameters may cause the order creation to fail.

examples:

Renew Static IP

{
    "pid": x, // 联系客服获取
    "upids": "1,2,3,4,5,6", // 从 /end-point/ip/get-static-ip 获取对应的ID
    "pm_id": 1 // 从 /end-point/payment/list 获取
    "coupon_sn: "xxx", // 可选 优惠券
  }

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

NameLocationTypeRequiredDescription
bodybodyobjectYesnone
» pidbodyintegerYesPackage ID
» upidsbodystringNoRenewal Package ID List
» amountbodynumberNoNew Package Quantity
» pm_idbodyintegerYesPayment method ID
» region_listbodystringNoSpecify region + quantity when purchasing a static IP
» coupon_snbodystringNoCoupon code
» use_invitation_registration_discountbodybooleanNoWhether to use invitation registration discount
» renew_durationbodyintegerNoRenewal Duration - Static IP Optional
» product_sku_bandwidth_idbodyintegerNoPackage 11: Bandwidth Package ID
» product_sku_concurrency_idbodyintegerNoPackage 11: Concurrent Package ID
» recharge_amountbodyintegerNoPackage 3: Recharge Amount

Return example

200 Response

{
	"code": 0,
	"message": "操作成功",
	"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 CodeStatus Code MeaningDescriptionData Model
200OKCreated successfullyInline

Return Data Structure


POST Cancel Order

POST /open/order/close

Body Request Parameters

{
	"trade_no": "string"
}

Request Parameters

NameLocationTypeRequiredDescription
bodybodyobjectYesnone
» trade_nobodystringYesnone

Return Result

Status CodeStatus Code MeaningDescriptionData Model
200OKOperation successfulNone

User management

GET Get User Information - Not Yet Open

GET /open/user/info

Return example

200 Response

{
	"code": 0,
	"message": "操作成功",
	"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 CodeStatus Code MeaningDescriptionData Model
200OKSuccessInline

Return Data Structure


Payment Management

GET Get Payment Method List

GET /open/payment/groups

Request Parameters

NameLocationTypeRequiredDescription
trade_noquerystringNoOrder number - can be passed in when some orders need to obtain a specific payment method

Return example

200 Response

{
	"code": 0,
	"message": "操作成功",
	"data": {
		"list": [
			{
				"name": "支付方式分组",
				"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 CodeStatus Code MeaningDescriptionData Model
200OKSuccessfully obtainedInline

Return Data Structure

NameTypeRequiredConstraintChinese NameDescription
» codeintegerfalsenoneStatus code: 200 Success, 3 invalid app_key, 156 account not real-name authenticated
» msgstringfalsenoneStatus message
» dataobjectfalsenonenone
»» namestringfalsenoneGroup Name
»» logosstring[]falsenoneGroup Icon List
»» itemsobject[]falsenoneGrouped Item List
»»» idintegerfalsenonePayment Method ID
»»» titlestringfalsenonePayment Method Name
»»» logostringfalsenonePayment Method Logo
»»» groupstringfalsenonePayment Method Grouping Identifier
»»» disabledbooleanfalsenoneWhether to disable (default false)
»» minnumberfalsenoneMinimum amount
»»» maxnumberfalsenoneMaximum amount

Marketing

GET Recharge Bonus Ratio

GET /open/activity/balance-recharge-gift-ratio

Recharge Bonus Ratio

Return example

200 Response

{
	"code": 0,
	"msg": "操作成功",
	"data": {
		"list": [
			{
				"amount": 100,
				"ratio": 1.2
			}
		]
	}
}

Return Result

Status CodeStatus Code MeaningDescriptionData Model
200OKOKInline

Return Data Structure

NameTypeRequiredConstraintChinese NameDescription
» codeintegerfalsenoneStatus code: 200 Success, 3 invalid app_key, 156 account not real-name authenticated
» msgstringfalsenoneStatus message
» dataobjectfalsenonenone
» list[object]falsenonenone
»» amountintegerfalsenoneRecharge Amount
»» rationumberfalsenoneRecharge Ratio

Data Structure Description (Schemas)

productTypes (Package Types)

FieldTypeDescription
product_typeintegerPackage Type

Description of Optional Values:

ValueMeaning
9Dynamic Residential Traffic Package
11Dynamic Residential IP
14Static Datacenter IP
25Residential Static IP

API Key

Used for interface authentication, please pass it through the Query parameter.

Parameter nameLocationTypeRequiredDescription
app_keyquerystringYesAuthentication Key

Common Response Fields

responseCode

FieldTypeExampleDescription
codeinteger200Status code (200 success, 3 means invalid app_key)

responseMsg

FieldTypeExampleDescription
messagestringsuccessResponse Information

成功响应(SuccessResponse)

{
	"code": 0,
	"message": "操作成功",
	"data": {}
}

Error Response (ErrorResponse)

{
	"code": 400,
	"message": "参数错误",
	"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"
}
NameTypeRequiredConstraintChinese NameDescription
idintegerfalsenonenone
emailstring(email)falsenonenone
phonestringfalsenonenone
balancenumber(float)falsenonenone
statusintegerfalsenonenone
is_real_namebooleanfalsenonenone
created_atstring(date-time)falsenonenone

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"
}
NameTypeRequiredConstraintChinese NameDescription
idintegerfalsenonenone
trade_nostringfalsenonenone
product_idintegerfalsenonenone
product_namestringfalsenonenone
total_feenumber(float)falsenonenone
pay_feenumber(float)falsenonenone
statusintegerfalsenonenone
created_atstring(date-time)falsenonenone

Product

{
	"id": 0,
	"name": "string",
	"type": 0,
	"price": 0.1,
	"description": "string"
}
NameTypeRequiredConstraintChinese NameDescription
idintegerfalsenonenone
namestringfalsenonenone
typeintegerfalsenonenone
pricenumber(float)falsenonenone
descriptionstringfalsenonenone

WhiteIp

{
	"id": 0,
	"ip": "string",
	"remark": "string",
	"created_at": "2019-08-24T14:15:22Z"
}
NameTypeRequiredConstraintChinese NameDescription
idintegerfalsenonenone
ipstringfalsenonenone
remarkstringfalsenonenone
created_atstring(date-time)falsenonenone

WhitelistAccount

{
	"id": 0,
	"username": "string",
	"limit": 0,
	"used": 0,
	"status": 0
}
NameTypeRequiredConstraintChinese NameDescription
idintegerfalsenonenone
usernamestringfalsenonenone
limitintegerfalsenonenone
usedintegerfalsenonenone
statusintegerfalsenonenone

Coupon

{
	"id": 0,
	"name": "string",
	"code": "string",
	"discount": 0.1,
	"expire_time": "2019-08-24T14:15:22Z"
}
NameTypeRequiredConstraintChinese NameDescription
idintegerfalsenonenone
namestringfalsenonenone
codestringfalsenonenone
discountnumber(float)falsenonenone
expire_timestring(date-time)falsenonenone

Article

{
	"id": 0,
	"title": "string",
	"content": "string",
	"created_at": "2019-08-24T14:15:22Z"
}
NameTypeRequiredConstraintChinese NameDescription
idintegerfalsenonenone
titlestringfalsenonenone
contentstringfalsenonenone
created_atstring(date-time)falsenonenone

Pagination

{
	"total": 0,
	"page_no": 0,
	"page_size": 0,
	"total_pages": 0
}
NameTypeRequiredConstraintChinese NameExplanation
totalintegerfalsenonenone
page_nointegerfalsenonenone
page_sizeintegerfalsenonenone
total_pagesintegerfalsenonenone