API Reference
/- Browser
- Local API
/
Download browser kernel
Download and install browser kernel(s). Supports batch downloading up to 20 kernels per request. The timeout for this operation can be up to approximately 30 minutes; callers should set their timeout to greater than 1805 seconds.
Requires MoreLogin client version 2.61.1 or higher.
- If the same browser type and major version appears multiple times in a single request, only one lookup and download is performed, but each entry gets its own result.
- Concurrent requests for the same version will join the in-flight task instead of starting a new download.
- If the requested version is already installed with the latest minor version, the status will be
already_installed. - If an older minor version is installed, it will be updated to the latest available minor version.
| errorCode | Description |
|---|---|
INVALID_JSON | Malformed JSON body |
INVALID_REQUEST | Invalid request structure |
BATCH_LIMIT_EXCEEDED | Cores array exceeds 20 items |
UNSUPPORTED_BROWSER_TYPE | Unsupported browser type |
INVALID_VERSION | Invalid version format |
METADATA_LOOKUP_FAILED | Failed to query kernel metadata |
UNSUPPORTED_VERSION | Kernel version does not exist or is not supported on this platform |
CLIENT_NOT_READY | Client not ready |
SDK_NOT_READY | SDK not initialized |
INSUFFICIENT_DISK_SPACE | Insufficient disk space |
DOWNLOAD_FAILED | Download failed |
CHECKSUM_MISMATCH | MD5 checksum verification failed |
EXTRACTION_FAILED | Extraction or installation failed |
TIMEOUT | Operation timed out |
UNKNOWN | Unknown error |
- Local APIhttp://127.0.0.1:40000/api/env/core/download
curl -i -X POST \
http://127.0.0.1:40000/api/env/core/download \
-H 'Content-Type: application/json' \
-d '{
"Cores": [
{
"BrowserType": 1,
"Version": "124"
}
]
}'Success. data is an object with the fields total, succeeded, failed and results.
Response
{ "code": 0, "msg": null, "data": { "total": 1, "succeeded": 1, "failed": 0, "results": [ … ] } }