What is the best approach for requesting JSON instead of XML from an API?
APIs do not use XML.
Use the Accept header.
Use the Content-Type header.
Add .json to the URL.