{"id":"astronomy/angles","method":"POST","url":"https://astro-agent.dev/v1/astronomy/angles","price_usd":"0.02","tier":"call","title":"Angular separations between bodies","summary":"Pairs of bodies whose ecliptic separation is within a tolerance of 0, 60, 90, 120 or 180 degrees (or any angle you choose), with the deviation; optionally equal and opposite declinations.","description":"For a moment (computed from DE440) or for longitudes you supply: every pair of bodies at a chosen separation angle, with its deviation from the exact angle, the tolerance applied, and whether the bodies are approaching or receding from it. Option 'declination': pairs with equal or opposite declinations.","input_schema":{"type":"object","properties":{"datetime":{"type":"string","description":"Local civil date-time, ISO 8601: '1990-05-15T14:30' (local clock time at the place) or with an explicit offset '1990-05-15T14:30:00+02:00'. Alternative: 'date' + 'time'.","examples":["1990-05-15T14:30"]},"date":{"type":"string","description":"YYYY-MM-DD (use with 'time' instead of 'datetime')."},"time":{"type":"string","description":"HH:MM or HH:MM:SS, 24 h. Omit if unknown (computed at 12:00 with a TIME_UNKNOWN warning)."},"latitude":{"type":"number","minimum":-90,"maximum":90,"description":"Decimal degrees, north positive."},"longitude":{"type":"number","minimum":-180,"maximum":180,"description":"Decimal degrees, east positive."},"timezone":{"type":"string","description":"IANA zone, e.g. 'Asia/Kolkata'. Optional: resolved from the coordinates, with the historical offset (DST, Local Mean Time) of that date."},"time_basis":{"type":"string","enum":["civil","utc","lmt","true_solar"],"default":"civil","description":"What the given clock time is: civil wall-clock (default), UTC, Local Mean Time, or true (apparent) solar time."},"ambiguous_time":{"type":"string","enum":["earlier","later"],"default":"earlier","description":"Which occurrence to use when a local time happens twice (DST fall-back)."},"longitudes":{"type":"object","additionalProperties":true,"description":"Optional {body: degrees} or {body: {longitude, speed, declination?, declination_speed?}}; when given, no ephemeris is used."},"options":{"type":"object","description":"Optional.","additionalProperties":false,"properties":{"bodies":{"description":"'all' or a list from ['sun', 'moon', 'mercury', 'venus', 'mars', 'jupiter', 'saturn', 'uranus', 'neptune', 'pluto', 'lunar_node_true', 'lunar_node_true_descending', 'lunar_node_mean', 'lunar_apogee_mean']. Default: the Sun, the Moon, Mercury..Pluto, the Moon's true ascending node, its descending node and its mean apogee.","oneOf":[{"type":"string","enum":["all"]},{"type":"array","items":{"type":"string","enum":["sun","moon","mercury","venus","mars","jupiter","saturn","uranus","neptune","pluto","lunar_node_true","lunar_node_true_descending","lunar_node_mean","lunar_apogee_mean"]}}]},"angles":{"description":"Separation angles in degrees, 'all' or a list from [0, 30, 45, 60, 72, 90, 120, 135, 144, 150, 180]. Default: [0, 60, 90, 120, 180].","oneOf":[{"type":"string","enum":["all"]},{"type":"array","items":{"type":"integer","enum":[0,30,45,60,72,90,120,135,144,150,180]}}]},"tolerances":{"type":"object","additionalProperties":{"type":"number","minimum":0,"maximum":15},"description":"Tolerance in degrees per angle, e.g. {\"90\": 6}. Defaults: 0 and 180: 8; 90 and 120: 7; 60: 5; the others: 2."},"sun_moon_tolerance_bonus":{"type":"number","minimum":0,"maximum":5,"default":2,"description":"Extra tolerance in degrees when either body is the Sun or the Moon."},"declination":{"type":"boolean","default":false,"description":"Also return the declinations and the pairs with equal or opposite declinations."},"declination_tolerance":{"type":"number","minimum":0,"maximum":3,"default":1,"description":"Tolerance in degrees for equal / opposite declinations."}}}}},"example_request":{"longitudes":{"sun":54.4,"moon":297.4,"saturn":295.2,"venus":12.8}},"example_response":{"endpoint":"astronomy/angles","result":{"separations":[{"point_a":"sun","point_b":"saturn","angle":120,"deviation":0.8,"tolerance":9.0,"exactness_pct":91.1},{"point_a":"moon","point_b":"saturn","angle":0,"deviation":2.2,"tolerance":10.0,"exactness_pct":78.0},{"point_a":"sun","point_b":"moon","angle":120,"deviation":3.0,"tolerance":9.0,"exactness_pct":66.7}],"settings":{"source":"longitudes","separations":{"angles":[0,60,90],"tolerances":{"0":8.0,"180":8.0,"120":7.0,"90":7.0,"60":5.0},"sun_moon_tolerance_bonus":2.0,"rule":"a pair is listed when |separation - angle| <= tolerance (plus the Sun/Moon bonus when either body is the Sun or the Moon); deviation = |separation - angle|"},"longitude_reference":"ecliptic longitude from the true equinox of date (0-360 degrees)"}},"meta":{"engine":"astro-agents/1.10.0","ephemeris":"NASA/JPL DE440 (1800-01-01..2200-01-01)","astronomy_library":"skyfield/1.55","frame":"geocentric apparent positions, true ecliptic and equinox of date (IAU 2006/2000A)","deterministic":true,"llm_used":false,"input_sha256":"eea4ef013ef31c7518632cd0e0998894b31d3818b93112f5a9cb85ca902413f7","result_sha256":"8904d24cee7993e2deb581b8c9ca20dece32f320354113d9147fe27f23af4d6e","reproducibility":"result_sha256 = SHA-256 of the result serialized as JSON with sorted keys, no whitespace, UTF-8, floats rounded to 6 decimals. Same input + same engine version => same hash."},"example_note":"real output of engine 1.10.0; lists shortened to 3 items"},"payment":"x402 or MPP; 1 free call per client on the $0.01-0.02 routes, this one included. POST without payment to receive the 402 challenge.","catalog":"https://astro-agent.dev/v1/catalog"}