Gravitational field strength
API · /gravitation-api
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 health
healthy- Uptime
- 100.00%
- Server probes · 24h
- Avg latency
- 87 ms
- Server probes · 24h
- Subscribers
- 4,813
- active
- Total calls
- 32
- last 7 days
Pricing
Pick a tier — billed monthly, cancel anytime.
Free
Free
- 3,000 calls / month
- 2 requests / second
- Hard cap (429 above quota, no overage)
- Newton's law of universal gravitation F=G*m1*m2/r^2
- Deterministic, instant local compute
- SI units (kg, m, newtons)
- 3,000 calls/month
Starter
€5.00 /month
- 40,000 calls / month
- 5 requests / second
- Hard cap (429 above quota, no overage)
- Force, field-strength and surface-gravity endpoints
- Two-body and point-mass calculations
- Configurable G precision
- 40,000 calls/month
Pro
€15.00 /month
- 250,000 calls / month
- 15 requests / second
- Hard cap (429 above quota, no overage)
- Batch multi-pair force computation
- Planetary weight conversions across bodies
- Orbital-period & escape-velocity helpers
- 250,000 calls/month
Mega
€49.00 /month
- 1,535,000 calls / month
- 40 requests / second
- Hard cap (429 above quota, no overage)
- High-throughput classroom & app workloads
- Full astronomy preset body catalog
- Priority compute lane
- 1,500,000 calls/month
Built by
Related APIs
Other APIs with overlapping tags.
Unit Converter API
Fast, deterministic unit conversion across 10 categories — length, mass, temperature, area, volume, speed, time, digital storage, pressure and energy. Convert any value between compatible units and list the full unit catalog per category. Fully local compute (no third-party upstream), so responses are instant and always available. Ideal for calculators, e-commerce, logistics, engineering tools, dashboards and chatbots.
api.oanor.com/unit-api
Stellar Parallax API
Stellar-parallax and astrometry maths as an API, computed locally and deterministically. The distance endpoint turns a measured trigonometric parallax angle into a distance using d(pc) = 1/p(arcsec), accepting the parallax in arcseconds or milliarcseconds and returning the distance in parsecs, light-years and astronomical units — a parallax of one arcsecond is one parsec (≈3.2616 light-years) by definition, and Proxima Centauri’s 0.7687-arcsecond parallax gives about 1.30 pc, or 4.24 light-years. The parallax endpoint inverts it, p(arcsec) = 1/d(pc), giving the tiny annual back-and-forth angle a star traces against the background as Earth orbits the Sun. The proper-motion endpoint computes a star’s tangential (transverse) velocity across the sky from its proper motion and distance, v_t = 4.74047·μ(arcsec/yr)·d(pc) km/s — Barnard’s Star, with a proper motion of about 10.39 arcsec/yr at 1.83 pc, races across the sky at roughly 90 km/s. Everything is computed locally and deterministically, so it is instant and private. Ideal for astronomy, astrophysics, planetarium, education and science-communication app developers, star-distance and stellar-kinematics tools, and Gaia-catalogue post-processing. Pure local computation — no key, no third-party service, instant. Live, nothing stored. 3 endpoints. This is geometric distance and kinematics; for a star’s apparent and absolute brightness use a star-magnitude API.
api.oanor.com/parallax-api
Light Travel Time API
Light-travel-time astronomy maths as an API, computed locally and deterministically. The travel-time endpoint computes how long light takes to cross a distance, t = d/c with c = 299,792,458 m/s exactly, accepting the distance in metres, kilometres, miles, astronomical units, light-years, parsecs or light-seconds/minutes and returning the time in seconds, minutes, hours, days and years — light from the Sun reaches Earth in about 8.3 minutes and the nearest star is about 4.2 light-years away. The distance endpoint inverts the relation, d = c·t, to give how far light travels in a time, returning the distance in metres, kilometres, astronomical units, light-years and parsecs — one light-year is about 9.461×10¹⁵ m. The round-trip endpoint computes the one-way and round-trip communication delay to a target, d/c and 2·d/c, the light-speed latency that makes distant spacecraft control so slow and Mars rovers largely autonomous. Distance units include light-second and light-minute and time units run from seconds to years. Everything is computed locally and deterministically, so it is instant and private. Ideal for astronomy, space-mission, education, science-communication and simulation app developers, communication-delay and cosmic-distance tools, and physics teaching. Pure local computation — no key, no third-party service, instant. Live, nothing stored. 3 endpoints. This is light travel time; for an object's angular size use an angular-size API and for sidereal time a sidereal API.
api.oanor.com/lighttime-api
Angular Size API
Angular-size astronomy and optics maths as an API, computed locally and deterministically. The angular-size endpoint computes the angular diameter an object subtends, δ = 2·arctan(d/(2D)), from its physical size and its distance, returning the angle in radians, degrees, arcminutes and arcseconds, along with the small-angle approximation δ ≈ d/D — the Sun and Moon are each about half a degree (31 arcminutes) across. The distance endpoint inverts the relation, D = d/(2·tan(δ/2)), to give an object's distance from its known true size and its measured angular size, the basis of the standard-ruler distance method. The object-size endpoint computes an object's physical diameter, d = 2·D·tan(δ/2), from its distance and angular size. Size and distance use any one consistent unit, and angles may be given in radians, degrees, arcminutes or arcseconds. Everything is computed locally and deterministically, so it is instant and private. Ideal for astronomy, telescope, astrophotography, surveying and optics app developers, field-of-view and rangefinding tools, and physics education. Pure local computation — no key, no third-party service, instant. Live, nothing stored. 3 endpoints. This is angular size; for stellar magnitude and parallax distance use a star-magnitude API and for sidereal time a sidereal API.
api.oanor.com/angularsize-api
Frequently asked questions
Quick answers about pricing, quotas, and integration.
How do I get an API key for Gravitation & Weight API?
What's the rate limit for Gravitation & Weight API?
How much does Gravitation & Weight API cost?
Can I cancel my subscription anytime?
Is Gravitation & Weight API GDPR-compliant?
Pick an endpoint from the list on the left to see its details and try it.
Code snippets
Sign up to get an API key, then call any path under your slug.
curl https://api.oanor.com/gravitation-api/SOME_PATH \
-H "x-oanor-key: oanor_test_..."
const res = await fetch("https://api.oanor.com/gravitation-api/SOME_PATH", {
headers: { "x-oanor-key": "oanor_test_..." }
});
const data = await res.json();
$ch = curl_init("https://api.oanor.com/gravitation-api/SOME_PATH");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_HTTPHEADER, ["x-oanor-key: oanor_test_..."]);
$response = curl_exec($ch);
import requests
r = requests.get(
"https://api.oanor.com/gravitation-api/SOME_PATH",
headers={"x-oanor-key": "oanor_test_..."},
)
print(r.json())
Ratings
Sign in to rate.
No reviews yet.
Discussion
Ask questions, share usage tips, get answers from the provider and other developers. Public — anyone can read.
Sign in to start a thread or reply.
Sign inNew thread
·
-
Provider answer
🔒 This thread is locked — no new replies.
-
·
- No threads yet — start the discussion.
Support
Private 1:1 support with the provider — billing questions, integration issues, account problems. Only you and the provider team can see these threads.
Sign in to open a support ticket.
Sign inOpen new ticket
Describe what you need help with. The provider team gets an email and replies on the ticket page.
-
·
Urgent - No tickets yet for this API.