/v1/interval
Interval between two notes
Pruébalo en vivo
10 llamadas gratis al día — sin registro, sin clave API. Pasa por el gateway de oanor.
Funciona. Consigue una clave API y úsala en tu proyecto.
Obtener una clave APIFragmentos de código
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_..."}
)
Respuesta de ejemplo
Una respuesta real de este endpoint, capturada en la última comprobación de estado.
{
"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
}