Data Application Programming Interface

Unlike the API that is used to interact with Spack Monitor from Spack, the data API exists only to expose data in Spack Monitor. For the time being, it is entirely public. If you want to explore data in spack monitor (or see endpoints that you can use from a client like Python or curl) you should browse to api/docs to see a full schema:

../_images/interface-api.png

Generally, clicking on “api” and then the GET endpoint of your choosing will give you a preview, and then you can mimic the curl command or reproduce in Python. For example, for the builds endpoint, I can do this curl request for a local spack monitor:

Or in Python

If appropriate, this can eventually be made into a client.