{"uid":"cap_6pAmafXNdwLS6XKDkqXy_","slug":"wavelength-to-energy-converter-x402-forgemesh-io-9d72a8a3","name":"Wavelength-to-Energy Converter (x402.forgemesh.io)","description":"Converts electromagnetic wavelength in nanometers to photon energy in joules and electron-volts, and back, using exact physical constants for the speed of light and Planck's constant. For spectroscopy analysis, optics design, and astronomy agents working with light-frequency data.","url":"https://x402.forgemesh.io/wavelength-to-energy","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"frequency_hz":{"type":"string"},"wavelength_nm":{"type":"string"}}},"responseSchema":{"type":"json","example":{"frequency_hz":599584916000000,"photon_energy_ev":2.479685}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.002","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.002/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_81xDRz_gFHK-xJ7xcS4Bj","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Converts electromagnetic wavelength (nm) or frequency (Hz) to photon energy in joules and electron-volts using exact physical constants","exampleAgentPrompt":"What's the photon energy in joules and electron-volts for a 532 nm green laser wavelength?","exampleUseCases":null,"resultDescription":"Returns the photon energy corresponding to the given wavelength or frequency, expressed in both joules and electron-volts, computed using exact values of Planck's constant and the speed of light.","failureModes":["Missing both wavelength_nm and frequency_hz — endpoint requires at least one input","Invalid non-numeric string for wavelength or frequency — returns parse error","Wavelength of zero or negative value — physically undefined, likely returns error","Extremely large or small values outside practical physical range may produce unexpected results","Payment failure via x402 protocol — call rejected before computation"],"whenToPreferThis":"Choose this endpoint when an agent needs a precise, physics-constant-based conversion between electromagnetic wavelength or frequency and photon energy in SI units (joules) and electron-volts, particularly for spectroscopy analysis, laser optics design, or astronomy workflows dealing with light-frequency data. Prefer over a general math API because this uses exact physical constants and returns both joule and eV representations in one call.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T07:03:54.124Z","isFirstParty":false}