{
"errors": [], // Array of error messages, if any. If an error has occured, the API will return HTTP status code 400.
"error_level": 0, // Integer indicating error level. 0 - No error, 1 & 2 - Reserved for future use, 3 - Non-fatal error, 4 - Fatal error
"results": {} // Contains the actual data returned by the API
}
In your config.js file, set "apiUrl" to: "http://scriptures.bomchristian.com"
It should look like this:
// URL of Bible SuperSearch API (string)
// Note: You can install the Bible SuperSearch API on your own server
// If you do, you will need to change this
// Default: https://api.biblesupersearch.com
"apiUrl": "http://scriptures.bomchristian.com",
Now, save the file and reload the application to make sure it works.
On the admin side, navigate to "Settings", then to "Bible SuperSearch:"
Now, click on the Advanced tab:
Now, change the API URL to: http://scriptures.bomchristian.com
If you've entered the URL correctly, the box will turn green. Now, click "Save Changes:"
Now, reload the application and it should be working off of this API.
Bibles Available via API | ||||||
---|---|---|---|---|---|---|
Module* | Language | Name | Short Name | Year | Copyrighted | Research** |
kjv | English | Authorized King James Version | KJV | 1611 / 1769 | No | No |
Action: | Query |
URL: | http://scriptures.bomchristian.com/api |
Description: | Used for all queries against the Bibles in our database, including keyword searchs and passage retrieval. When running a query, the only requirement is that either 'reference' or 'search' are required. |
Action Parameters | ||||
---|---|---|---|---|
Parameter | Name | Type | Default | Description |
reference | Reference | String | (none) | Passage reference, such as Romans 1:1-20; Acts 2:3; 1 Cor 5:20-6:7 |
search | Search | String | (none) | Keyword search |
request | Request | String | (none) | Single field that can recieve either reference or keywords. If item resolves to a valid passage and specifies a chapter (or verse), request will be treated as a passage request; otherwise the request will be treated as a keyword search. |
bible | Bibles | String (Drop Down Menu - Multiple) |
kjv | MODULE of the Bible(s) to query against. Can be a string, array or JSON-encoded array. Use the Bibles action to get a list of available Bibles for your app or website. |
whole_words | Whole Words | Boolean | false | Whether to search for exact words. Otherwise, keywords will be found within words. |
exact_case | Exact Case | Boolean | false | Whether to search for the exact case. Searches are case-insensitive by default. |
data_format | Data Format | String | passage | Format of the outputed data structure.
|
highlight | Highlight | Boolean | false | Whether to highlight keywords in retrieved verses. Setting this to 'true' will cause highlight_tag to be wrapped around each matched keyword. |
highlight_tag | Highlight Tag | String | b | HTML tag to use for wrapping highlighted keywords. Just set to the name of the tag, omitting <> |
page | Page | Integer | 1 | For search results, the page to show. Currently, only searches support pagination. See details below |
page_all | Show All Results | Boolean | false | Whether to disable all pagination. |
context | Show in Context | Boolean | false | For a given single verse, will return the verse with verses around it. |
context_range | Context Range | Integer | 5 | Range of verses to pull when 'context' is true. |
search_type | Search Type | String (Drop Down menu) |
and | Type of search when using keyword search. Options:
|
keyword_limit | Keyword Limit | Integer | 5 | Keyword limit. For 'keyword_limit' search type, sets the minimum number of keywords. |
proximity_limit | Proximity Limit | Integer | 5 | Proximity limit. For Proximity search types, sets the range of allowable verses between keywords. |
markup | Markup Format | String | none | Format of markup for Bibles having Strongs numbers or red letter. 'none' returns no markup. 'raw' returns the markup as stored in the database: {} indicates Strongs numbers, [] indicates added words, and ‹› (not <>) indicates red letter. |
callback | Call back | String | (none) | Name of callback for JSONP, if needed |
Advanced Parameters | ||||
---|---|---|---|---|
Parameter | Name | Type | Default | Description |
search_all | Search All | String | (none) | For an advanced search form, this is the input for searching for all words. |
search_any | Search Any | String | (none) | For an advanced search form, this is the input for searching for any words. |
search_one | Search One | String | (none) | For an advanced search form, this is the input for searching for one of the words. |
search_none | Search None | String | (none) | For an advanced search form, this is the input for searching for none of the words. |
search_phrase | Search Phrase | String | (none) | For an advanced search form, this is the input for searching for an exact phrase. |
{
"errors":[],
"error_level":0,
"strongs":[], // If the search included any Strong's numbers, this array will contain the Strong's definition for each. See the "Strong's Definition" tab for details.
"paging":{
"total":338,
"per_page":30,
"current_page":1,
"last_page":12,
"from":1,
"to":30
},
"results":{
"kjv":[
{"id":"23241","book":"40","chapter":"5","verse":"6","text":"Blessed are they which do hunger and thirst after righteousness: for they shall be filled."},
{"id":"23242","book":"40","chapter":"5","verse":"7","text":"Blessed are the merciful: for they shall obtain mercy."},
{"id":"23243","book":"40","chapter":"5","verse":"8","text":"Blessed are the pure in heart: for they shall see God."},
{"id":"27932","book":"45","chapter":"1","verse":"1","text":"Paul, a servant of Jesus Christ, called to be an apostle, separated unto the gospel of God,"},
{"id":"27933","book":"45","chapter":"1","verse":"2","text":"(Which he had promised afore by his prophets in the holy scriptures,)"}
]
}
}
{
"errors":[],
"error_level":0,
"strongs":[], // If the search included any Strong's numbers, this array will contain the Strong's definition for each. See the "Strong's Definition" tab for details.
"results":[
{
"book_id":45,
"book_name":"Romans",
"book_short":"Rm",
"book_raw":"Rom", // Book name as entered by user
"chapter_verse":"1:1-2", // Standardized chapter and verse
"nav":{ ... }, // Metadata for browsing buttons, see below for details
"chapter_verse_raw":"1:1-2", // Chapter and verse as entered by user
"verse_index": { // A list of all chapters and verses retrieved.
1: [1, 2]
},
"verses":{
// Indexed by Bible (module)
"kjv":{
// Indexed by chapter
"1":{
// Indexed by verse
"1":{"id":"27932","book":"45","chapter":"1","verse":"1","text":"Paul, a servant of Jesus Christ, called to be an apostle, separated unto the gospel of God,"},
"2":{"id":"27933","book":"45","chapter":"1","verse":"2","text":"(Which he had promised afore by his prophets in the holy scriptures,)"}
}
}
},
"verses_count":2,
"single_verse":false // Indicates if the passage contains exactly one verse. Note: Searches will result in all single verse passages.
},
{
"book_id":40,
"book_name":"Matthew",
"book_short":"Mt",
"book_raw":"Matt",
"chapter_verse":"5:6-8",
"chapter_verse_raw":"5:6-8",
"nav": {ncb: 40, ncc: 6, pcb: 40, pcc: 4, ccb: 40, ccc: 5, nb: 41, pb: 39}
"verse_index": {
5: [6, 7, 8]
},
"verses":{
"kjv":{
"5":{
"6":{"id":"23241","book":"40","chapter":"5","verse":"6","text":"Blessed are they which do hunger and thirst after righteousness: for they shall be filled."},
"7":{"id":"23242","book":"40","chapter":"5","verse":"7","text":"Blessed are the merciful: for they shall obtain mercy."},
"8":{"id":"23243","book":"40","chapter":"5","verse":"8","text":"Blessed are the pure in heart: for they shall see God."}
}
}
},
"verses_count":3,
"single_verse":false
}
]
}
For multiverse ranges and chapters, this gives the book and chapter metadata for generating browsing buttons. Only available on 'passage' data structures and is not currently provided for single verses.
{
"errors":[],
"error_level":0,
"results":[
{
"book_id":40,
"book_name":"Matthew",
"book_short":"Mt",
"book_raw":"Matt",
"chapter_verse":"5:6-8",
"chapter_verse_raw":"5:6-8",
"nav": {
// Link to Next Chapter, if applicable
next_chapter: "Matthew 6", // 'reference' for next chapter link
ncb: 40, // Next chapter book: book_id of the chapter following this one
ncc: 6, // Next chapter chapter: chapter number of chapter following this one
// Link to Previous Chapter, if applicable
prev_chapter: "Matthew 4", // 'reference' for previous chapter link
pcb: 40, // Previous chapter book: book_id of the chapter preceding this one
pcc: 4, // Previous chapter chapter: chapter number of the chapter preceding this one
// Link to current chapter (if not already displaying the whole chapter)
cur_chapter: "Matthew 5", // 'reference' for current chapter link
ccb: 40, // Current chapter book: book_id of the current chapter
ccc: 5, // Current chapter chapter: chapter number of the current chapter,
// Link to the Next Book, if applicable
next_book: "Mark", // 'reference' of next book
nb: 41, // Book_id of the next book
// Link to the Previous Book, if applicable
prev_book: "Malachi" // 'reference' of previous book
pb: 39 // Book_id of the previous book
},
"verse_index": {
5: [6, 7, 8]
},
"verses":{ ... }
"verses_count":3,
"single_verse":false
}
]
}
For all searches, this provides the metadata for building pagination. (Please note, setting 'page_all' to true disables all pagination),
{
"errors":[],
"error_level":0,
"paging":{
"total":338, // Total number of results
"per_page":30, // Results per page
"current_page":1, // Current page number
"last_page":12, // Total number of pages
"from":61, // First displaying result Example: 'Now displaying results 61 to 90'
"to":90 // Last displaying result
},
"results":[ ... ]
}
Action: | Statics |
URL: | http://scriptures.bomchristian.com/api/statics |
Description: | Single API action to retrieve basic information needed to use the API. This includes:
|
Action Parameters | ||||
---|---|---|---|---|
Parameter | Name | Type | Default | Description |
language | Language | String | en | 2 Character ISO 639‑1 language code |
callback | Call back | String | (none) | Name of callback for JSONP, if needed |
{
"errors": [],
"error_level": 0,
"results": {
"bibles": { ... }, // See Bibles Action
"books": [ ... ], // See Books Action
"search_types": [ ... ],
"shortcuts": [ ... ],
"download_formats": [ ... ],
"name": "Bible SuperSearch API",
"version": "4.1.0",
"environment": "production",
}
}
Action: | Bibles |
URL: | http://scriptures.bomchristian.com/api/bibles |
Description: | Retrieves the list of Bibles avaliable via the API |
Action Parameters | ||||
---|---|---|---|---|
Parameter | Name | Type | Default | Description |
callback | Call back | String | (none) | Name of callback for JSONP, if needed |
{
"errors":[],
"error_level":0,
"results":{
// Indexed by 'module'
"kjv":{
"name":"Authorized King James Version",
"shortname":"KJV",
"module":"kjv", // The 'module' is what the API uses to identify the Bible for queries.
"year":"1611 \/ 1769", // Publication year
"lang":"English",
"lang_short":"en",
"copyright":"0", // Copyrighted (not public domain)
"italics":"1", // (Future use) Supports Italicised words
"strongs":"0", // (Future use) Embedded strongs numbers
"rank":"10", // Default sorting order.
"research":"0" // Indicates a Bible text intended for research purposes only.
},
"geneva":{
"name":"Geneva Bible",
"shortname":"Geneva",
"module":"geneva",
"year":"1587",
"lang":"English",
"lang_short":"en",
"copyright":"0",
"italics":"0",
"strongs":"0",
"rank":"60",
"research":"0"
},
"tr":{
"name":"Textus Receptus NT",
"shortname":"TR","
"module":"tr",
"year":"1550 \/ 1884",
"lang":"Greek",
"lang_short":"el","
copyright":"0",
"italics":"0",
"strongs":"0",
"rank":"70",
"research":"0"
},
"wlc":{
"name":"WLC",
"shortname":"Wlc",
"module":"wlc",
"year":"",
"lang":"Hebrew",
"lang_short":"he",
"copyright":"0",
"italics":"0",
"strongs":"0",
"rank":"300",
"research":"1"
}
}
}
Action: | Books |
URL: | http://scriptures.bomchristian.com/api/books |
Description: | Retrieves a list of Bible Books in the specified language |
Action Parameters | ||||
---|---|---|---|---|
Parameter | Name | Type | Default | Description |
language | Language | String | en | 2 Character ISO 639‑1 language code |
callback | Call back | String | (none) | Name of callback for JSONP, if needed |
{
"errors":[],
"error_level":0,
"results":[
{"id":1,"name":"Genesis","shortname":"Gen"},
{"id":2,"name":"Exodus","shortname":"Ex"},
....
{"id":65,"name":"Jude","shortname":"Jude"},
{"id":66,"name":"Revelation","shortname":"Rev"}
]
}
Action: | Strong's Definition |
URL: | http://scriptures.bomchristian.com/api/strongs |
Description: | Retrieves definitions for the given Strong's numbers. |
Action Parameters | ||||
---|---|---|---|---|
Parameter | Name | Type | Default | Description |
strongs | Strong's Number(s) | String | (none) | Retrieve Strong's definitions for the given Strong's numbers. Can be a single string, a comma-separated string or a JSON-encoded array |
callback | Call back | String | (none) | Name of callback for JSONP, if needed |
{
"errors":[],
"error_level":0,
"results":[
// Definition record, "tvm" will be empty.
{
"id":11398,
"number":"G2545",
"root_word":"καίω",
"transliteration":"kaiō",
"pronunciation":"kah'-yo",
"tvm":"",
"entry":"Apparently a primary verb; to <i>set on fire<\/i>, that is, <i>kindle<\/i> or (by implication) <i>consume:<\/i> - burn, light."
},
// TVM record, "tvm" will be populated, and other items will be empty.
{
"id":14471,
"number":"G5719",
"root_word":null,
"transliteration":null,
"pronunciation":null,
"tvm":"<b>Tense:<\/b> Present, See G5774 <br><b>Voice:<\/b> Active, See G5784 <br><b>Mood:<\/b> Indicative, See G5791 <br>\n",
"entry":null
}
]
}
Action: | Version |
URL: | http://scriptures.bomchristian.com/api/version |
Description: | Retrieves basic version information about the API. This includes:
|
Action Parameters | ||||
---|---|---|---|---|
Parameter | Name | Type | Default | Description |
callback | Call back | String | (none) | Name of callback for JSONP, if needed |
{
"errors": [],
"error_level": 0,
"results": {
"name": "Bible SuperSearch API",
"version": "4.1.0",
"environment": "production",
}
}