api-docs icon indicating copy to clipboard operation
api-docs copied to clipboard

HORIZONS api response in JSON format looks weird

Open g0gan opened this issue 2 years ago • 4 comments

When i'm trying to use this GET request:

https://ssd.jpl.nasa.gov/api/horizons.api?format=json&COMMAND='499'&OBJ_DATA='YES'&MAKE_EPHEM='YES'&EPHEM_TYPE='OBSERVER'&CENTER='500@399'&START_TIME='2006-01-01'&STOP_TIME='2006-01-20'&STEP_SIZE='1%20d'&QUANTITIES='1,9,20,23,24,29' resonse looks weird: Postman_2IdRIfKF2x

Please, could you fix this issue?

g0gan avatar Aug 03 '23 17:08 g0gan

it looks like JSON response is... fake: the JSON object actually just contains the plain text output... It's not a bug, it's a missing feature: they should split the text output into "object data" and "ephemeris" and put them into separate objects, and possibly the lines of the output should be stored as an array of arrays rather than a plain list.

jumpjack avatar Aug 26 '23 10:08 jumpjack

Horizons has not created an updated schema / data model for this information, or a converter to take the old data and interpret it correctly.

TJKoury avatar Jan 18 '24 19:01 TJKoury