SmartProxy OpenAPI DocSmartProxy OpenAPI Doc
  • English
  • zh-CN
  • English
  • zh-CN
  • Authentication Method
  • Response Format
  • Proxy Account
  • Traffic Log
  • Product Query
  • IP Extract
  • Order Management
  • User Management
  • Payment Management
  • Marketing/Activity

Traffic Usage Summary by Day

GET

/pub/user-usage-flow/total

Request Parameters

NameLocationTypeRequiredDescription
app_keyquerystring(password)YesAuthentication key
start_timequerystring(Y-m-d H:i:s)NoStart time, can be accurate to seconds. Please note that log records have a delay within 5 minutes. Default is within 7 days.
end_timequerystring(Y-m-d H:i:s)NoEnd time, can be accurate to seconds. Please note that log records have a delay within 5 minutes. Default is current time.
usernamequerystringNoSub-account name, default queries all accounts, can specify 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

Response Example

200 Response

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

Response Result

Status CodeStatus Code MeaningDescriptionData Model
200OKRequest successfulInline

Response Data Structure

Status Code 200

NameTypeRequiredConstraintChinese NameDescription
» codeintegerfalsenoneStatus code: 200 success, 3 invalid app_key, 156 account not verified
» msgstringfalsenoneStatus message
» dataobjectfalsenonenone
»» list[object]falsenonenone
»»» daystringfalsenoneDate
»»» flowintegerfalsenoneTraffic consumed, unit: KB
Prev
Proxy Account
Next
Product Query