public
Description: SoundCloud API Code
Home | Edit | New

04 Response Formats

Representations in XML and JSON are available.

Choose response format by either appending .format to the URL:

http://api.soundcloud.com/me.xml

http://api.soundcloud.com/me.json

http://api.soundcloud.com/me.js

or send an Accept header specifying the mime type.

When using cURL:

$ curl 'http://api.soundcloud.com/me/' -H 'Accept: text/xml'
$ curl 'http://api.soundcloud.com/me/' -H 'Accept: application/xml'
$ curl 'http://api.soundcloud.com/me/' -H 'Accept: application/x-xml'

$ curl 'http://api.soundcloud.com/me/' -H 'Accept: application/json'

$ curl 'http://api.soundcloud.com/me/' -H 'Accept: text/javascript'

The default response format is XML.

Last edited by lenberg, Tue Sep 08 06:36:47 -0700 2009
Home | Edit | New
Versions: