Decode CBOR to a JSON value
API · /cbor-api
CBOR API
Encode and decode CBOR (RFC 8949, Concise Binary Object Representation) — the IETF-standard binary data format behind COSE, WebAuthn/FIDO2, the EU Digital COVID Certificate, and many IoT and constrained-device protocols. The encode endpoint turns a JSON value into compact, definite-length CBOR, choosing the smallest head for each integer, string, array and map; the decode endpoint parses CBOR back into a JSON value. It implements the spec across all major types — unsigned and negative integers of every width, byte and text strings (including indefinite-length chunked strings), arrays, maps, tags, the simple values false/true/null, and half-, single- and double-precision floats — and rejects trailing or truncated data rather than silently mangling it. Byte strings and any non-UTF-8 text come back losslessly as {"_bytes_hex":"…"}, tags as {"_tag":{"tag":N,"value":…}}, non-finite floats as {"_float":"NaN|Infinity|-Infinity"}, and other simple values as {"_simple":N}, so encode and decode round-trip exactly. Bytes are exchanged as both hex and base64 so they survive any transport. Everything is computed locally and deterministically, so it is instant and private. Ideal for debugging CBOR, COSE and WebAuthn payloads, bridging JSON and CBOR systems, IoT and smart-card pipelines, and teaching the format. Pure local computation — no key, no third-party service, instant. Live, nothing stored. 3 endpoints. This is CBOR specifically; for MessagePack use the MessagePack API, for BitTorrent's Bencode use the Bencode API, for JSON, YAML, TOML or XML use those format APIs, and for base64, hex, URL or HTML encoding use a general encoding API.
API salute
salutare- Tempo di attività
- 100.00%
- Sondaggi del server · 24 ore su 24
- Latenza media
- 96 ms
- Sondaggi del server · 24 ore su 24
- Abbonati
- 4,335
- attiva
- Chiamate totali
- 39
- ultimi 7 giorni
Prezzi
Scegli un livello: fatturazione mensile, annullamento in qualsiasi momento.
Free
Gratis
- 5,535 chiamate/mese
- 2 richieste/secondo
- Tetto rigido (429 sopra la quota, nessuna eccedenza)
- 5,535 llamadas/mes
- 2 solicitudes/segundo
- Codificar + decodificar
- Sin tarjeta de crédito
Starter
€7.05 /mese
- 15,050 chiamate/mese
- 8 richieste/secondo
- Tetto rigido (429 sopra la quota, nessuna eccedenza)
- 15.05k llamadas/mes
- 8 req/seg
- Especificación completa incl. etiquetas/flotantes
- Soporte por correo electrónico
Pro
€26.95 /mese
- 201,500 chiamate/mese
- 20 richieste/secondo
- Tetto rigido (429 sopra la quota, nessuna eccedenza)
- 201.5k calls/month
- 20 req/sec
- COSE / WebAuthn / IoT pipelines
- Priority support
Mega
€64.95 /mese
- 1,050,000 chiamate/mese
- 50 richieste/secondo
- Tetto rigido (429 sopra la quota, nessuna eccedenza)
- 1.05M llamadas/mes
- 50 req/seg
- Escala de plataforma
- SLA dedicado
Costruito da
Correlato APIs
Altro APIs con tag sovrapposti.
MessagePack API
Codifica e decodifica MessagePack — il formato di serializzazione binaria compatto ("è come JSON, ma veloce e piccolo") utilizzato da Redis, Fluentd, molti sistemi RPC e protocolli IoT. L'endpoint di codifica trasforma un valore JSON in byte MessagePack, scegliendo automaticamente la rappresentazione più piccola per ogni intero, stringa, array e mappa; l'endpoint di decodifica analizza MessagePack restituendo un valore JSON. Implementa l'intera specifica — nil, booleani, ogni larghezza di intero fissa e variabile, float32 e float64, str e bin, array e mappe, e la famiglia ext — e rifiuta dati troncati o finali invece di modificarli silenziosamente. I valori binari (bin) e qualsiasi stringa non UTF-8 vengono restituiti senza perdita come oggetto {"_bytes_hex":"…"}, e i valori ext come {"_ext":{"type":N,"hex":"…"}}, quindi codifica e decodifica sono esatti. I byte vengono scambiati sia in esadecimale che in base64 per sopravvivere a qualsiasi trasporto. Tutto viene calcolato localmente e deterministicamente, quindi è istantaneo e privato. Ideale per il debug di payload MessagePack, per collegare sistemi JSON e msgpack, per strumenti RPC e cache, pipeline IoT e per insegnare il formato. Puro calcolo locale — nessuna chiave, nessun servizio di terze parti, istantaneo. Live, nulla viene memorizzato. 3 endpoint. Questo è specificamente MessagePack; per JSON, YAML, TOML o XML usa quelle API di formato, per Bencode di BitTorrent usa l'API Bencode, e per codifica base64, esadecimale, URL o HTML usa un'API di codifica generale.
api.oanor.com/msgpack-api
Bencode API
Codifica e decodifica Bencode (BEP 3) — il formato di serializzazione che BitTorrent usa per i file .torrent metainfo e le risposte dei tracker. L'endpoint encode trasforma un valore JSON in Bencode: gli oggetti diventano dizionari con le loro chiavi ordinate in ordine di byte grezzo esattamente come richiesto dalla specifica, gli array diventano liste, i numeri interi diventano interi e le stringhe diventano stringhe di byte con prefisso di lunghezza. L'endpoint decode analizza Bencode in un valore JSON e applica rigorosamente la specifica — nessuno zero iniziale negli interi, nessuno zero negativo, le chiavi del dizionario devono essere ordinate e uniche, e nessun dato finale è tollerato — quindi input malformati vengono rifiutati anziché modificati silenziosamente. Le stringhe di byte binarie che non sono UTF-8 valide sono rappresentate senza perdita come un oggetto {"_bytes_hex":"…"}, quindi encode e decode fanno un round-trip esatto anche per il campo binario "pieces" di un torrent reale. Decode accetta i dati sia come testo che, per payload genuinamente binari, come esadecimale; encode restituisce sia il testo Bencode (quando stampabile) che i suoi byte esadecimali. Tutto è calcolato localmente e deterministicamente, quindi è istantaneo e privato. Ideale per creare e analizzare file .torrent, strumenti per tracker, client BitTorrent e messaggi DHT, e per insegnare come funziona il formato. Pura computazione locale — nessuna chiave, nessun servizio di terze parti, istantaneo. Live, nulla viene memorizzato. 3 endpoint. Questo è specificamente il Bencode di BitTorrent; per codifica base64, esadecimale, URL o HTML usa un'API di codifica generale, e per JSON, YAML, TOML o XML usa quelle API di formato.
api.oanor.com/bencode-api
Elevator Traction API
Traction-elevator engineering maths as an API, computed locally and deterministically — the counterweight, hoist-motor and rope-traction numbers a lift engineer or building-services designer sizes a passenger elevator with. The counterweight endpoint gives the balancing mass = the empty car plus a fraction of the rated load (the overbalance, typically 40–50 %, 45 % common), so a 1,000 kg car rated for 1,000 kg uses a 1,450 kg counterweight — the car and weight balance near half load and the machine is sized for the worst-case imbalance, not the full load. The motor-power endpoint uses that: because the counterweight cancels most of the car, the motor only lifts the out-of-balance load = rated load × (1 − overbalance), so power = that × g × speed ÷ efficiency (~65–75 % geared) — a 1,000 kg lift at 1.5 m/s needs only about 11–12 kW, half what a counterweight-less hoist would draw. The traction-ratio endpoint checks the friction grip: a traction elevator moves the ropes by friction over the sheave, so the available traction (e^(μθ), the capstan equation) must beat the T1/T2 tension ratio at both worst cases — a full car at the bottom and an empty car at the top — and it returns the governing ratio. Everything is computed locally and deterministically, so it is instant and private. Ideal for lift-design and building-services tools, vertical-transport and MEP utilities, and engineering calculators. Pure local computation — no key, no third-party service, instant. Sizing estimates — follow the lift code and maker data. 3 compute endpoints. For block-and-tackle use a pulley API; for capstan friction a capstan API.
api.oanor.com/elevator-api
Railway Tractive Effort API
Railway train-performance maths as an API, computed locally and deterministically — the tractive-effort, resistance and adhesion numbers a railway engineer, train planner or rail-sim developer rates motive power with. The tractive-effort endpoint gives the pulling force a locomotive develops = 375 × horsepower × efficiency ÷ speed (mph), the classic hyperbolic curve where a constant-power loco pulls hardest at low speed and tapers as it accelerates — 4,000 hp at 25 mph and 82 % efficiency is about 49,200 lbf at the rail. The resistance endpoint gives the forces a train fights: grade resistance ≈ 20 lb per ton per 1 % of grade (the weight component along the slope, the dominant force on a hill — a 5,000-ton train on a 1 % grade fights 100,000 lbf) plus curve resistance ≈ 0.8 lb per ton per degree of curve from flange friction. The adhesion endpoint gives the hard ceiling: however much power a loco has, it can only pull as hard as the wheels grip — maximum starting tractive effort = the adhesion coefficient (≈ 0.25 dry, more with sand) × the weight on the driving wheels, so 200 tons on the drivers is about 100,000 lbf before slip. Everything is computed locally and deterministically, so it is instant and private. Ideal for rail-operations and motive-power planning tools, train-simulator and railfan apps, and transport-engineering utilities. Pure local computation — no key, no third-party service, instant. Excludes the speed-dependent Davis rolling/air resistance. 3 compute endpoints. For highway curve geometry use a horizontal-curve API.
api.oanor.com/railway-api
Domande frequenti
Risposte rapide su prezzi, quote e integrazione.
Come ottengo una chiave API per CBOR API?
Qual è il limite di velocità di CBOR API?
Quanto costa CBOR API?
Posso cancellare l'abbonamento in qualsiasi momento?
CBOR API è conforme al GDPR?
Scegli un endpoint dall'elenco a sinistra per visualizzarne i dettagli e provarlo.
Frammenti di codice
Iscriviti per ottenere una chiave API, quindi chiama qualsiasi percorso sotto il tuo slug.
curl https://api.oanor.com/cbor-api/SOME_PATH \
-H "x-oanor-key: oanor_test_..."
const res = await fetch("https://api.oanor.com/cbor-api/SOME_PATH", {
headers: { "x-oanor-key": "oanor_test_..." }
});
const data = await res.json();
$ch = curl_init("https://api.oanor.com/cbor-api/SOME_PATH");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_HTTPHEADER, ["x-oanor-key: oanor_test_..."]);
$response = curl_exec($ch);
import requests
r = requests.get(
"https://api.oanor.com/cbor-api/SOME_PATH",
headers={"x-oanor-key": "oanor_test_..."},
)
print(r.json())
Valutazioni
Accedi per votare.
Nessuna recensione ancora.
Discussione
Fai domande, condividi consigli, ricevi risposte dal provider e dagli altri sviluppatori. Pubblico — chiunque può leggere.
Accedi per scrivere o rispondere.
AccediNuova discussione
·
-
Risposta del provider
🔒 Discussione bloccata — non si può più rispondere.
-
·
- Nessuna discussione — inizia tu.
Supporto
Supporto privato 1:1 con il provider — fatturazione, integrazione, account. Solo tu e il team del provider vedete questi thread.
Accedi per aprire un ticket di supporto.
AccediApri nuovo ticket
Descrivi cosa ti serve. Il team del provider riceve un'email e risponde sulla pagina del ticket.
-
·
Urgente - Nessun ticket per questa API.