Author Topic: Lending Club API response format  (Read 1515 times)

ronceveaux

  • Newbie
  • *
  • Posts: 1
    • View Profile
Lending Club API response format
« on: November 06, 2015, 11:07:26 PM »
Hello,

I am retrieving the current listing of loans available, using the API. The API doc says that it is possible to specify the format of the response. I am able to get a JSON format, but ideally would like a CSV (could make the transformation myself, but if the API can give me exactly what I am looking for why not take advantage of it ?). How can I do that ? Thanks a lot !

AnilG

  • Hero Member
  • *****
  • Posts: 1100
    • View Profile
    • PeerCube
Re: Lending Club API response format
« Reply #1 on: November 06, 2015, 11:45:20 PM »
https://www.lendingclub.com/developers/listed-loans.action

Quote
Supported Formats: JSON, XML, CSV

https://www.lendingclub.com/developers/content-type.action

Quote
HTTP Accept Header      Content Type Resolution
   
   application/json      JSON
   application/xml         XML
   text/plain         CSV
   No Accept Header      JSON (Default)

If you want to near-future proof your program, stay with JSON format. More and more APIs are moving toward JSON and discontinuing CSV and XML.
« Last Edit: November 06, 2015, 11:47:38 PM by AnilG »
---
Anil Gupta
PeerCube Thoughts blog https://www.peercube.com/blog
PeerCube https://www.peercube.com