GEThttps://api.xmrig.com/1/benchmark/:idGet a full benchmark object with specified id. Live example.
GEThttps://api.xmrig.com/1/benchmarksGEThttps://api.xmrig.com/1/benchmarks?algo=:algoGEThttps://api.xmrig.com/1/benchmarks/:threadsGEThttps://api.xmrig.com/1/benchmarks/:threads?algo=:algoGet an array of top benchmark results ordered by hashrate with optional parameters: algo and threads. Main benchmark page uses this API endpoints.
| Field | Type | Description |
|---|---|---|
algo | String | Benchmark algorithm, right now only supported values is rx/0 and rx/wow. By default rx/0. |
threads | Number | Number of threads for filter, by default 0 (no filter results). |
GEThttps://api.xmrig.com/1/benchmarks?cpu=:cpuGEThttps://api.xmrig.com/1/benchmarks?algo=:algo&cpu=:cpuGet an array of compact benchmarks objects ordered by hashrate with required parameter cpu and optional algo.
GEThttps://api.xmrig.com/1/benchmarks/recentGEThttps://api.xmrig.com/1/benchmarks/recent?limit=:limitGet an array of recently submitted benchmarks with optional limit parameter (1-100).
POSThttps://api.xmrig.com/1/benchmarkCreate a benchmark and get initial benchmark parameters, this API endpoint used internally by XMRig miner.
| Field | Type | Description |
|---|---|---|
size | Number | Benchmark size from 1000000 to 10000000. |
algo | String | Algorithm: rx/0 or rx/wow. |
version | String | Miner version, for example 6.6.0. |
cpu | Object | Object with information about CPU in same format with the miner API. |
Miner user agent transferred as User-Agent HTTP header and version should match with request body.
| Field | Type | Description |
|---|---|---|
id | String | Benchmark public id. |
seed | String | RandomX seed hash to initialize benchmark. |
token | String | Token for update benchmark state. |
PATCHhttps://api.xmrig.com/1/benchmark/:idStart (first request) or finish (second request) benchmark, this API endpoint used internally by XMRig miner. Authorization is required by using Authorization HTTP header with Bearer token.
| Field | Type | Description |
|---|---|---|
steady_start_ts | Number | Steady timestamp of benchmark start time. |
| Field | Type | Description |
|---|---|---|
steady_done_ts | Number | Steady timestamp of benchmark finish time. Benchmark duration is difference between steady_done_ts and steady_start_ts. Server is also recording time between API calls and reject benchmark is time difference with reported by miner is above certain limit. |
hash | String | Checksum of benchmark execution with seed can be used for validation. |
backend | Object | Object with information about CPU mining backend in same format with the miner API. |