A future based dart package for the NLT (New Living Translation) API.

Overview

NLT API Bible for Dart

Dart CI

A future based dart package for the NLT API from Tyndale which can be used to fetch NLT and KJV bible passages.

This package requires an API key to fetch bible passages. You can secure an API key by creating a new application on the NLT API website.

Features

  • Get passages from NLT Bible API.
  • Perform search with passages and short context paragraphs for a given search query terms.
  • Retrieve a parsed list of references for the given reference string. (still in development)
  • Retrieve a list of reading plans supported by the API. (still in development)
  • Retrieve the text for a given date in the given reading plan. (still in development)

Getting started

  • Secure your API key at the NLT API.
  • Import the package.
  • To fetch passages, create an instance of the Api class and provide the NLT API key to the constructor.
  • Call the passages method to retrieve the Passages object and access the data property.

Usage

Basic passages query:

import 'package:nlt_bible/nlt_bible.dart';

void main () async {
  final apiKey = 'your-api-key';

  final api = Api(apiKey);
  final passages = await api.passages('John 3:16');

  // print the data
  print(passages.data);
}

Data content:

<!DOCTYPE html>
<html lang="en-US">

<head>
    <title>NLT API</title>
    <link rel="stylesheet" href="https://api.nlt.to/content/nlt-api-css?vers=1.04" />
</head>

<body>
<div id="bibletext" class=" NLT NLT BibleText section">
    <section>
        <h2 class="bk_ch_vs_header">John 3:16-18, NLT</h2>
        <verse_export orig="john_3_16" bk="john" ch="3" vn="16">
            <p class="body">
            <span class="vn">16</span><span class="red">“For this is how God loved the world: He gave<a class="a-tn">*</a><span class="tn"><span class="tn-ref">3:16</span>
					Or <em>For God loved the world so much that he gave.</em></span> his one and only Son, so that
					everyone who believes in him will not perish but have eternal life.</span>
        </verse_export>
        <verse_export orig="john_3_17" bk="john" ch="3" vn="17">
            <span class="vn">17</span><span class="red">God sent his Son into the world not to judge the world, but to save the world through him.</span>
            <p>
        </verse_export>
        <verse_export orig="john_3_18" bk="john" ch="3" vn="18">
            <p class="body">
            <span class="vn">18</span><span class="red">“There is no judgment against anyone who believes in him. But anyone who does not believe in him has already been judged for not believing in God’s one and only Son.</span>
        </verse_export>
        <h2 class="bk_ch_vs_header">John 1:1, NLT</h2>
    </section>
    <section>
        <verse_export orig="john_1_1" bk="john" ch="1" vn="1">
            <p class="chapter-number"><span class="cw">John</span> <span class="cw_ch">1</span></p>
            <p class="subhead">Prologue: Christ, the Eternal Word</p>
            <p class="poet1-vn-ch-hd"><span class="vn">1</span>In the beginning the Word already existed.</p>
            <p class="poet2">The Word was with God,</p>
            <p class="poet2">and the Word was God.</p>
        </verse_export>
    </section>
</div>
</body>

</html>
You might also like...

A dynamic, Stream-based API for job scheduling in Dart, capable of processing on different triggers.

Pendulum A library for task-scheduling in Dart. Exports a Task class that returns Streams, with a number of versatile options to customize how Tasks a

Aug 22, 2020

A package help you to make api call and handle error faster, also you can check for internet before call api.

http_solver ##not for production use, only for learning purpose. A package help you to make api call and handle error faster, also you can check for i

Jun 18, 2020

A new Flutter package for navigations bar.

A new Flutter package for navigations bar.

flutter_navigations_bar A new Flutter package for navigations bar. Getting Started Bouncing Circle navigation bar properties : final Function(int) onc

Dec 15, 2022

A new Flutter package customtoggleswitch is used to toggle a setting between on/off which is true/false respectively Created by suryadevsingh.

A new Flutter package customtoggleswitch is used to toggle a setting between on/off which is true/false respectively Created by suryadevsingh.

CustomToggleSwitch A new Flutter package customtoggleswitch is used to toggle a setting between on/off which is true/false respectively Created by sur

Jun 9, 2020

A new Flutter package for circle list.

A new Flutter package for circle list.

circle_list A new Flutter package for Circle List. Add dependency dependencies: circle_list: ^1.0.2 Super simple to use import 'package:flutter/mat

Dec 15, 2022

A new Flutter package which helps you to implement Ticket Widget in your app.

A new Flutter package which helps you to implement Ticket Widget in your app.

flutter_ticket_widget A new Flutter package which helps you to implement Ticket Widget in your app. The source code is 100% Dart, and everything resid

Dec 22, 2022

BubbleShowcase is a small but power flutter package that allows you to highlight specific parts of your app to explain them to the user or to showcase your app new features.

BubbleShowcase BubbleShowcase is a small but powerful flutter package that allows you to highlight specific parts of your app (to explain them to the

Oct 26, 2022

A new flutter package project which contains lots of beautiful alert dialog that will help you lot to create beautiful awesome alert box very quickly and easily.

A new flutter package project which contains lots of beautiful alert dialog that will help you lot to create beautiful awesome alert box very quickly and easily.

A new flutter package project which contains lots of beautiful alert dialog that will help you lot to create beautiful awesome alert box very quickly and easily.

Jan 8, 2022
Releases(0.4.1a)
  • 0.4.1a(Sep 18, 2022)

    What's Changed

    • 0.4.1 by @arielmagbanua in https://github.com/arielmagbanua/nlt_bible/pull/13

    Full Changelog: https://github.com/arielmagbanua/nlt_bible/compare/0.4.1...0.4.1a

    Source code(tar.gz)
    Source code(zip)
  • 0.4.1(Sep 18, 2022)

    What's Changed

    • 0.4.1 by @arielmagbanua in https://github.com/arielmagbanua/nlt_bible/pull/12

    Full Changelog: https://github.com/arielmagbanua/nlt_bible/compare/0.4.0...0.4.1

    Source code(tar.gz)
    Source code(zip)
  • 0.4.0(Sep 17, 2022)

    What's Changed

    • 0.4.0 by @arielmagbanua in https://github.com/arielmagbanua/nlt_bible/pull/11

    Full Changelog: https://github.com/arielmagbanua/nlt_bible/compare/0.3.0...0.4.0

    Source code(tar.gz)
    Source code(zip)
  • 0.3.0(Sep 10, 2022)

    What's Changed

    • Fixed Missing API Key and Source Code Formatting Improvements. by @arielmagbanua in https://github.com/arielmagbanua/nlt_bible/pull/10

    Full Changelog: https://github.com/arielmagbanua/nlt_bible/compare/0.2.0...0.3.0

    Source code(tar.gz)
    Source code(zip)
  • 0.2.0(Sep 3, 2022)

    What's Changed

    • Added Retrieval of Reading Plans by @arielmagbanua in https://github.com/arielmagbanua/nlt_bible/pull/9

    Full Changelog: https://github.com/arielmagbanua/nlt_bible/compare/0.1.0...0.2.0

    Source code(tar.gz)
    Source code(zip)
  • 0.1.0(Aug 26, 2022)

    What's Changed

    • Added parsing of book chapters and verses, by @arielmagbanua in https://github.com/arielmagbanua/nlt_bible/pull/8

    Full Changelog: https://github.com/arielmagbanua/nlt_bible/compare/0.0.1...0.1.0

    Source code(tar.gz)
    Source code(zip)
  • 0.0.1(Aug 13, 2022)

    What's Changed

    • Initial Project Setup by @arielmagbanua in https://github.com/arielmagbanua/nlt_bible/pull/1
    • Data Resources by @arielmagbanua in https://github.com/arielmagbanua/nlt_bible/pull/2
    • Added Entities and Respositories by @arielmagbanua in https://github.com/arielmagbanua/nlt_bible/pull/3
    • Added the API class wrapper. by @arielmagbanua in https://github.com/arielmagbanua/nlt_bible/pull/4
    • Example Project by @arielmagbanua in https://github.com/arielmagbanua/nlt_bible/pull/5
    • Rebuilt the project. by @arielmagbanua in https://github.com/arielmagbanua/nlt_bible/pull/6
    • 0.0.1 by @arielmagbanua in https://github.com/arielmagbanua/nlt_bible/pull/7

    New Contributors

    • @arielmagbanua made their first contribution in https://github.com/arielmagbanua/nlt_bible/pull/1

    Full Changelog: https://github.com/arielmagbanua/nlt_bible/commits/0.0.1

    Source code(tar.gz)
    Source code(zip)
Owner
Ariel Magbanua
Software engineer by day, writer by night.
Ariel Magbanua
Biyi - a convenient translation and dictionary app written in Flutter

biyi_app Biyi is a convenient translation and dictionary app written in Flutter.

biyidev 892 Dec 28, 2022
Flutter dynamically load translation in your app.

Flutter dynamically load translation in your app.

null 1 Apr 4, 2022
A program for Mac, Windows and Linux to manage multiple translation files at once

A program for Mac, Windows and Linux to manage multiple translation files at once. Easy to use UI, multithreaded for optimization and Google Translate natively integrated. NB: At the moment it doesn't support nested translation keys.

Jesper Paulsen 4 Aug 8, 2022
Fly towards a more connected future with Wings HQ :D

Flying towards a more connected future For Project Presentation(website) Click here For Project Demo Video(youtube) : Click Here ?? CONTENT: - - - - -

Samrat Mukherjee 4 Oct 3, 2021
A basic login/register screen that can be used as a template for future Flutter projects.

A Flutter / Firebase login screen A simple flutter/dart based login-screen that connects with Firebase Auth to enable users to sign-in/up with Email o

Kim Andre Langholz 142 Dec 20, 2022
Makes it possible to safely execute and retry a Future inside a StatelessWidget

futuristic Makes it possible to safely execute and retry a Future inside a StatelessWidget. See the Mainstream package for a similar API for working w

Martin Rybak 28 Sep 15, 2022
Bhagavad Gita app using flutter & Bhagavad-Gita-API is A lightweight Node.js based Bhagavad Gita API [An open source rest api on indian Vedic Scripture Shrimad Bhagavad Gita].

Gita Bhagavad Gita flutter app. Download App - Playstore Web Application About Bhagavad Gita app using flutter & Bhagavad-Gita-API is A lightweight No

Ravi Kovind 7 Apr 5, 2022
Api Call Check flutter - A new Flutter project that demonstrates api calling and displays them in a scrollable list

api_fetch A new Flutter project that demonstrates api calling and displays them

Babish Shrestha 0 Jan 2, 2022
A widget based on Flutter's new Interactive Viewer that makes picture pinch zoom, and return to its initial size and position when released.

pinch_zoom A widget based on Flutter's new Interactive Viewer that makes picture pinch zoom, and return to its initial size and position when released

Teun Kortekaas 36 Dec 30, 2022
Beautiful Weather App using API with support for dark mode. Created by Jakub Sobański ( API ) and Martin Gogołowicz (UI, API help)

Flutter Weather App using API with darkmode support Flutter 2.8.1 Null Safety Beautiful Weather App using https://github.com/MonsieurZbanowanYY/Weathe

Jakub Sobański 5 Nov 29, 2022