Request / Response Formats

The VC4A API supports multiple formats including xml, javascript, html, json and a simple txt format. The VC4A API defaults to json, as it’s the closest thing developers have to a universal language. Even if the back end is built in Ruby on Rails, PHP, Java, Python etc., most projects probably touch JavaScript for the front end. It also has the advantage of being less verbose than xml, which is an important consideration for mobile app developers.

If a format is not specified in the request, json will be returned by default. If another format is desired, simply append the format type as an extension to the endpoint. For example, to return xml use /v1/ventures.xml. Likewise, to return javascript use /v1/ventures.js.

Example Outputs: