{"openapi":"3.1.0","info":{"title":"Astronomy API (BYOK) API","version":"0.1.0","description":"Astronomy API (BYOK) lets an AI assistant read your own Astronomy API data through the Astronomy API API with a key you supply (application ID). Read-only: 5 tools (get_bodies_positions, get_body_position, get_body_events, search_sky_objects, search_sky_objects_by_position). The BYOK key travels with each request, is used for that one call only and is never stored, logged or cached; it is only...\n\nEvery operation is read-only or compute-only. The same tools are available over MCP (streamable HTTP) at https://byok-astronomyapi.connectorbay.com/mcp.","contact":{"name":"Unify Dynamics LLC","email":"agent@connectorbay.com","url":"https://connectorbay.com/byok-astronomyapi/docs"},"termsOfService":"https://connectorbay.com/byok-astronomyapi/terms"},"servers":[{"url":"https://byok-astronomyapi.connectorbay.com"}],"externalDocs":{"url":"https://connectorbay.com/byok-astronomyapi/docs"},"security":[{"upstreamKey":[]}],"components":{"securitySchemes":{"bearer":{"type":"http","scheme":"bearer","description":"Optional. A Pro API key raises rate limits; no credentials are required."},"upstreamKey":{"type":"apiKey","in":"header","name":"X-Upstream-Key","description":"Your own key for the service this connector wraps (bring your own key). Used for that one call only; never stored, logged or cached."}},"schemas":{"Error":{"type":"object","properties":{"ok":{"const":false},"error":{"type":"object"}}}}},"paths":{"/v1/tools/get_bodies_positions":{"post":{"operationId":"get_bodies_positions","summary":"Get the horizontal and equatorial positions, distance, constellation and magnitude of the sun, moon and planets for an o","description":"Get the horizontal and equatorial positions, distance, constellation and magnitude of the sun, moon and planets for an observer location over a date range. Use for \"Where are the planets in the sky over Atlanta on the evening of 2026-12-20\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"latitude":{"description":"Observer latitude in decimal degrees (-90 to 90).","maximum":90,"minimum":-90,"title":"Latitude","type":"number"},"longitude":{"description":"Observer longitude in decimal degrees (-180 to 180, west is negative).","maximum":180,"minimum":-180,"title":"Longitude","type":"number"},"elevation":{"description":"Observer elevation above sea level in meters.","maximum":9000,"minimum":-500,"title":"Elevation","type":"number"},"from_date":{"description":"First date, YYYY-MM-DD. The range from_date to to_date may span at most 366 days.","maxLength":10,"title":"From Date","type":"string"},"to_date":{"description":"Last date, YYYY-MM-DD (at most 366 days after from_date).","maxLength":10,"title":"To Date","type":"string"},"time":{"description":"Observer's local time of day, HH:MM:SS, used for each date.","maxLength":8,"title":"Time","type":"string"},"output":{"anyOf":[{"enum":["rows","table"],"type":"string"},{"type":"null"}],"default":"rows","description":"Result layout: rows (one entry per body) or table (grid by date).","title":"Output"}},"required":["latitude","longitude","elevation","from_date","to_date","time"],"title":"get_bodies_positionsArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}},"/v1/tools/get_body_position":{"post":{"operationId":"get_body_position","summary":"Get the position of one body (sun, moon or a planet) for an observer location over a date range, with altitude, azimuth,","description":"Get the position of one body (sun, moon or a planet) for an observer location over a date range, with altitude, azimuth, right ascension, declination and distance. Use for \"Where is Jupiter in the sky over Atlanta tonight\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"body":{"description":"Body id: sun, moon, mercury, venus, earth, mars, jupiter, saturn, uranus, neptune or pluto.","enum":["sun","moon","mercury","venus","earth","mars","jupiter","saturn","uranus","neptune","pluto"],"title":"Body","type":"string"},"latitude":{"description":"Observer latitude in decimal degrees (-90 to 90).","maximum":90,"minimum":-90,"title":"Latitude","type":"number"},"longitude":{"description":"Observer longitude in decimal degrees (-180 to 180, west is negative).","maximum":180,"minimum":-180,"title":"Longitude","type":"number"},"elevation":{"description":"Observer elevation above sea level in meters.","maximum":9000,"minimum":-500,"title":"Elevation","type":"number"},"from_date":{"description":"First date, YYYY-MM-DD. The range from_date to to_date may span at most 366 days.","maxLength":10,"title":"From Date","type":"string"},"to_date":{"description":"Last date, YYYY-MM-DD (at most 366 days after from_date).","maxLength":10,"title":"To Date","type":"string"},"time":{"description":"Observer's local time of day, HH:MM:SS, used for each date.","maxLength":8,"title":"Time","type":"string"},"output":{"anyOf":[{"enum":["rows","table"],"type":"string"},{"type":"null"}],"default":"rows","description":"Result layout: rows (one entry per body) or table (grid by date).","title":"Output"}},"required":["body","latitude","longitude","elevation","from_date","to_date","time"],"title":"get_body_positionArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}},"/v1/tools/get_body_events":{"post":{"operationId":"get_body_events","summary":"Get celestial events for the sun or the moon (for example eclipses) as seen from an observer location over a date range.","description":"Get celestial events for the sun or the moon (for example eclipses) as seen from an observer location over a date range. Only sun and moon are supported. Use for \"Are there any eclipses visible from Atlanta in 2026\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"body":{"description":"Body id: sun or moon.","enum":["sun","moon"],"title":"Body","type":"string"},"latitude":{"description":"Observer latitude in decimal degrees (-90 to 90).","maximum":90,"minimum":-90,"title":"Latitude","type":"number"},"longitude":{"description":"Observer longitude in decimal degrees (-180 to 180, west is negative).","maximum":180,"minimum":-180,"title":"Longitude","type":"number"},"elevation":{"description":"Observer elevation above sea level in meters.","maximum":9000,"minimum":-500,"title":"Elevation","type":"number"},"from_date":{"description":"First date, YYYY-MM-DD. The range from_date to to_date may span at most 366 days.","maxLength":10,"title":"From Date","type":"string"},"to_date":{"description":"Last date, YYYY-MM-DD (at most 366 days after from_date).","maxLength":10,"title":"To Date","type":"string"},"time":{"description":"Observer's local time of day, HH:MM:SS, used for each date.","maxLength":8,"title":"Time","type":"string"},"output":{"anyOf":[{"enum":["rows","table"],"type":"string"},{"type":"null"}],"default":"rows","description":"Result layout: rows (one entry per body) or table (grid by date).","title":"Output"}},"required":["body","latitude","longitude","elevation","from_date","to_date","time"],"title":"get_body_eventsArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}},"/v1/tools/search_sky_objects":{"post":{"operationId":"search_sky_objects","summary":"Search stars and deep sky objects (nebulae, galaxies, clusters) by name or catalog designation such as M 42 or NGC 1976;","description":"Search stars and deep sky objects (nebulae, galaxies, clusters) by name or catalog designation such as M 42 or NGC 1976; returns type, catalog cross identifications, position and constellation. Use for \"Find the Orion Nebula in the astronomy catalog\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"term":{"description":"Name or catalog designation to look for, for example 'Orion Nebula' or 'NGC 1976'.","maxLength":100,"title":"Term","type":"string"},"match_type":{"anyOf":[{"enum":["fuzzy","exact"],"type":"string"},{"type":"null"}],"default":"fuzzy","description":"fuzzy returns names starting with the term; exact requires the full name.","title":"Match Type"},"order_by":{"anyOf":[{"const":"name","type":"string"},{"type":"null"}],"default":null,"description":"Sort field; only name is supported.","title":"Order By"},"limit":{"anyOf":[{"maximum":100,"minimum":1,"type":"integer"},{"type":"null"}],"default":10,"description":"How many records to return (default set by the service).","title":"Limit"},"offset":{"anyOf":[{"maximum":100000,"minimum":0,"type":"integer"},{"type":"null"}],"default":0,"description":"Records to skip, for paging: add the limit to get the next page.","title":"Offset"}},"required":["term"],"title":"search_sky_objectsArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}},"/v1/tools/search_sky_objects_by_position":{"post":{"operationId":"search_sky_objects_by_position","summary":"Find stars and deep sky objects around a sky position given as right ascension and declination in decimal degrees. Use f","description":"Find stars and deep sky objects around a sky position given as right ascension and declination in decimal degrees. Use for \"What deep sky objects are near right ascension 83.8 and declination -5.4\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"ra":{"description":"Right ascension to search around, a decimal number as text, for example '83.8'.","maxLength":20,"title":"Ra","type":"string"},"dec":{"description":"Declination to search around, a decimal number as text, for example '-5.4'.","maxLength":20,"title":"Dec","type":"string"},"limit":{"anyOf":[{"maximum":100,"minimum":1,"type":"integer"},{"type":"null"}],"default":10,"description":"How many records to return (default set by the service).","title":"Limit"},"offset":{"anyOf":[{"maximum":100000,"minimum":0,"type":"integer"},{"type":"null"}],"default":0,"description":"Records to skip, for paging: add the limit to get the next page.","title":"Offset"}},"required":["ra","dec"],"title":"search_sky_objects_by_positionArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}}}}