What better day to showcase the rudimentary features of our Bible API than Easter Sunday. While not planned, there is a serendipitous nature about it. When it comes to what information we make available via our social system we generally don't discriminate on the content... and our Bible API (from a business sense) tends to fit into the category that might attract a little scrutiny.
It's prudent at this time to reinforce our name: it has no connection or affiliate with any particular faith (unless of course you consider the pursuit of digital excellence to be a religion). Belief, in the context of our company name, refers to the state of mind in which a person thinks something to be true, with or without there being empirical evidence to prove that something is the case with factual certainty. It has everything to do with "Justified true belief" and nothing to do with religion. Of course, my little disclaimer doesn't mean that we don't have a spread of religions practitioners among our ranks.
This quick article serves to illustrate the basic use of our Bible API - available to all clients. For the purpose of our examples we'll be using the American Bible transation (a number of translations are available). For more complete documentation, please refer to our client area.
The endpoint for all requests is as follows:
To return details about a specific verse in the bible, we reference that via its
id. The result (for the first line in the Bible) may be returned with
json.php?apikey=xxxxx&id=01001001. The result:
Note that we return the
book_slug. This may be used in addition to the numeric
book_id (refer detailed documentation in the client area) to return texts relating only to that book (example: Genesis, John, Corinthians, Romans, Mark etc).
Translations from other Bible sources are returned and they are all available individually via the appropriate GET request. The image reference is a copy of the passage as an image on our own server, If we're required to manufacture the same branded images for clients, we honour the same directory structure.
You may search the text fields, and refine your search by book and chapter. Available request parameters are translation (
chapter. Example requests are as follows:
Whenever conducting a search the URL parameter of
type=search is required (otherwise it details to
type=browse). In the following example the results for a search of the word 'earth' in Genesis are returned.
For the sake of a broader understanding (one that I required... despite a Churchy school-life), the following is a brief introduction to the various versions (or translations) we make available.
American Standard Bible
The Revised Version, Standard American Edition of the Bible, more commonly known as the American Standard Version (ASV), is a Bible translation into English that was completed in 1901, with the publication of the revision of the Old Testament; the revised New Testament had been released in 1900. It was originally best known by its full name, but soon came to have other names, such as the American Revised Version, the American Standard Revision, the American Standard Revised Bible, and the American Standard Edition. By the time its copyright was renewed in 1929, it had come to be known by its present name, the American Standard Version. Because of its prominence in seminaries, it was in America sometimes simply called the "Standard Bible".
Bible in Basic English
The Bible In Basic English (also known as BBE) is a translation of the Bible into Basic English. The BBE was translated by Professor S. H. Hooke using the standard 850 Basic English words. 100 words that were helpful to understand poetry were added along with 50 "Bible" words for a total of 1,000 words. This version is effective in communicating the Bible to those with limited education or where English is a second language. The New Testament was released in 1941 and the Old Testament was released in 1949.
Darby English Bible
The Darby Bible (DBY, formal title The Holy Scriptures: A New Translation from the Original Languages by J. N. Darby) refers to the Bible as translated from Hebrew and Greek by John Nelson Darby. Darby published a translation of the New Testament in 1867, with revised editions in 1872 and 1884. After his death, some of his students produced an Old Testament translation based on Darby's French and German translations. The complete Darby Bible, including Darby's 3rd edition New Testament and his students' Old Testament, was first published in 1890.
King James Bible
The King James Version (KJV), also known as the Authorized Version (AV) or the King James Bible (KJB), is an English translation of the Christian Bible for the Church of England begun in 1604 and completed in 1611. The books of the King James Version include the 39 books of the Old Testament, an intertestamental section containing 14 books of the Apocrypha, and the 27 books of the New Testament.
Noah Webster's 1833 limited revision of the King James Version focused mainly on replacing archaic words and making simple grammatical changes. For example: "why" instead of "wherefore", "its" instead of "his" when referring to nonliving things, "male child" instead of "manchild", etc. He also introduced euphemisms to remove words he found offensive: "whore" becomes "lewd woman". Overall, very few changes were made, and the result is a book which is almost indistinguishable from the King James Version. It has sometimes been called the "Common Version".
World English Bible
The World English Bible (also known as the WEB) is a free updated revision of the American Standard Version (1901). It is one of the few public domain, modern-English translations of the entire Bible, and it is freely distributed to the public using electronic formats. The Bible was created by volunteers using the ASV as the base text as part of the ebible project through Rainbow Missions, Inc., a Colorado nonprofit corporation.
Young's Literal Translation
Young's Literal Translation (YLT) is a translation of the Bible into English, published in 1862. The translation was made by Robert Young, compiler of Young's Analytical Concordance to the Bible and Concise Critical Comments on the New Testament. Young used the Textus Receptus (TR) and the Majority Text (MT) as the basis for his translation. He wrote in the preface to the first edition, "It has been no part of the Translator's plan to attempt to form a New Hebrew or Greek Text -- he has therefore somewhat rigidly adhered to the received ones. The Literal Translation is unusual in that, as the name implies, it is a strictly literal translation of the original Hebrew and Greek texts.
Example PHP Functions
The following basic functions will retrieve the results and return them as an array.
Returning Passage Details
Returning Search Results
Bible Text as Images
Each passage makes its way onto an image (available in the response). We're using our yet-to-be-discussed Image Factory API to create a square typewriter image (not unlike our Quotes API) with the following result. If the result is more than 14 lines we'll create a 'Basic Image' instead.
We use the 'nature' backgrounds by default but there is a gallery of various religious images if that's what tickles your pickle.
- There's no error checking in our example PHP functions. It's expected that you'll code this in to avoid your responses being ignored on our end.
- In the interests of keeping everybody happy, we have a similar API that returns various translation of the Quran - details of which will be published soon.
- If you're a client and require it, make contact with us for a full branded collection of images. They are good for social fuel if it relates to your service. Of course, the entire collection can be scheduled to all social platforms via our platform.
- Various details on making requests to the available translations are available within our client area. At this stage we only have images manufactured locally for the American Bible.
- Other requests are available to return specific information about each translation, such as word counts, paragraph counts etc. Their use is beyond the scope of this brief introduction.
- We have a Twitter and Facebook page that essentially tweeted the Bible one image at a time. Publishing was suspended for a few days at the time of publishing this article so we could migrate the feature over to the new platform.
- There's another API we'll link to in a couple of days that returns text which includes "Jesus only" passages.
- Strangely enough, some Bible texts are subject to copyright.