How do I get back XML instead of JSON?

Originally asked by Scot McSweeney-Roberts:

How do I get xml back instead of JSON? I tried adding &format=xml to the examples, but that didn’t help (and I don’t have any control over the Accept header, if that’s the way I’m supposed to specify it).

The correct syntax is:


For example:

As you mentioned, you can also do this with the HTTP Accept header e.g.:

$ curl -H "Accept: text/xml"""