I am working on Wp Rest API. I want to retrieve posts from WordPress site that result to display in another PHP site. I have created a rest url "http://sitename.com/wp-json/wp/v2/posts" like this to get the posts. This request displays the data in html format but not in JSON format. I have tested two different URLs in PostMan application. How to get the API response into JSON format not html from WordPress site.
This is My URL data
This is Thirdparty URL data