Rob Keplin - Software Engineer

# The Holy Bible – Open Source REST API

Category: Projects

I have developed a REST API for reading and searching across The Holy Bible. It is Open Source and available on GitHub.

The project is written in GO. And it is dockerized. The legacy PHP version can be found here, however, there is no search capability.

A live demo can be viewed here. I am hopeful to keep it hosted, and will scale accordingly, as long as I am financially able to do so.

If you’re working on a cool project and want to consume this API, please feel free to let me know!

Available Translations

  • American Standard-ASV1901 (ASV)
  • Bible in Basic English (BBE)
  • Darby English Bible (DARBY)
  • King James Version (KJV)
  • World English Bible (WEB)
  • Young’s Literal Translation (YLT)
  • English Standard Version (ESV)
  • New International Version (NIV)
  • New Living Translation (NLT)

Example In Action

I have made a web based search and cross reference tool, found here, that consumes this API.

API Specifications

Note: In order to get content for a specific translation, supply translation as a Query Parameter. For example, https://bible-go-api.rkeplin.com/v1/books/1/chapters/1/1001002?translation=ASV

List of Available Translations

GET https://bible-go-api.rkeplin.com/v1/translations
GET https://bible-go-api.rkeplin.com/v1/translations/[TranslationID]

List of Genres

GET https://bible-go-api.rkeplin.com/v1/genres
GET https://bible-go-api.rkeplin.com/v1/genres/[GenreID]

Content

GET https://bible-go-api.rkeplin.com/v1/books
GET https://bible-go-api.rkeplin.com/v1/books/[BookID]
GET https://bible-go-api.rkeplin.com/v1/books/[BookID]/chapters/[ChapterID]
GET https://bible-go-api.rkeplin.com/v1/books/[BookID]/chapters/[ChapterID]
GET https://bible-go-api.rkeplin.com/v1/books/[BookID]/chapters/[ChapterID]/[VerseID]

Cross References

GET https://bible-go-api.rkeplin.com/v1/verse/[VerseID]/relations

Search

GET https://bible-go-api.rkeplin.com/v1/search?query=[SearchTerm]

Docker Images

12 Comments

  • David Daniel

    January 3, 2021 at 7:24 pm

    Hi Kelin,

    Thanks for the API endpoints. Been hunting the web searching for a Rest Resource that does not have a limit on the number of requests/day and at the same time support multiple translations. You project helps.

    Thanks a ton.

  • Andry

    August 28, 2021 at 2:52 pm

    Really love this API! finally found the NIV version,which is pretty rare, I hope you will maintain it!

    • Rob

      January 18, 2022 at 8:27 pm

      Thanks! Glad you found it useful. I hope to maintain it as long as I can.

  • Eric

    January 7, 2022 at 1:52 am

    I’m having trouble getting this endpoint to work:
    GET https://bible-go-api.rkeplin.com/v1/books/%5BBookID%5D/chapters/%5BChapterID%5D/%5BVerseID%5D

    This works in the browser:
    https://bible-go-api.rkeplin.com/v1/books/1/chapters/1

    response:
    [{“id”:1001001,”book”:{“id”:1,”name”:”Genesis”,”testament”:”OT”},”chapterId”:1,”verseId”:1,”verse”:”In the beginning God created the heaven and the earth.”},

    but this doesn’t work:
    https://bible-go-api.rkeplin.com/v1/books/1/chapters/1/1

    I get this JSON response:
    {“code”:404,”status”:”Not Found”,”message”:”Item was not found.”}

  • mureithi

    January 12, 2022 at 3:37 pm

    Hey can we get a random verse of the day

    • Rob

      January 18, 2022 at 8:29 pm

      Sorry, no – not with the current API.

  • Tyler

    January 25, 2022 at 5:25 pm

    Thanks for your work friend! May God’s blessings be upon you and your work.

  • Robert

    February 16, 2022 at 8:22 pm

    is there no version without the markdown

    • Rob

      February 18, 2022 at 2:46 pm

      None of the versions return text with markdown

  • Chris

    March 21, 2022 at 5:11 pm

    for the Rest API is it GET record or Get collection?
    I get the following error.

    Error: TypeError: Failed to fetch. Does the server allow CORS?status: undefined

    Resource settings for Get collection (GET)
    ——————-
    Resource URL: https://bible-go-api.rkeplin.com
    Relative path: /v1/translations

  • Nathan Worrell

    December 2, 2022 at 6:32 pm

    Hey Rob, thank you for providing this awesome resource. You rock! God bless

Leave a Reply

Your email address will not be published. Required fields are marked *

*

*

*