How to get XML response from googleapi Youtube API

It looks like YouTube has updated its API to a newer one ( YouTube Data API (v3) ) and suddenly YouTube browsing my site doesn't work.

I'm trying to update them to work with the new API, but every time I get the result JSON

instead XML

, the old API returned xml, so my code is expecting an xml return result. When I tried to specify XML in the API call, I got an error that the call is invalid.

Can someone explain to me how I can get XML from YouTube V3 API?

+3


source to share


1 answer


YouTube API v3 returns data to JSon . There is no way to change it to return xml.



The necessary conditions

  • Register your app with Google so that it can send API requests.
  • Become familiar with the basic concepts of JSON (JavaScript and Object Notation) data format. For more information see json.org .
+5


source







All Articles