The core of this portal is CKAN, a powerful data management system. CKAN has an integrated API that can help us to get the data easily.
You can learn more about the CKAN Api here: https://docs.ckan.org/lt/latest/api.html
In order to use the API, the portal provides some examples within the page of each dataset. For Instance, if we want to get the data from the "UPF Academic Degrees - Bachelor and Master" dataset, go to the dataset page, click in one of the available formats and then click in the API Button, as its shown in Figure 1, then you will see some examples about the use the API for this specific dataset, as its shown in Figure 2.