{"openapi":"3.1.0","info":{"title":"Electrochemistry Nernst API","version":"1.0.0","description":"Electrochemistry maths as an API, computed locally and deterministically. The nernst endpoint applies the Nernst equation, E = E° − (R·T/nF)·ln Q, to give the actual electrode or cell potential under non-standard conditions from the standard potential E°, the number of electrons transferred n, the reaction quotient Q and the temperature — at 25 °C this reduces to E = E° − (0.05916/n)·log10 Q, and a larger Q (more product) lowers the potential. The cell-potential endpoint computes a galvanic cell's standard EMF from the cathode and anode standard reduction potentials, E°cell = E°cathode − E°anode, together with the standard Gibbs free energy ΔG° = −nF·E°cell and whether the reaction is spontaneous. The equilibrium endpoint computes the equilibrium constant of a redox reaction, K = exp(nF·E°cell / RT), and the corresponding ΔG°, from the standard cell potential and the electrons transferred. Potentials are in volts, energies in kJ/mol, the Faraday constant is 96485 C/mol and the gas constant 8.314 J/mol·K. Everything is computed locally and deterministically, so it is instant and private. Ideal for chemistry-education, battery, corrosion, electroplating and electroanalytical app developers, galvanic-cell and redox tools, and STEM teaching. Pure local computation — no key, no third-party service, instant. Live, nothing stored. 3 endpoints. This is electrochemistry; for acid-base pH use a pH API and for reaction-rate kinetics an Arrhenius API.","contact":{"name":"PremiumApi","url":"https://www.oanor.com/by/premiumapi"}},"servers":[{"url":"https://api.oanor.com/nernst-api","description":"oanor gateway"}],"tags":[{"name":"Electrochemistry"},{"name":"Meta"}],"components":{"securitySchemes":{"oanorKey":{"type":"apiKey","in":"header","name":"x-oanor-key","description":"Get your key at https://www.oanor.com/developer/keys"}}},"security":[{"oanorKey":[]}],"paths":{"/v1/cell-potential":{"get":{"operationId":"get_v1_cell_potential","tags":["Electrochemistry"],"summary":"Cell EMF","description":"","parameters":[{"name":"cathode_potential","in":"query","required":true,"description":"Cathode E°red (V)","schema":{"type":"string"},"example":"0.34"},{"name":"anode_potential","in":"query","required":true,"description":"Anode E°red (V)","schema":{"type":"string"},"example":"-0.76"},{"name":"electrons","in":"query","required":true,"description":"Electrons transferred n","schema":{"type":"string"},"example":"2"}],"security":[{"oanorKey":[]}],"responses":{"200":{"description":"OK","content":{"application/json":{"example":{"data":{"note":"E°cell = E°cathode − E°anode (both standard reduction potentials). ΔG° = −nF·E°cell; a positive cell potential (negative ΔG°) means the reaction is spontaneous (galvanic).","inputs":{"electrons":2,"anode_potential_v":-0.76,"cathode_potential_v":0.34},"spontaneous":true,"cell_potential_v":1.1,"delta_g_standard_j_mol":-212267.731,"delta_g_standard_kj_mol":-212.267731},"meta":{"timestamp":"2026-06-05T11:30:39.469Z","request_id":"ca88eee8-dc7f-4a12-9bcf-c7bfd9a7bec4"},"status":"ok","message":"Cell potential","success":true}}}},"401":{"description":"Missing or invalid x-oanor-key header"},"402":{"description":"Active subscription required"},"429":{"description":"Rate-limit or monthly quota reached"},"502":{"description":"Upstream did not respond"}}}},"/v1/equilibrium":{"get":{"operationId":"get_v1_equilibrium","tags":["Electrochemistry"],"summary":"Equilibrium constant","description":"","parameters":[{"name":"cell_potential","in":"query","required":true,"description":"Standard cell potential E°cell (V)","schema":{"type":"string"},"example":"1.10"},{"name":"electrons","in":"query","required":true,"description":"Electrons transferred n","schema":{"type":"string"},"example":"2"},{"name":"temperature","in":"query","required":false,"description":"Temperature (K)","schema":{"type":"string"},"example":"298.15"}],"security":[{"oanorKey":[]}],"responses":{"200":{"description":"OK","content":{"application/json":{"example":{"data":{"ln_k":85.627838,"note":"K = exp(nF·E°cell / RT); ΔG° = −RT·ln K = −nF·E°cell. A large positive E°cell gives a huge K (products favoured).","inputs":{"electrons":2,"temperature_k":298.15,"cell_potential_v":1.1},"log10_k":37.187697,"equilibrium_constant":1.5406269586154516e+37,"delta_g_standard_kj_mol":-212.267731},"meta":{"timestamp":"2026-06-05T11:30:39.561Z","request_id":"69ee338f-ecd4-463c-b7ef-b4279088fe90"},"status":"ok","message":"Equilibrium constant","success":true}}}},"401":{"description":"Missing or invalid x-oanor-key header"},"402":{"description":"Active subscription required"},"429":{"description":"Rate-limit or monthly quota reached"},"502":{"description":"Upstream did not respond"}}}},"/v1/nernst":{"get":{"operationId":"get_v1_nernst","tags":["Electrochemistry"],"summary":"Nernst equation","description":"","parameters":[{"name":"standard_potential","in":"query","required":true,"description":"Standard potential E° (V)","schema":{"type":"string"},"example":"1.10"},{"name":"electrons","in":"query","required":true,"description":"Electrons transferred n","schema":{"type":"string"},"example":"2"},{"name":"reaction_quotient","in":"query","required":true,"description":"Reaction quotient Q","schema":{"type":"string"},"example":"0.001"},{"name":"temperature","in":"query","required":false,"description":"Temperature (K)","schema":{"type":"string"},"example":"298.15"}],"security":[{"oanorKey":[]}],"responses":{"200":{"description":"OK","content":{"application/json":{"example":{"data":{"note":"Nernst: E = E° − (R·T/nF)·ln Q. At 25 °C this is E = E° − (0.05916/n)·log10 Q. A larger Q (more products) lowers the cell potential.","inputs":{"electrons":2,"temperature_k":298.15,"reaction_quotient":0.001,"standard_potential_v":1.1},"log10_quotient":-3,"nernst_slope_v":0.02957967,"cell_potential_v":1.188739},"meta":{"timestamp":"2026-06-05T11:30:39.666Z","request_id":"9e798971-f814-49fd-895b-2598181c0b39"},"status":"ok","message":"Nernst equation","success":true}}}},"401":{"description":"Missing or invalid x-oanor-key header"},"402":{"description":"Active subscription required"},"429":{"description":"Rate-limit or monthly quota reached"},"502":{"description":"Upstream did not respond"}}}},"/v1/meta":{"get":{"operationId":"get_v1_meta","tags":["Meta"],"summary":"Spec","description":"","parameters":[],"security":[{"oanorKey":[]}],"responses":{"200":{"description":"OK","content":{"application/json":{"example":{"data":{"notes":"Potentials in volts (standard reduction potentials), electrons n a positive integer, temperature in K (default 298.15). Q and K are dimensionless.","service":"nernst-api","formulae":{"nernst":"E = E° − (R·T/nF)·ln Q","cell_emf":"E°cell = E°cathode − E°anode","equilibrium":"K = exp(nF·E°cell / RT)","free_energy":"ΔG° = −nF·E°cell"},"constants":{"faraday_c_mol":96485.33212,"gas_constant_j_mol_k":8.314462618},"endpoints":{"GET /v1/meta":"This document.","GET /v1/nernst":"Cell potential under non-standard conditions from E°, electrons and reaction quotient Q.","GET /v1/equilibrium":"Equilibrium constant K and ΔG° from the standard cell potential.","GET /v1/cell-potential":"Standard cell EMF from cathode/anode reduction potentials, with ΔG° and spontaneity."},"description":"Electrochemistry calculator: the Nernst equation for non-standard cell potential, galvanic cell EMF from electrode potentials with Gibbs free energy and spontaneity, and the equilibrium constant of a redox reaction."},"meta":{"timestamp":"2026-06-05T11:30:39.752Z","request_id":"de565556-20a8-43f2-b423-d4d593f46e71"},"status":"ok","message":"Meta","success":true}}}},"401":{"description":"Missing or invalid x-oanor-key header"},"402":{"description":"Active subscription required"},"429":{"description":"Rate-limit or monthly quota reached"},"502":{"description":"Upstream did not respond"}}}}},"x-oanor-pricing":[{"slug":"free","name":"Free","price_cents_month":0,"monthly_call_quota":3000,"rps_limit":2,"hard_limit":true},{"slug":"starter","name":"Starter","price_cents_month":500,"monthly_call_quota":35000,"rps_limit":6,"hard_limit":true},{"slug":"pro","name":"Pro","price_cents_month":1500,"monthly_call_quota":220000,"rps_limit":15,"hard_limit":true},{"slug":"mega","name":"Mega","price_cents_month":4500,"monthly_call_quota":1300000,"rps_limit":40,"hard_limit":true}],"x-oanor-marketplace-url":"https://www.oanor.com/api/nernst-api"}