Verylot API

The Verylot API gives members any past digit with its proof. Every endpoint needs a signed request with your API key.

Basics

  • Base URL: https://api.verylot.online — every path starts with /v1.
  • Time: everything is UTC. Times are ISO 8601 (2026-10-07T06:00:00Z).
  • Slots: time is cut into 10-second slots, slot = unix_seconds / 10. One digit per slot; slot 179135280 is 2026-10-07 06:00:00 UTC.
  • Caching: finished ranges never change. /v1/stream/block sends Cache-Control: public, max-age=600 for them.
  • Cost: free. Fair-use limits apply (see Limits).

Endpoints

Every endpoint with its parameters, a request in several languages and a sample response. All of them are for members and need signed requests (see Signed requests below).

How to check a proof step by step: How it works.

Signed requests

Member endpoints use an API key pair (Ed25519), not a shared secret:

  1. In the member panel you create a key. The key pair is generated in your browser; Verylot stores only the public key. You keep the private key (shown once, or downloaded as a .pem file). You can also paste a public key you generated yourself. → /panel/api-keys · step by step in the guide
  2. Every request carries four headers:
Header Value
X-Verylot-Key the key id, e.g. vk_7Qm2xR9a
X-Verylot-Timestamp the current UTC time; accepted within ±5 minutes
X-Verylot-Nonce 16 random bytes, base64url; a new one for every request
X-Verylot-Signature base64 of the Ed25519 signature of the text below

The signed text is these five lines joined with \n:

GET
/v1/stream?at=2026-10-07T06:00:00Z&digits=6
2026-10-07T10:15:00Z
q8Jm1Xb3oV0p9nW2rT5yZA
<hex SHA-256 of the request body; of an empty string for GET>
REQ='/v1/stream?at=2026-10-07T06:00:00Z&digits=6'
TS=$(date -u +%Y-%m-%dT%H:%M:%SZ)
NONCE=$(openssl rand -base64 16 | tr '+/' '-_' | tr -d '=')
HASH=$(printf '' | sha256sum | cut -d' ' -f1)
printf 'GET\n%s\n%s\n%s\n%s' "$REQ" "$TS" "$NONCE" "$HASH" > signed.txt
SIG=$(openssl pkeyutl -sign -inkey verylot.pem -rawin -in signed.txt | base64 -w0)

curl "https://api.verylot.online$REQ" \
  -H "X-Verylot-Key: vk_7Qm2xR9a" -H "X-Verylot-Timestamp: $TS" \
  -H "X-Verylot-Nonce: $NONCE" -H "X-Verylot-Signature: $SIG"
import { createHash, createPrivateKey, randomBytes, sign } from 'node:crypto'
import { readFileSync } from 'node:fs'

const key = createPrivateKey(readFileSync('verylot.pem'))
const path = '/v1/stream?at=2026-10-07T06:00:00Z&digits=6'
const ts = new Date().toISOString().replace(/\.\d+Z$/, 'Z')
const nonce = randomBytes(16).toString('base64url')
const text = ['GET', path, ts, nonce, createHash('sha256').update('').digest('hex')].join('\n')
const signature = sign(null, Buffer.from(text), key).toString('base64')

const res = await fetch('https://api.verylot.online' + path, {
  headers: {
    'X-Verylot-Key': 'vk_7Qm2xR9a', 'X-Verylot-Timestamp': ts,
    'X-Verylot-Nonce': nonce, 'X-Verylot-Signature': signature,
  },
})
const result = await res.json()
import base64, datetime, hashlib, os
import requests
from cryptography.hazmat.primitives.serialization import load_pem_private_key   # pip install cryptography

key = load_pem_private_key(open('verylot.pem', 'rb').read(), None)
path = '/v1/stream?at=2026-10-07T06:00:00Z&digits=6'
ts = datetime.datetime.now(datetime.timezone.utc).strftime('%Y-%m-%dT%H:%M:%SZ')
nonce = base64.urlsafe_b64encode(os.urandom(16)).rstrip(b'=').decode()
text = '\n'.join(['GET', path, ts, nonce, hashlib.sha256(b'').hexdigest()])
signature = base64.b64encode(key.sign(text.encode())).decode()

result = requests.get('https://api.verylot.online' + path, headers={
    'X-Verylot-Key': 'vk_7Qm2xR9a', 'X-Verylot-Timestamp': ts,
    'X-Verylot-Nonce': nonce, 'X-Verylot-Signature': signature}).json()
// dotnet add package NSec.Cryptography   (Ed25519)
using System.Security.Cryptography;
using System.Text;
using NSec.Cryptography;

var key = Key.Import(SignatureAlgorithm.Ed25519, File.ReadAllBytes("verylot.pem"), KeyBlobFormat.PkixPrivateKeyText);
var path = "/v1/stream?at=2026-10-07T06:00:00Z&digits=6";
var ts = DateTime.UtcNow.ToString("yyyy-MM-dd'T'HH:mm:ss'Z'");
var nonce = Convert.ToBase64String(RandomNumberGenerator.GetBytes(16)).TrimEnd('=').Replace('+', '-').Replace('/', '_');
var hash = Convert.ToHexStringLower(SHA256.HashData([]));
var text = string.Join('\n', "GET", path, ts, nonce, hash);
var signature = Convert.ToBase64String(SignatureAlgorithm.Ed25519.Sign(key, Encoding.UTF8.GetBytes(text)));

using var http = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Get, "https://api.verylot.online" + path);
request.Headers.Add("X-Verylot-Key", "vk_7Qm2xR9a");
request.Headers.Add("X-Verylot-Timestamp", ts);
request.Headers.Add("X-Verylot-Nonce", nonce);
request.Headers.Add("X-Verylot-Signature", signature);
var response = await http.SendAsync(request);
// Ed25519 with PHP's built-in sodium; the PEM (PKCS#8) ends with the 32-byte seed.
$der = base64_decode(preg_replace('/-----[^-]+-----|\s/', '', file_get_contents('verylot.pem')));
$secret = sodium_crypto_sign_secretkey(sodium_crypto_sign_seed_keypair(substr($der, -32)));

$path = '/v1/stream?at=2026-10-07T06:00:00Z&digits=6';
$ts = gmdate('Y-m-d\TH:i:s\Z');
$nonce = rtrim(strtr(base64_encode(random_bytes(16)), '+/', '-_'), '=');
$text = implode("\n", ['GET', $path, $ts, $nonce, hash('sha256', '')]);
$signature = base64_encode(sodium_crypto_sign_detached($text, $secret));

$ch = curl_init('https://api.verylot.online' . $path);
curl_setopt_array($ch, [
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_HTTPHEADER => [
        'X-Verylot-Key: vk_7Qm2xR9a', "X-Verylot-Timestamp: $ts",
        "X-Verylot-Nonce: $nonce", "X-Verylot-Signature: $signature",
    ],
]);
$result = json_decode(curl_exec($ch), true);

A leaked database cannot sign requests for you, and a captured request cannot be replayed.

Errors

Errors use RFC 7807 problem details. code is stable; title is translated into the language of Accept-Language.

{ "status": 401, "code": "error.auth.signature-invalid", "title": "The request signature is missing or invalid." }
Status When
400 invalid input
401 missing or invalid signature — error.auth.signature-required, error.auth.signature-invalid, error.auth.timestamp-invalid, error.auth.nonce-reused, error.api-key.invalid
403 member not active — error.tenant.inactive
404 not found
429 limit reached; see Retry-After

Limits

Each key has a request limit:

Limit Default
API requests per minute (per key) 10

If you need more, write to us from the contact page.

Only correctly signed requests count towards a key's limit. Failed tries (unknown key, bad signature, old timestamp, reused nonce) are counted per IP: 30 in a minute block that IP for 15 minutes (429 with Retry-After).

Tools

  • Verifier: @verylot/verifier recomputes and checks any range of digits, in the browser or on the command line:
verylot-verify --file verylot-proof.json
verylot-verify --api https://api.verylot.online --key vk_7Qm2xR9a --pem verylot.pem --at 2026-10-05T12:00:00Z --digits 6