🔎Search
Search for stars and deep space objects.
Search endpoint can be used to get information for stars and deep space objects.
The response of this endpoint is an array of objects which is representing the results. Depending on the matching criteria, the resulting items could be of object type star
or a deep space object
.
See Search Result Properties for information on response object details.
Get available bodies
GET
https://api.astronomyapi.com/api/v2/search
Returns a list of results based on the requested query
Query Parameters
Name | Type | Description |
---|---|---|
term* | string | Search term. Conditionally required if
and
values are not provided for area search. |
match_type* | string | Matching algorithm. Valid values are
or
. A fuzzy match will return results starting with the given term while an exact match will exactly match the term. Defaults to
. Optional for term search. |
ra* | string | Right ascension value to search around. Must be a decimal value as a string representation. Required if
value is provided. |
dec* | string | Declination value to search around. Must be a decimal value as a string representation. Required if
value is provided. |
limit | string | How many records to return in the request. |
offset | string | Use offset to paginate the results. 0 will return the first page, adding the limit to the offset will return the next page. |
order_by | string | Order the results by the field. The supported value is
. Does not support during an area search. |
Headers
Name | Type | Description |
---|---|---|
Authorization* | string | Basic |
Object types and sub types
Search API can only be used for searching stars and deep space objects. For searching for planets use the positions API instead. For a list of DOS types see DSO enums
Object catalogs
The following object catalogs are available for searching. Please note all objects may not be present in the database for some catalogs.
ID | Name |
---|---|
LBN | Lynds' Catalogue of Bright Nebulae |
NGC | The New General Catalogue |
HCG | A Hickson Compact Group |
ZWG | The Catalogue of Galaxies and Clusters of Galaxies |
HR | Revised Harvard Photometry |
IC | Index Catalogue |
UGC | The Uppsala General Catalogue of Galaxies |
KUG | The Kiso Ultraviolet Galaxy Catalogue |
FCC | A Catalogue and Photometric Properties of Galaxies |
DDO | David Dunlap Observatory Catalogue |
ARP | The Atlas of Peculiar Galaxies |
MCG | Morphological Catalogue of Galaxies |
ESO | The European Southern Observatory Catalogue |
Last updated