Returns both hashpower and difficulty, including chart points and the latest recorded sample within your chosen dates. Every response contains all five algorithms; select the fields you need in your client.
PUBLIC API / DEVELOPER REFERENCE
Read the signal.
Five algorithms. Two metrics. Explore Verge hashrate and difficulty through a simple JSON API.
Start with one request
Read the last 24 hours of data for every algorithm. No account, API key, or authentication header is required.
curl -fsS 'https://vergecurrency.network/api/dashboard'
JavaScript example · Node.js or a page on this origin
const end = new Date();
const start = new Date(end.getTime() - 60 * 60 * 1000);
const url = new URL('https://vergecurrency.network/api/dashboard');
url.search = new URLSearchParams({
from: start.toISOString(),
to: end.toISOString(),
bucket: 'auto'
});
const response = await fetch(url);
const data = await response.json();
if (!response.ok) throw new Error(data.error);
console.log(data.datasets.hashpower.latest?.scrypt);
console.log(data.datasets.difficulty.points);The API is public, but cross-origin browser requests are not enabled. Use a server-side client to fetch it from another website, or call it from a page on this origin.
Choose your signal
{"status":"ok","mode":"live"}This confirms the web process is responding. It does not check whether new mining samples are being collected. Check sample timestamps in the dashboard response for freshness.
Both endpoints also accept HEAD. Requests are read-only; other HTTP methods are rejected.
Date ranges & grouping
Add these query parameters to /api/dashboard. Omit the dates for the last 24 hours, or supply both dates together.
| Parameter | Format | Behavior |
|---|---|---|
from | ISO UTC string | Start date, inclusive. Example: 2026-11-05T12:00:00Z. |
to | ISO UTC string | End date, inclusive. Must follow from. Choose dates ending at or before now. |
bucket | auto, hour, day, month | Optional, defaults to auto. Controls the averaging interval. |
| Grouping | Values returned | Maximum date span |
|---|---|---|
auto | About 360 averaged points, with a minimum interval of one minute. | 20 years |
hour | Hourly averages. | 31 days |
day | Daily averages. | 744 days |
month | Actual calendar-month averages, weighted by sample count. | 20 years |
Dates must include the time and end in Z; optional fractional seconds are supported. Hour, day, and month boundaries use UTC. Only from, to, and bucket are accepted, once each. There is no algorithm, period, or arbitrary query parameter.
Know your fields
Hashrate uses raw hashes per second (H/s). Difficulty is dimensionless. Grouped values are averages and may be fractional.
| Algorithm | Inside datasets.hashpower | Inside datasets.difficulty |
|---|---|---|
| Scrypt | scrypt | scrypt |
| Groestl | groestl | groestl |
| Lyra2RE | lyra2re | lyra2re |
| X17 | x17 | x17 |
| Blake2s | blake2s | blake |
The Blake field names differ between the two metrics. A value of null means no recorded value; it is not a zero. Each point's time is a Unix timestamp in milliseconds: use new Date(point.time) in JavaScript.
Data & freshness
| Property | Meaning |
|---|---|
mode | live means real recorded data, not a guarantee it is current. demo identifies generated preview data. |
generatedAt | ISO UTC time this response was generated. A cached response retains its original time. |
range | Effective from, to, intervalMs in milliseconds, and the selected grouping. Monthly grouping combines daily samples into calendar months. |
availableRange | Known recorded history as {from, to} in milliseconds, or null if none is known or metadata is unavailable. |
datasets | Contains hashpower and difficulty. Each has points (averaged rows), latest (the latest raw sample in your dates, or null), and available (whether its queries succeeded). |
partial | true when one metric could not be loaded. An empty period alone does not make a result partial. |
latestObservedAt | Newest raw sample timestamp in the selected range, in milliseconds, or null. Use this to evaluate freshness for a current period. |
null; clients should not replace them with zero. Historical backfilled snapshots may be less frequent than live samples.Example data excerpt · illustrative values, metadata omitted
{
"datasets": {
"hashpower": {
"points": [
{"time":1735689600000,"scrypt":8400000000000,"groestl":31000000000,"lyra2re":62000000000,"x17":1800000000000,"blake2s":210000000000000}
],
"latest": {"time":1735689600000,"scrypt":8400000000000,"groestl":31000000000,"lyra2re":62000000000,"x17":1800000000000,"blake2s":210000000000000},
"available": true
},
"difficulty": {
"points": [
{"time":1735689600000,"scrypt":284000,"groestl":1200,"lyra2re":2100,"x17":58000,"blake":7100000}
],
"latest": {"time":1735689600000,"scrypt":284000,"groestl":1200,"lyra2re":2100,"x17":58000,"blake":7100000},
"available": true
}
}
}Try the API
Build a request for this site's public chart endpoint. Dates below are entered in UTC. No request is sent until you press Run request.
Choose a time window to build your request.
Ready when you are.
Usage & errors
Poll at most once per minute. Chart requests are limited to 12 per 10 seconds per client IP address; clients sharing an address share that allowance. Identical date ranges may be cached for 30 seconds, and history metadata for up to one minute.
| Status | Meaning |
|---|---|
200 | Successful response, including valid periods with no recorded samples. Check partial and each metric's available flag. |
400 | Invalid dates, grouping, unknown parameters, or repeated parameters. |
404 | Unknown route. |
405 | Unsupported HTTP method. Use GET or HEAD. |
429 | Rate limited or temporarily busy. Honor Retry-After when present and back off before retrying. |
503 | Statistics temporarily unavailable. Retry later. |
Errors use a JSON object with an error message:
{"error":"Provide both from and to dates."}