Starcraft 2 API [closed]
For Unit types, there is ObservationInterface::GetUnitTypeData() which, as far as I saw when browsing the code, should return information on all unit types. I think buildings, in this context, are just another type of unit.
For Abilities, there is ObservationInterface::GetAbilityData()