/v1/energy
Photon energy
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/wavelength-api/v1/energy" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/wavelength-api/v1/energy", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/wavelength-api/v1/energy");
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/wavelength-api/v1/energy",
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": "Photon energy E = h·f = h·c/λ. 1 eV = 1.602176634e-19 J. Wavelength defaults to nm here.",
"input": [],
"frequency_hz": 599585000000000,
"photon_energy_j": 3.97289e-19,
"photon_energy_ev": 2.47968,
"photon_energy_kev": 0.00247968
},
"meta": {
"timestamp": "2026-06-04T01:59:16.838Z",
"request_id": "cb4b5713-3da2-46d7-998b-b28c88dbd13e"
},
"status": "ok",
"message": "Photon energy",
"success": true
}