Bible-api API

Beginner's Pick Books / No Auth Required Beginner HTTPS CORS
Free to Use
77 B
Measured Score 0 50 100 Speed 18/30 Consistency 20/20 Security 20/20 Browser access 15/15 Transparency 4/15 TESTED 2026-08-10

Overview

Bible-api.com is a free, no-auth REST API that returns Bible verses and passages in multiple translations using a simple URL pattern. It is one of the easiest scripture APIs to use with no sign-up required.

Beginner Tip

Fetch any verse by putting the reference directly in the URL, for example https://bible-api.com/john+3:16. Add ?translation=kjv to switch versions; the default is World English Bible (WEB).

Measurement Record

What actually happened when we called this API from our own infrastructure. Every value below was recorded by the request, not copied from the provider's documentation.

Request
GET https://bible-api.com/john+3:16?translation=kjv
Result
HTTP 200 · application/json · 520 bytes
Response time
202 ms (median of 3) · fastest 201 ms
Transport
TLSv1.3 · TLS_AES_256_GCM_SHA384 · certificate issued by Let's Encrypt
Browser CORS
Allowed — Access-Control-Allow-Origin: *
Served by
nginx
Recorded
2026-08-10

Fields Returned

Top-level fields present in the response we captured, with the type and value we actually received.

Field Type Value received
reference string John 3:16
verses array [1 item]
text string For God so loved the world, that he…
translation_id string kjv
translation_name string King James Version
translation_note string Public Domain

Captured Response

Captured from a real request to https://bible-api.com/john+3:16?translation=kjv on 2026-08-10. Long arrays and nested objects are truncated to keep the shape readable.

JSON Response · Captured
{
  "reference": "John 3:16",
  "verses": [
    {
      "book_id": "JHN",
      "book_name": "John",
      "chapter": 3,
      "verse": 16,
      "text": "          For God so loved the world, that he gave his only begotten Son, that whosoever believeth in him should not perish, but have everlasting life.\n"
    }
  ],
  "text": "          For God so loved the world, that he gave his only begotten Son, that whosoever believeth in him should not perish, but have everlasting life.\n",
  "translation_id": "kjv",
  "translation_name": "King James Version",
  "translation_note": "Public Domain"
}

Field Reference

reference Human-readable verse reference string, e.g. John 3:16
verses Array of verse objects; contains one item per verse in the requested range
text Concatenated plain text of all requested verses in the chosen translation

Implementation Example

Calls a real endpoint of this API. Replace any placeholder credentials with your own key.

Request
const url = "https://bible-api.com/john+3:16?translation=kjv";
const response = await fetch(url);
if (!response.ok) throw new Error(`Request failed: ${response.status}`);
const data = await response.json();
console.log(data);

What Can You Build?

Note: These code examples are AI-generated and unverified. Always refer to the official API documentation for accurate usage.

How This API Fails

We deliberately sent this API a broken request and recorded exactly what came back on 2026-08-10. Knowing the shape of an error before you hit it makes error handling much easier to write.

HTTP 404 Requesting a path that does not exist text/html

Returned an HTML error page rather than JSON — worth knowing if your client assumes every response can be parsed as JSON.

HTTP 404 Sending an invalid value for "translation" text/html

Returned an HTML error page rather than JSON — worth knowing if your client assumes every response can be parsed as JSON.

Common Errors & Troubleshooting

Generated guidance based on this API's documentation, not observed by us. Treat it as a starting point and check against the provider's own error reference.

Empty or null verse text Requested translation code does not exist or is not supported
Supported values include web, kjv, bbe, darby, asv; check bible-api.com for the full list
404 on multi-verse range Using a comma instead of a hyphen for verse ranges
Use a hyphen for ranges: john+3:16-18, not john+3:16,18
Garbled characters in response Not handling UTF-8 encoding for non-English translations
Ensure your HTTP client handles UTF-8; in fetch() the response is already decoded automatically

Measured Score Breakdown

Live HTTP request to the API endpoint

Speed 18/30
Consistency 20/20
Security 20/20
Browser access 15/15
Transparency 4/15
Endpoint Response Time 202ms

Fully tested on Aug 10, 2026

Technical Specifications

Auth No Auth
HTTPS REQUIRED
CORS YES
Category Books
Difficulty Beginner
Endpoint last called: 2026-08-10

Related Tags

Similar APIs

View All →