Catalog/space-schwarzschild-radius

Space

Schwarzschild radius API

Returns the Schwarzschild (event-horizon) radius r_s=2*G*M/c^2 in m/km/AU for a mass given in kg or solar masses. Answers 'Event horizon radius of a black hole?', 'Schwarzschild radius of the Sun?'.

Price$0.04per request
MethodPOST
Route/v1/space/schwarzschild-radius
StatusLive
MIME typeapplication/json
Rate limit120/minute
Cache0s public
spaceastronomyschwarzschildblack-holeevent-horizonrelativityphysicsgeneral-relativity
API URLhttps://x402.hexl.dev/v1/space/schwarzschild-radius
Integration docs
Example request
{
  "solarMasses": 1
}
Example response
{
  "massKg": 1.98892e+30,
  "solarMasses": 1,
  "schwarzschildRadiusM": 2954.007736491,
  "schwarzschildRadiusKm": 2.954007736,
  "schwarzschildRadiusAU": 1.9746e-8,
  "interpretation": "Event horizon radius is 2.954 km."
}
Input schema
{
  "type": "object",
  "properties": {
    "massKg": {
      "type": "number"
    },
    "solarMasses": {
      "type": "number",
      "examples": [
        1
      ]
    }
  }
}
Output schema
{
  "type": "object",
  "additionalProperties": true
}