getBible

commentaries.getbible.net

A getBible static API: every resource is a file served exactly as published. public, metered · tokens unlimited

Endpoints

Every path starts with a version segment. Each endpoint is an independent tree with its own documentation page, changing on its own schedule.

VersionBase URLDocumentationOpenAPI
v1https://commentaries.getbible.net/v1//v1/openapi.json

Machine-readable index of the endpoints and their OpenAPI documents: versions.json.

How to call it

Plain HTTPS GET requests, from any origin. Responses are JSON, plus .sha and .txt files as plain text. Request bodies are not used. The only supported query parameter is the optional _ URL change token described below.

curl https://commentaries.getbible.net/v1/path/to/document.json

Optional URL change token

Append ?_=VALUE to give a browser a distinct cache key. The value must contain 1–128 ASCII letters, digits, underscores or hyphens ([A-Za-z0-9_-]{1,128}); timestamps and checksums are supported. Use only one _ parameter, with no other parameters or percent encoding. Empty values, duplicate keys, bare query tokens and other parameter names return 400 with Cache-Control: no-store.

curl 'https://commentaries.getbible.net/v1/path/to/document.json?_=9f4c2a17'

The origin validates and otherwise ignores the value, serving the same file with the same validators, cache lifetime and access requirements. Reuse the value to keep the URL stable; change it to use a different URL. This does not purge old cached URLs or select a content version. Any CDN cache must retain the complete query string to distinguish those URLs.

Access

This endpoint is public and metered. Anonymous callers share a budget per client address; callers with a bearer token are not limited at all.

Budget (per address)Value
Sustained rate50 requests per second, bursts up to 250
Per hourabout 100000 requests
Per dayabout 1000000 requests
Concurrent connections100

Budgets are enforced as token buckets, so steady traffic under the quota is never touched and bursts above it are slowed with a 429 rather than cut off.

Using a token

Send it as a bearer credential. Tokens never go in the URL.

curl -H "Authorization: Bearer gb..." https://commentaries.getbible.net/v1/path/to/document.json

Tokens are issued to applications and partners by the getBible team; ask through getBible.net.

Errors

Every error is an RFC 9457 problem document with the media type application/problem+json:

{"type":"https://getbible.net/problems/not-found","title":"Not Found","status":404,"code":"not_found","detail":"No such resource on this API. ...","instance":"urn:request:..."}
StatusCodeMeaning
400bad_requestAn unsupported query string, invalid _ value or malformed request was sent.
401unauthorizedA bearer token is required and was missing or invalid.
404not_foundNo such document in this version.
405method_not_allowedOnly GET, HEAD and OPTIONS are accepted.
429rate_limitedThe public budget for your address is used up; a Retry-After header is included.
503unavailableTemporary outage; retry after a moment.