Bible API - Dart/Flutter Client
Bible retrieves scripture passages and verses across nine public-domain translations, including the modern Berean Standard Bible (BSB), KJV, ASV, YLT and Darby. Look up a book, chapter and verse range or a written reference like Jn 3:16-18, search for words and phrases, get a random verse or the verse of the day, and step to the previous or next passage.
This is the Dart/Flutter client for the Bible API.
Installation
Add this to your pubspec.yaml:
dependencies:
apiverve_bible: ^1.2.5
Then run:
dart pub get
# or for Flutter
flutter pub get
Usage
import 'package:apiverve_bible/apiverve_bible.dart';
void main() async {
final client = BibleClient('YOUR_API_KEY');
try {
final response = await client.execute({
'book': 'Genesis',
'version': 'KJV',
'chapter': 5,
'verse': 17,
'verseEnd': 18
});
print('Status: ${response.status}');
print('Data: ${response.data}');
} catch (e) {
print('Error: $e');
}
}
Response
{
"status": "ok",
"error": null,
"data": {
"text": "But with thee will I establish my covenant; and thou shalt come into the ark, thou, and thy sons, and thy wife, and thy sons’ wives with thee. And of every living thing of all flesh, two of every sort shalt thou bring into the ark, to keep them alive with thee; they shall be male and female.",
"book": "Genesis",
"abbr": "Ge",
"chapter": 6,
"verses": [
18,
19
],
"version": "KJV",
"testament": "Old Testament",
"bookNumber": 1,
"totalChapters": 50,
"totalVersesInChapter": 22,
"wordCount": 58,
"reference": "Genesis 6:18-19",
"passage": [
{
"chapter": 6,
"verse": 18,
"text": "But with thee will I establish my covenant; and thou shalt come into the ark, thou, and thy sons, and thy wife, and thy sons’ wives with thee."
},
{
"chapter": 6,
"verse": 19,
"text": "And of every living thing of all flesh, two of every sort shalt thou bring into the ark, to keep them alive with thee; they shall be male and female."
}
],
"previous": {
"reference": "Genesis 6:17",
"book": "Genesis",
"chapter": 6,
"verse": 17
},
"next": {
"reference": "Genesis 6:20",
"book": "Genesis",
"chapter": 6,
"verse": 20
}
}
}
API Reference
- API Home: Bible API
- Documentation: docs.apiverve.com/ref/bible
Authentication
All requests require an API key. Get yours at apiverve.com.
License
MIT License - see LICENSE for details.
Built with Dart for APIVerve
Libraries
- apiverve_bible
- Bible API client for Dart/Flutter