Get random memory and CPU values
Independently select and return a random memory capacity and CPU core count from the public presets.
Request parameters
Authorization Bearer Token
Include your API Key as a Bearer token in the Authorization request header.
Authorization: Bearer <api-key>Request code examples
JavaScript / TypeScript: Node.js 18+ with fetch; PHP: cURL extension; Go: 1.16+; Java: JDK 11+. Replace the token and example parameter values before running.
curl -H 'Authorization: Bearer <TOKEN>' 'http://local.zhongyibrowser.com:39025/api/v1/profile-options/hardware/random'Responses
Success: code = 0. Failure: code > 0. Select a status to view its fields and example. Expand objects to inspect nested fields. Optional fields may be omitted.
Random memory and CPU presets
Body
application/jsonProfileHardwareRandomSuccessResponseFields
numberrequired
Business status code; always 0 on success
Enum
stringrequired
Business status message; always success on success
Enum
objectrequiredEndpoint business dataAdditional fields are not allowed.
Additional fields are not allowed.
Generated from the schema; not a live response.
{
"code": 0,
"message": "success",
"data": {
"memory_gb": 0,
"cpu_cores": 0
}
}