Engineering
Photon energy E=hf API
Computes photon energy E = h·f = h·c/λ from frequency or wavelength, in both joules and electron-volts, with the complementary frequency/wavelength. Answers 'How much energy does a 500 nm photon carry?', 'What is the eV of this light?'.
Price$0.02per request
MethodPOST
Route/v1/engineering/photon-energy
StatusLive
MIME typeapplication/json
Rate limit120/minute
Cache0s public
wavesphotonenergyplanckelectron-voltquantumlightphysics
API URL
Integration docshttps://x402.hexl.dev/v1/engineering/photon-energyExample request
{
"wavelengthNm": 500
}Example response
{
"energyJoules": 3.9728917142978563e-19,
"energyEv": 2.479684,
"frequencyHz": 599584915999999.9,
"wavelengthNm": 500,
"interpretation": "Each photon carries 2.48 eV (3.973e-19 J)."
}Input schema
{
"type": "object",
"properties": {
"frequencyHz": {
"type": "number",
"description": "Frequency (Hz)",
"examples": [
599000000000000
]
},
"wavelengthNm": {
"type": "number",
"description": "Wavelength (nm), alternative to frequency",
"examples": [
500
]
}
},
"description": "Provide exactly one of frequencyHz or wavelengthNm."
}Output schema
{
"type": "object",
"additionalProperties": true
}