The catalog web service allows you to submit a query, both through an online form and programmatically. You can access the Guide Star Catalog(s) as well as a number of other catalogs available from MAST.
The API endpoint is: https://gsss.stsci.edu/webservices/vo/CatalogSearch.aspx?Parameters
with your desired search criteria.
Do not place quotes around any of the parameter values, or your query will fail. Additionally, the parameters are both case-insensitive and order-insensitive.
Required Parameters for each search type
At a minimum, you must create a query in the style of one of the four following:
|Example (using optional parameter defaults : CATALOG=GSC242, FORMAT=VOTABLE)
|VO Cone Search
|RA=ra(deg) &DEC=dec(deg) &SR=search radius(deg)
|BBOX=raMin(deg), decMin(deg), raMax(deg), decMax(deg)
STCS=Space Time Coordinate System shape (CIRCLE or POLYGON)
Note that a STCS=CIRCLE is the same as a VO ConeSearch
You do not need to include these parameters in your search, but you can use them you further filter your results. Some options, like filename and format, alter the results returned to you.
CATALOG=code (Default if omitted is GSC242)
For clarity this is a recommended parameter. It WILL change as newer versions of GSC are released
EPOCH=yyyy.y (Updates ra/dec using proper motion IF AVAILABLE in catalog)
FORMAT= VOTABLE(default) | HTML | KML | CSV | TSV | JSON | TEXT
Note: TEXT is only supported for GSC1, GSC2 and HLA catalogs for backwards compatibility with other services and is NOT recommended
FILENAME=outputname (directs output to file)
MAXOBJ=n (limits number of entries returned by brightest magnitude)
MAGRANGE=bright,faint (limits number of entries returned by limits)
MINDET=n (minimum number of detections PanSTARRS only)