/v1/interval
Interval between two notes
Provalo dal vivo
10 chiamate gratuite al giorno — senza registrazione, senza chiave API. Passa dal gateway oanor.
Funziona. Prendi una chiave API e usala nel tuo progetto.
Ottieni una chiave APIFrammenti di codice
curl "https://api.oanor.com/musictheory-api/v1/interval" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/musictheory-api/v1/interval", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/musictheory-api/v1/interval");
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/musictheory-api/v1/interval",
headers={"x-oanor-key": "oanor_test_..."}
)
Risposta di esempio
Una risposta reale di questo endpoint, acquisita dall'ultimo health check.
{
"data": {
"note": "Ascending interval from 'from' to 'to' within an octave (0–12 semitones). C to G is 7 semitones, a perfect 5th.",
"inputs": {
"to": "G",
"from": "C"
},
"interval": "perfect 5th",
"semitones": 7
},
"meta": {
"timestamp": "2026-06-05T19:50:11.931Z",
"request_id": "af59208e-ad4a-4a09-8750-4b9b76321b90"
},
"status": "ok",
"message": "Interval",
"success": true
}