Need to export all the products using REST API

I am currently working on a project and looking to export all products in plain CSV format from our Shopify store programmatically using the REST API in Java.

I’ve reviewed our Shopify admin page at https://admin.shopify.com/store/eac23e-3/products?selectedView=all, and while I noticed there’s an export button available, I’m exploring the possibility of achieving this export functionality through the REST API directly without manual intervention.

Could you please guide me to the specific API endpoint or method that enables product export in CSV format via the REST API?

There is no specific API endpoint to enable Product export in CSV format.
You can fetch the products from Shopify using the API endpoint below with the GET method:
GET - /admin/api/2023-01/products.json

Once the product data is fetched, you can use it and create a CSV with custom code.

https://shopify.dev/docs/api/admin-rest/2023-10/resources/product