Bible API - Dart/Flutter Client
Bible is a simple tool for getting bible verses. Simply provide the book, chapter, and verse, and the API will return the verse.
This is the Dart/Flutter client for the Bible API.
Installation
Add this to your pubspec.yaml:
dependencies:
apiverve_bible: ^1.1.14
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',
'chapter': 5,
'verse': 17
});
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.",
"book": "Genesis",
"abbr": "gn",
"chapter": 5,
"verses": [
17
],
"version": "KJV"
}
}
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