and use the BSDD api direct to retrieve uniclass codes. (or could use the NBS one... but I think that needs access keys so gets a little complex...) https://search.bsdd.buildingsmart.org/uri/nbs/uniclass2015/1 e.g.  https://api.bsdd.buildingsmart.org/api/Class/Search/v1?SearchText=Pr_&DictionaryUris=https%3A%2F%2Fidentifier.buildingsmart.org%2Furi%2Fnbs%2Funiclass2015%2F1 could further filter to include only these: 
and use the BSDD api direct to retrieve uniclass codes.
(or could use the NBS one... but I think that needs access keys so gets a little complex...)
https://search.bsdd.buildingsmart.org/uri/nbs/uniclass2015/1
e.g.

https://api.bsdd.buildingsmart.org/api/Class/Search/v1?SearchText=Pr_&DictionaryUris=https%3A%2F%2Fidentifier.buildingsmart.org%2Furi%2Fnbs%2Funiclass2015%2F1
could further filter to include only these:
