How to validate api data with UI using cypress

I have a requirement, where I have to validate the api body data with the values which are present in the application UI using Cypress automation tool.
Is this possible to validate with UI, if yes, please help me by providing any example.