API Documentation
Free RESTful JSON API for accessing public domain Bible translations. No authentication required.
Base URL
https://dailybible.ca
1. Verse Lookup
Retrieve specific verses or entire chapters by reference.
Endpoint:
GET /api/:reference?translation=kjv
Parameters:
reference- Bible reference (e.g., "John+3:16", "Genesis+1:1-3", "Psalm+23")translation(optional) - Translation ID (default: kjv)
Examples:
GET /api/John+3:16
GET /api/Genesis+1:1-3?translation=asv
GET /api/Psalm+23?translation=darby
Response:
{
"reference": "John 3:16",
"verses": [
{
"book_id": "JHN",
"book_name": "John",
"chapter": 3,
"verse": 16,
"text": "For God so loved the world..."
}
],
"text": "For God so loved the world...",
"translation_id": "kjv",
"translation_name": "King James Version",
"translation_note": "Public Domain"
}
2. Text Search
Search for verses containing specific words or phrases.
Endpoint:
GET /api/search?q=query&translation=kjv&limit=500
Parameters:
q(required) - Search query (minimum 2 characters)translation(optional) - Translation ID (default: kjv)limit(optional) - Maximum results (1-1000, default: 500)
Examples:
GET /api/search?q=love&translation=kjv
GET /api/search?q=faith+hope&limit=20
GET /api/search?q=righteousness&translation=asv
Response:
{
"query": "love",
"translation_id": "kjv",
"translation_name": "King James Version",
"results": [
{
"reference": "John 3:16",
"book_id": "JHN",
"book_name": "John",
"chapter": 3,
"verse": 16,
"text": "For God so loved the world..."
}
],
"count": 310,
"limit": 500
}
3. List Books
Get all available books with chapter counts for a translation.
Endpoint:
GET /api/books?translation=kjv
Parameters:
translation(optional) - Translation ID (default: kjv)
Example:
GET /api/books?translation=kjv
Response:
{
"translation_id": "kjv",
"book_count": 66,
"books": [
{
"book_id": "GEN",
"book_name": "Genesis",
"chapters": 50
},
{
"book_id": "EXO",
"book_name": "Exodus",
"chapters": 40
}
// ... more books
]
}
Available Translations
kjv
King James Version
asv
American Standard Version
dra
Douay-Rheims American
darby
Darby Translation
bkr
Czech - Bible Kralická
statenvertaling
Dutch - Statenvertaling
synodal
Russian - Synodal
All translations contain complete Old and New Testaments (30,000+ verses each)
Error Responses
All errors return a JSON object with an error message.
404 - Not Found:
{
"error": "Book \"Johhn\" not found"
}
400 - Bad Request:
{
"error": "Invalid reference format. Use formats like \"John 3:16\" or \"John 3:16-18\""
}
Rate Limits & Usage
- No authentication required
- Free to use for personal and commercial projects
- Please be respectful with request volume
- All content is public domain