Hi,
You can find an example in our knowledge base. It is older article, but the idea and code is still the same. It shows how to import products from external source (this depends on your choice) and the API you will use to import the products. In the example is used Excel sheet as a source. You can find the article
here.
Best regards,
Juraj Ondrus