🔎Search
Find deep sky objects and stars
Searches the catalogue by name or by position.
Give term to search by name, or rightAscension and declination together to search by position. The two are mutually exclusive.
Searches the catalogue either by name or by position. Give term to
search by name, or rightAscension and declination together to
search by position. The two are mutually exclusive.
The application key, sent as Authorization: Bearer <key>. Keys are
never accepted in the query string, where they would be recorded in
logs and browser history.
Name or catalogue designation to search for.
andromedaHow term is matched. v2 spelled this match_type.
fuzzyPossible values: Field to sort by. v2 spelled this order_by.
Right ascension to search near, in hours. Must be given with
declination. v2 called this ra and took it as a string.
Declination to search near, in degrees. Must be given with
rightAscension. v2 called this dec and took it as a string.
Most results to return. v2 declared this as a string because query parameters arrive as text; v3 declares the type it means.
20Results to skip. Declared as an integer, not a string.
0Matching objects.
The request could not be parsed.
The application key was missing or not recognised.
The request was understood but a parameter was unacceptable.
GET /api/v3/search HTTP/1.1
Host: api.astronomyapi.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"meta": {
"limit": 1,
"offset": 1,
"total": 1
},
"data": [
{
"id": "text",
"name": "Andromeda Galaxy",
"type": {
"id": "text",
"name": "text"
},
"subType": {
"id": "text",
"name": "text"
},
"crossIdentification": [
{
"name": "text",
"catalogId": "text"
}
],
"rightAscension": 1,
"declination": 1,
"formatted": {
"rightAscension": "text",
"declination": "text"
}
}
]
}Changes from v2
match_type
matchType
order_by
orderBy
ra, dec (strings)
rightAscension, declination (numbers)
limit, offset declared as strings
declared as integers
position.equatorial.rightAscension.hours
rightAscension
position.equatorial.declination.degrees
declination
*.string
formatted.*, with include=formatted
v2 declared limit and offset as strings because query parameters arrive as text. v3 declares the type it means and does the conversion itself.
Examples
By name:
By position:
Last updated