Skip to content
NEWMarketplace and the trig8n Agent: sell what you build, and get plans and changes that are tested before you see them. See what is new

Library / Building Blocks & Utilities

Building Blocks & Utilities

Query Bible Verses from the getBible API

When called by another workflow, it sends a verse query to the getBible API and returns the mapped result.

What it does

# GetBible Query Workflow Documentation ## Overview The GetBibleQuery workflow is a modular and self-standing workflow designed to retrieve scriptures based on provided references. It serves as an intermediary layer that takes in a structured JSON object, extracts the references, and returns the corresponding scriptures in the same format as if they were retrieved directly from the API. This workflow is highly adaptable and can be integrated into various projects where scriptural references need to be dynamically fetched. ## JSON Input Structure The workflow expects a JSON object with the following parameters: - References should include the book name, chapter, and verse(s). - Multiple verses can be separated by commas (e.g., John 3:16,18). - Ranges can be specified using a dash (e.g., John 3:16-18). - The Bible translation to be used. - Specifies the API version (v2) ### Example JSON Input: json { "references": [ "1 John 3:16", "Jn 3:16", "James 3:16", "Rom 3:16" ], "translation": "kjv", "version": "v2" } ### API Response Format The response returned by this workflow follows the same API format as if the request were made directly to the source API. This ensures compatibility with projects that rely on standard API responses. Example JSON Response (in this workflow): json { "result": { "kjv_62_3": { "translation": "King James Version", "abbreviation": "kjv", "lang": "en", "language": "English", "direction": "LTR", "encoding": "UTF-8", "book_nr": 62, "book_name": "1 John", "chapter": 3, "name": "1 John 3", "ref": [ "1 John 3:16" ], "verses": [ { "chapter": 3, "verse": 16, "name": "1 John 3:16", "text": "Hereby perceive we the love of God, because he laid down his life for us: and we ought to lay down our lives for the brethren." } ] } } } ## Integration and Usage The GetBible Query workflow is designed for easy integration into any project that requires scripture retrieval. Simply pass the appropriate JSON object as input, and it will return the requested scripture passages. ## Support For any questions or additional assistance, please visit our Support desk or API documentation

The steps

  1. Entry
  2. ModelJson
  3. API Query to GetBible
  4. Map API Respons to Result

Similar automations