API aspect¶
The Application Programming Interface (API) allows users to interact with Rubin’s data services remotely. An API (Application Programming Interface) is a structured way for software applications to communicate with each other. It can be thought of as a back-and-forth exchange between a client and a server: one program (the client) makes a request for data, and another program (the server) provides a response.
In the context of the RSP, the API aspect allows access to Rubin data—including images and catalogs—both within the RSP environment (e.g., via the RSP JupyterLab Notebook aspect) and externally (e.g., through the Tool for OPerations on Catalogues And Tables (TOPCAT) or a PyVO-enabled environment like the National Optical-Infrared Astronomy Research Laboratory’s Astro Data Lab).
Use the API Aspect to:
Automate data queries or downloads.
Integrate Rubin data into your own software tools.
Require access to external datasets in addition to LSST data.
API Services¶
The API aspect of the RSP supports several types of services. These include the Table Access Protocol (TAP), Observation Table Access Protocol (ObsTAP), the Server-side Operations for Data Access (SODA) service (which provides image cutouts and mosaics), and the Hierarchical Progressive Survey (HiPS).
By the time of the first data release, the Rubin Science Platform will also support the Simple Cone Search (SCS) for basic catalog queries, Simple Image Access Protocol version 2 (SIAv2) for image searches, and Virtual Observatory Space (VOSpace)—alongside Web Distributed Authoring and Versioning (WebDAV)—for user file access.
Table Access Protocol (TAP) Service¶
The Table Access Protocol (TAP) is a specific type of service within the API, implemented according to the International Virtual Observatory Alliance (IVOA) standard.
Internal and External TAP Services¶
The RSP TAP service is available in two configurations:
Internal TAP Service
The primary means of accessing TAP within the RSP is through the RSP’s Portal and Notebook aspects. In the Notebook aspect, a TAP service is instantiated within a Python notebook and used to execute an Astronomical Data Query Language (ADQL) query, returning a result set.
External TAP Service
The external TAP service is also accessible outside the RSP (e.g., from a personal computer), allowing users to query data using external software such as PyVO, TOPCAT, or custom scripts. To access TAP from external software, users must generate an RSP access token.
Authentication and Access Tokens
Access to Rubin data via the API requires authentication. Users must obtain an RSP authentication token, which serves as a credential when making API requests. Instructions on generating and using an RSP access token can be found on the Authentication website.
Additional Resources¶
RSP tutorials are available in the data release documentation. For the most recent data releases, visit the Rubin Observatory page.