/v1/meta
Spec
Δοκιμάστε το ζωντανά
10 δωρεάν κλήσεις την ημέρα — χωρίς εγγραφή, χωρίς κλειδί API. Μέσω του gateway του oanor.
Δουλεύει. Πάρε ένα κλειδί API και χρησιμοποίησέ το στο έργο σου.
Λάβετε ένα κλειδί APIΑποσπάσματα κώδικα
curl "https://api.oanor.com/bitrate-api/v1/meta" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/bitrate-api/v1/meta", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/bitrate-api/v1/meta");
curl_setopt($ch, CURLOPT_HTTPHEADER, ["x-oanor-key: oanor_test_..."]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$out = curl_exec($ch);
import requests
requests.get(
"https://api.oanor.com/bitrate-api/v1/meta",
headers={"x-oanor-key": "oanor_test_..."}
)
Παράδειγμα απόκρισης
Πραγματική απόκριση αυτού του endpoint, από τον τελευταίο έλεγχο υγείας.
{
"data": {
"name": "Bitrate & Transfer API",
"notes": "Bitrates are decimal (1 Mbps = 1,000,000 bits/s); 8 bits = 1 byte. Sizes shown in decimal and binary units. Nothing is stored.",
"version": "v1",
"endpoints": [
{
"path": "/v1/file-size",
"params": {
"size": "value",
"bitrate": "value",
"duration": "seconds",
"size_unit": "B|KB|MB|GB|TB|MiB|GiB (give any two)",
"bitrate_unit": "bps|kbps|Mbps|Gbps"
},
"returns": "the missing one of bitrate/duration/size"
},
{
"path": "/v1/transfer-time",
"params": {
"size": "value",
"time": "or a target time in s",
"bandwidth": "speed",
"size_unit": "…",
"bandwidth_unit": "Mbps",
"overhead_percent": "optional"
},
"returns": "the transfer time (or required bandwidth)"
},
{
"path": "/v1/storage",
"params": {
"bitrate": "for recording time",
"capacity": "value",
"item_size": "for item count",
"capacity_unit": "GB"
},
"returns": "recording hours or item count"
},
{
"path": "/v1/meta",
"params": [],
"returns": "this document"
}
],
"description": "Media, file-size and data-transfer maths as an API. The file-size endpoint relates bitrate, duration and file size: give any two and it computes the third — so you can find the size of a video at a given bitrate and length, the bitrate of a file of known size and length, or how long a file will play. The transfer-time endpoint computes how long a file takes to download or upload over a given bandwidth (with optional protocol overhead), or the bandwidth needed to move it in a target time. The storage endpoint works out how many hours of media at a bitrate, or how many items of a given size, fit in a storage capacity. Bitrates use decimal units (kbps, Mbps, Gbps) and sizes are reported in both decimal (KB/MB/GB/TB) and binary (KiB/MiB/GiB/TiB). Everything is computed locally and deterministically, so it is instant and private. Ideal for video and audio encoding, streaming and CDN planning, storage and backup sizing, and download-time estimates. Pure local computation — no key, no third-party service, instant. Live, nothing stored. 4 endpoints. This is bitrate and transfer maths; for plain byte-unit conversion use a bytes API."
},
"meta": {
"timestamp": "2026-06-03T17:42:04.408Z",
"request_id": "0fc07113-02b0-4db0-8275-d4ade42c765b"
},
"status": "ok",
"message": "M
…