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