{
"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: "https://www.dev.api.biblesupersearch.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": "https://www.dev.api.biblesupersearch.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: https://www.dev.api.biblesupersearch.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** | Downloadable |
| afri | Afrikaans | Afrikaans 1953 | Afrikaans | 1953 | No | No | Yes |
| svd | Arabic | Smith Van Dyke | SVD | No | No | Yes | |
| chinese_union_trad | Chinese | Chinese Union (Traditional) | Chinese Union (Trad) | No | Yes | Yes | |
| kjv | English | Authorized King James Version | KJV | 1611 / 1769 | No | No | Yes |
| bishops | English | Bishops Bible | Bishops | 1568 | No | No | Yes |
| coverdale | English | Coverdale Bible | Coverdale | 1535 | No | No | Yes |
| geneva | English | Geneva Bible | Geneva | 1587 | No | No | Yes |
| kjv_strongs | English | KJV with Strongs | KJV Strongs | 1611 / 1769 | No | No | Yes |
| test_bible_20220209071953 | English | Test Bible 2022-02-09 07:19:53 | Test 071953 | 2022 | No | No | Yes |
| test_bible_20220209073801 | English | Test Bible 2022-02-09 07:38:01 | Test 073801 | 2022 | No | No | Yes |
| test_bible_20220209074240 | English | Test Bible 2022-02-09 07:42:40 | Test 074240 | 2022 | No | No | Yes |
| tyndale | English | Tyndale Bible | Tyndale | No | No | Yes | |
| web | English | World English Bible | WEB | 2006 | No | Yes | Yes |
| martin | French | Martin | Martin | 1744 | No | No | Yes |
| abt | Galician | Ang Bagong Testamento (Filipino) | ABT | No | No | Yes | |
| luther | German | Luther Bible | Luther | 1545 | No | No | Yes |
| tr | Greek | Textus Receptus NT | TR | 1550 / 1884 | No | No | Yes |
| trparsed | Greek | Textus Receptus Parsed NT | TR Parsed | 1550 / 1884 | No | No | Yes |
| wlc | Hebrew | WLC | rm | No | Yes | Yes | |
| karoli | Hungarian | Karoli | Karoli | No | No | Yes | |
| diodati | Italian | Diodati | Diodati | 1649 | No | No | Yes |
| korean | Korean | Korean | Korean | No | Yes | Yes | |
| lv_gluck_8 | Latvian | Glück 8th edition | Glück 8th | No | No | Yes | |
| lvgluck8_labots_v5 | Latvian | LvGluck8 Latvian | LvGluck8_labots_v5 | No | No | Yes | |
| opt | Persian | Old Persian Translation | OPT | 1895 | No | No | Yes |
| synodal | Russian | Synodal | Synodal | 1876 | No | No | Yes |
| rv_1858 | Spanish | Reina Valera 1858 NT | RV 1858 | 1858 | No | No | Yes |
| rvg | Spanish | Reina Valera Gómez | RVG | 2010 | Yes | No | Yes |
| thaikjv | Thai | Thai KJV | Thaikjv | No | No | Yes | |
| Action: | Query |
| URL: | https://www.dev.api.biblesupersearch.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 Number | Integer | 1 | For search results, the number of the page to show. Currently, only searches support pagination. See details below |
| page_limit | Results per Page | Integer | 30 | Number of verses to display per page. |
| 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. |
| parallel_search_error_suppress | Parallel Search Error Surpress | Boolean | false | When true, the "verses from this Bible have been included for comparison" errors won't show. |
| cross_references | Cross References | Boolean | false | When true, the query response includes a top-level cross_references array in metadata. Entries are grouped by each returned source verse and include a cross_references child list of destination references. This list is global and is not tied to any specific Bible version. |
| 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.
"cross_references" : {
45_3_16: {
"from_book":43,
"from_chapter":3,
"from_verse":16,
"cross_references":[
{
"to_book":45,
"to_chapter_start":10,
"to_verse_start":9,
"to_chapter_end":10,
"to_verse_end":10,
"votes":434
},
{
"to_book":62,
"to_chapter_start":4,
"to_verse_start":9,
"to_chapter_end":4,
"to_verse_end":10,
"votes":263
}
...
]
}
],
"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
}
]
}
cross_references=true):
cross_references flag adds a top-level metadata array named cross_references.
Each item is grouped by source verse for each versereturned by the query and contains all destination references for that source verse.
This structure is global across the response and is not split by Bible module.
{
"cross_references": {
"43_3_16": {
"from_book":43, // Source verse book_id
"from_chapter":3, // Source verse chapter
"from_verse":16, // Source verse verse
"cross_references":[
{
"to_book":45, // Destination book_id
"to_chapter_start":10, // Destination start chapter
"to_verse_start":9, // Destination start verse
"to_chapter_end":10, // Destination end chapter
"to_verse_end":10, // Destination end verse
"votes":434 // Relative rank / vote count
}
]
}
}
}
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: | https://www.dev.api.biblesupersearch.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": "6.2.2",
"environment": "dev",
}
}
| Action: | Bibles |
| URL: | https://www.dev.api.biblesupersearch.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: | https://www.dev.api.biblesupersearch.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 Definitions |
| URL: | https://www.dev.api.biblesupersearch.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: | https://www.dev.api.biblesupersearch.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": "6.2.2",
"environment": "dev",
}
}
| Action: | Bible Download |
| URL: | https://www.dev.api.biblesupersearch.com/api/download |
| Description: | Returns the given Bible module(s) as a file download, rendered into the selected format |
| Action Parameters | ||||
|---|---|---|---|---|
| Parameter | Name | Type | Default | Description |
| bible | Bibles | String - multiple | (none) | (required) MODULE of the Bible(s) to download. Can be a string, array or JSON-encoded array. Set to ALL to get all downloadable Bibles |
| format | Format | String - multiple | (none) | (required) Format of the Bibles to download. Can be a string, array or JSON-encoded array. See list of options below. |
| zip | ZIP | Boolean | FALSE | If specified, forces a ZIP file download when one Bible or format is selected. Note: Selecting multiple Bibles or formats automatially returns a ZIP file, and this parameter is ignored |
| Ready-to-print PDF files | ||
|---|---|---|
| Identifier | Name | Description |
| pdf_cpt_let | Compact Text, Letter, Words of Christ in Red | |
| pdf_cpt_a4 | Compact Text, A4, Words of Christ in Red | |
| pdf_cpt_let_ul | Compact Text, Letter, Words of Christ Underlined | Monochrome friendly. |
| pdf_cpt_a4_ul | Compact Text, A4, Words of Christ Underlined | Monochrome friendly. |
| Plain Text | ||
|---|---|---|
| Identifier | Name | Description |
| text | Plain Text | Simple, plain text format |
| mr_text | Machine-readable Plain Text | |
| Spreadsheet | Opens in MS Excel or other spreadsheet software. Both human and machine readable. | |
|---|---|---|
| Identifier | Name | Description |
| csv | CSV | Comma separated values. UTF-8 encoding. |
| xlsx | Excel | 2007-365 (.xlsx) |
| Databases | Databases and database dumps. Ready to import into your own software. | |
|---|---|---|
| Identifier | Name | Description |
| json | JSON | JavaScript Object Notation |
| sqlite3 | SQLite | SQLite 3 database |
| mysql | MySQL | MySQL Database Dump |
| biblesupersearch | Bible SuperSearch | Official Bible SuperSearch format. |