From the other comment it looks like they indeed use comtrade.
The IMF and Worldbank have some similar public data, although not in that amount of detail. [1]
And I recently stumbled upon a project that tries to standartise the API for a lot of official data sources [2].