The eduGAIN database provides access trough a number of API calls made available trough https://technical.edugain.org/api.php.

The API is self documenting.