While making a custom rest Programming interface in Magento 2, you might have to work with the request aggregate and utilize their qualities. Today, I have thought of the blog to get total segment using Magento 2 rest API.
For more info,visit https://meetanshi.com/blog/get-total...to-2-rest-api/