eBibleicious Javascript API
eBibleicious lets developers automatically link or include the actual text for all Bible verse references on their webpages. It is
as simple as including one javascript file in the header. You simply reference a verse or passage and eBibleicious takes care of the rest!
In order to use any of the eBible API's, you must first sign up for a Free API Key
Getting Started
The most simple use of eBibleicious looks like this:
<html>
<head>
<script type="text/javascript" src="http://ebible.com/api/ebibleicious?key=EBIBLE_DEMO&v=1.0"></script>
<link href='http://ebible.com/stylesheets/ebSnippet.css' media='screen' rel='Stylesheet' type='text/css' />
</head>
<body>
...
</body>
</html>
You can add optional parameters to your script src as follows:
- mode
- mouseover (default) - displays the passage in a javascript popup when moused over
- snippet - dynamically replaces all passage references with the actual passage text as a snippet
- link - simply hyperlinks all passage references to eBible.com "Quick View" page
- study - simply hyperlinks all passage references directly to eBible.com "Study Browser"
- translation
- NIV (default)
- NASB
- MSG
- KJV
- NKJV
- ESV
- HCSB
- NCV
- SpaRV
- ItalRV
- new_window (This option only applies for link and study modes)
- false (default) - opens link in new window
- true - opens link in current window
- related_topics (This option only applies for mouseover and snippet modes)
- 0 returns no related topics
- 1-10 (default=3)
- element Narrow the search for passage references to this element. (document.body is default)
Simple Demo
Click here to see a simple demo page with eBibleicious in mouseover mode (our personal favorite). You can view the page source to see how simple it is - just one script tag in the header!
Interactive Demo
Use the control panel below to dynamically change the mode and translation for all the passage references in the sample blog post below. The
script src tag below is also dynamically updated so you can simply copy and paste into your own webpage or template.