Import Products into folder

Isn’t this an option via the API? When we add products via the API. When we use the WooCommerce plugin we see an folder automatically created. Could be a solution.