Hello,
unfortunately there is no way to map IFC Base Quantities with API.
The IFC Base Quantity export can be slow sometimes based on the plan file. For example it calculates sum area of zones of floor that's why in some cases Space boundary data have to be calculated which is time-consuming process.
Best,
Mihály