_images/mastlogo_thumb.png

Welcome to the MAST Planet Hunters TESS API documentation!

Getting Started

This is documentation for the tesszoo.mast API, one of the Barbara A. Mikulski Archive for Space Telescopes’ (MAST) web service APIs. This API allows users to make a variety of queries related to Zooniverse Planet Hunters TESS.

Information on MAST’s other APIs can be found here.

Accessing Transit Data

This query allows you to access transit data ( /transit? ) and transit user data ( /transit/users? ).

GET /api/v0.1/access/transit?flatten_response=false   HTTP/1.1
Host: mast.stsci.edu/phad


HTTP/1.1 200 OK
Content-Type: application/json; charset=UTF-8

{
 "info" :[
    {"name": "transitID", "type": "NUMBER"},
    {"name": "subjectID", "type": "NUMBER"},
    {"name": "center", "type": "NUMBER"},
    {"name": "width", "type": "NUMBER"},
    {"name": "counts", "type": "NUMBER"},
    {"name": "weightedCounts", "type": "NUMBER"},
    {"name": "userCount","type": "NUMBER"},
    {"name": "dateModified","type": null}
    ],
 "data":[
    {
       "transitID": 1,
       "subjectID": 13626,
       "center": 5,
       "width": 10,
       "counts": 5,
       "weightedCounts": 2.5,
       "userCount": 5,
       "dateModified": 2019-01-30 20:18:00.248000
    },
    {
       "transitID": 2,
       "subjectID": 13626,
       "center": 30,
       "width": 5,
       "counts": 8,
       "weightedCounts": 6.1,
       "userCount": 8,
       "dateModified": 2019-01-30 20:18:00.248000
    }
 ]}

Loading Transit Data

This query allows you to load transit data.

POST /api/v0.1/load/transit   HTTP/1.1
Host: mast.stsci.edu/phad