Exoplanet Atmosphere Observability Table
Catalog Overview
The Exoplanet Atmosphere Observability Table (EAOT) provides data about exoplanets from exoplanets.org, NExSci, and TOIs.
Catalog |
Table/View |
Additional Information |
---|---|---|
Observability |
observabilityView |
Getting Started
Quick Start
For more detailed information on using the API, continue below to Usage.
Example 1: EAOT Search
Load entire EAOT catalog
https://catalogs.mast.stsci.edu/api/v0.1/eaot/search.json
Click to try Quick Start Example 1
Example 2: EAOT with specific planet name
Search EAOT catalog where planet name is like “HAT”
https://catalogs.mast.stsci.edu/api/v0.1/eaot/search.csv?planet_name.like=HAT*
Click to try Quick Start Example 2
Specify Output Columns
https://catalogs.mast.stsci.edu/api/v0.1/eaot/search.csv?columns=[planet_name,catalog_name,Rp,Mp]
Click to try New API Specify Columns Example
Usage
Access
The EAOT API can be accessed using GET or POST requests. POST is recommended due to the potentially large request size.
Note Currently, the /metadata
endpoint only supports GET
Note If duplicate parameters are present in the query string and request body of a POST, the request body will override behavior
https://catalogs.mast.stsci.edu/api/v0.1/eaot/
Selecting Catalogs
The EAOT API currently supports the querying of exoplanets.org, NEXSCI, and TOI. To access the different version of the HSC catalogs, indicate the version within the path:
/eaot/search.json?catalog_name=exoplanets.org
/eaot/search.json?catalog_name=nexsci
/eaot/search.json?catalog_name=toi
Searching EAOT
Count
Counts may be returned based on a given query (search query creation details below)
To access counts, append the /count
path
Example Count for EAOT
/eaot/search/count.csv
Meta Data
The /metadata
path provides additional information of available columns for a given catalog.
The additional information includes: column name, column data type, and column description.
Example Receive metadata for EAOT
/eaot/search/metadata.json
General Searching
Please read documentation for more detailed general search guidelines for our catalog services. Using MAST Catalogs
Formats
View Encoding Formats
/ Default
GET /eaot/search
/ With Decorator
GET /eaot/search.json
/ With Parameter
GET /eaot/search/format=json
/ With Accept Header
GET /eaot/search
ACCEPT: application/json
Selecting Columns
View Selecting Columns
/eaot/search?columns=Mp&columns=Tp
/ note case insensitivity
/eaot/search?columns=MP&columns=TP
/eaot/search?columns=["Mp","Tp"]
/eaot/search?columns=[Mp,Tp]
Column Filtering
View Column Filtering
/eaot/search
Rp.gte=1
Sorting
View Sorting
/eaot/search
sort_by=orbital_period.desc
sort_by=transit_duration.asc
Paging
View Paging
/eaot/search
pagesize=100
page=2
EAOT API Services
- GET /api/v0.1/eaot/search/metadata{additional_args}
Return column metadata
Return column metadata
- Status Codes:
200 OK – JSON listing results of metadata
422 Unprocessable Entity – Validation Error
- GET /api/v0.1/eaot/search{additional_args}
Subset of Exoplanet observability view based on filter criteria
Query view based on filter criteria
- Request Headers:
accept (string) –
- Query Parameters:
columns (array) – A list of column names to include
sort_by (array) – A list of columns to sort by
pagesize (integer) – The number of planets to return per page
page (integer) – If using pagesize, the page number to return
flatten_response (boolean) – Request responses to return as a list of lists rather than a list of objects.
format – Format of the response (json/csv/xml/votable)
delimiter – Delimiter used in csv response
raw (boolean) – Request all responses to be in raw form. If false, the response will convert all items of long data type to a string. This is useful for languages with problems encoding long data types.
include_info (boolean) – Request responses to include column info. If true, the response will include the info key within the return object with available column information.
- Status Codes:
200 OK – result of query
422 Unprocessable Entity – Validation Error
- POST /api/v0.1/eaot/search{additional_args}
Post method for search requests
POST request for subset of Exoplanet observability view based on filter criteria
- Request Headers:
accept (string) –
- Query Parameters:
flatten_response (boolean) – Request responses to return as a list of lists rather than a list of objects.
format – Format of the response (json/csv/xml/votable)
delimiter – Delimiter used in csv response
raw (boolean) – Request all responses to be in raw form. If false, the response will convert all items of long data type to a string. This is useful for languages with problems encoding long data types.
include_info (boolean) – Request responses to include column info. If true, the response will include the info key within the return object with available column information.
- Status Codes:
200 OK – result of query
422 Unprocessable Entity – Validation Error