Build a Random Quote Machine using API


#1


Hello, friends. I need help with implementing API(The bible verses). I tried a couple API with The bible topic but they did not work out.Please help me out


#2

So to be clear, the Forismatic API that you are currently using is not the one you want to use? You’re looking for something specific to Bible verses?


#3

There is a public API available from labs.bible.org. You can access it with something like:

$.getJSON("https://labs.bible.org/api/?passage=random&type=json&callback=?", function(data){
  $(".quote").html(data[0].text.split('<')[0]);
  $(".author").html(data[0].bookname + " " + data[0].chapter + ":" + data[0].verse);
});

Feel free to modify the above as desired ^^


#4

Thank you very much, you have been very helpful !!!