Gravitation & Weight API
Newtonian gravitation as an API, computed locally and deterministically. The force endpoint applies Newton's law of universal gravitation, F = G·m1·m2/r² — the attractive force between two masses a distance apart, with G = 6.6743×10⁻¹¹ — and solves for whichever of the two masses, the separation or the force you leave out (the Earth and Moon pull on each other with about 2×10²⁰ newtons). The field endpoint gives the gravitational field strength g = G·M/r² at a distance from a mass, or the surface gravity of a built-in body (the Sun, the planets, the Moon and major moons), as a multiple of Earth gravity, and the weight of a test mass placed there. The weight endpoint tells you what something weighs on another world, W = m·g_body — your weight on the Moon, Mars or Jupiter — from a mass or your Earth weight, with the ratio to Earth. Everything is computed locally and deterministically, so it is instant and private. Ideal for physics and astronomy-education tools, space and planetary apps, science museums and games, and engineering. Pure local computation — no key, no third-party service, instant. Live, nothing stored. 3 endpoints. This is gravitational force, field and weight; for orbital speed, period and escape velocity use an orbital-mechanics API.
api.oanor.com/gravitation-api