This function can be saved in your child theme's functions.php file, or in a code snippets plugin ( https://wordpress.org/plugins/code-snippets/ ), then used in WP All Import to download a product feed via the WooCommerce REST API. Things that need to be/can be changed are:
- In the function call, change "100" to the amount of product you want per-page request.
- In the code, change the $max_pages value from 3 to however many pages you want to fetch.
- In the code, change the $key and $sec (secret value) values to the correct ones from your WooCo API key details.
Usage (in the Download a file › From URL field in WP All Import):
[my_fetch_products("https://example.com/wp-json/wc/v3/products?per_page=100","json")]