Chapters
Get full chapters from the Bible.
Get a Chapter
Retrieve all verses in a specific chapter.
GET /v1/chapters/:idParameters
| Parameter | Type | Description |
|---|---|---|
id | string | Chapter ID in format book_chapter (e.g., "gen_1", "joh_3") |
Query Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
version | string | No | Version ID (defaults to "rvr60") |
Response
json
{
"success": true,
"data": {
"chapter": {
"id": "joh_3",
"book": {
"id": "joh",
"name": "Juan",
"abbreviation": "JN"
},
"number": 3,
"verse_count": 36,
"verses": [
{
"number": 1,
"text": "Había un hombre de los fariseos que se llamaba Nicodemo..."
},
{
"number": 2,
"text": "Este vino a Jesús de noche, y le dijo..."
}
]
},
"version": {
"id": "rvr60",
"name": "Reina-Valera 1960"
}
}
}Example
bash
curl "https://api.apibiblia.com/v1/chapters/joh_3?version=rvr60" \
-H "X-API-Key: YOUR_API_KEY"Chapter ID Format
Chapter IDs follow the pattern {book_id}_{chapter_number}:
| Book | Chapter | ID |
|---|---|---|
| Genesis 1 | gen_1 | |
| Psalm 23 | psa_23 | |
| John 3 | joh_3 | |
| Revelation 21 | rev_21 |
Navigation
The response includes navigation helpers:
json
{
"data": {
"chapter": {
"id": "joh_3",
"number": 3,
"previous": {
"id": "joh_2",
"number": 2
},
"next": {
"id": "joh_4",
"number": 4
}
}
}
}TIP
Use the navigation fields to build "Previous/Next Chapter" buttons in your application.