Product
Why we built the Scriptures API, and what it taught us about public APIs
33 translations, 23 languages and a hand-reviewed key process. The decisions behind our public Bible API, and advice for any team shipping an API.
Earlier this year we opened the public beta of the Scriptures API, a REST API for Bible text. It serves 33 translations across 23 languages today, and we are working towards more than 150. This post explains why a software studio in Nairobi built it, the decisions that shaped it, and what we would tell any team building a public API.
Why we built it
The idea started with our own work. We had built Walk in the Word, a reading app that takes people from Genesis to Revelation together. Around it we kept seeing the same kinds of requests: devotional apps, sermon tools, SMS verse services, church websites with a verse of the day.
Each time, getting reliable Scripture text into the product was more annoying than it should have been. Existing APIs were expensive at small scale, thin on African languages, or had terms that made a church app awkward to ship. We kept writing the same import scripts and the same verse parsers.
At some point it made more sense to build the thing once, properly, and let other developers use it too.
Who it is for
We had three groups in mind:
- Developers building apps, bots and websites who want clean JSON and good docs.
- Churches and ministries that want Scripture on screens, in apps or over SMS without a large budget.
- Businesses such as publishers, media houses and education companies that need text in more than one language.
That mix shaped the product. It has to be easy for a weekend developer and dependable enough for an organisation.
Decisions that shaped the API
References are the core data model
Everything in a Scripture API depends on references: a book, a chapter, a verse, and ranges across them. People write references in many ways, such as "Jn 3:16", "John 3 16" or "1 Cor 13:4-7", and translations do not always number verses the same way.
We spent more time on the reference parser and the canonical book codes than on any endpoint. Every passage is stored against a stable identifier, so the same verse in two translations lines up. That is what makes parallel translations work: you ask for a passage in several versions at once and get them back side by side.
Search had to be fast in every language
Full-text search runs on PostgreSQL. Search in English is a solved problem. Search across African and other non-English languages needs care with tokenising, accents and stemming, which the defaults often get wrong. We tuned this per language rather than assuming English rules apply everywhere.
Original-language text
Pastors, students and translators asked for Hebrew and Greek, so the API serves original-language text alongside translations. Right-to-left text, combining characters and word-level data all needed handling that a typical English API never has to think about.
Licensing comes before features
This is the part people underestimate. Many Bible translations are copyrighted, and publishers are right to protect them. We only serve texts we have the right to serve, and the API is honest about which texts can be used for what. Public domain and openly licensed translations come first. Others get added as agreements allow.
If you are building any content API, sort out rights before you write code. It decides what you can launch.
Human-reviewed API keys
Most APIs hand out keys automatically. We chose to review each key request by hand during the beta. That sounds old-fashioned, and it is slower, but it lets us:
- understand who is using the API and for what,
- catch abuse before it starts,
- talk to developers early and fix what is confusing them.
When the volume of requests makes this impractical, we will automate it. For now, talking to every early user has improved the product more than any analytics dashboard would.
Documentation is part of the product
The API ships with full docs and an interactive explorer where you can try requests in the browser before writing a line of code. Every endpoint has an example request, an example response and a plain explanation of each field.
A rule we hold ourselves to: if a developer emails us a question, the answer goes into the docs that day. The second person should never have to ask.
What we would tell anyone building a public API
- 1Design the identifiers first. URLs, IDs and references are very hard to change once people depend on them.
- 2Version from day one. Put a version in the path, and only make breaking changes in a new version.
- 3Return errors people can act on. "Invalid reference: 'Jhn 3:16'. Did you mean 'John 3:16'?" is far more useful than a bare 400.
- 4Rate-limit politely. Send headers that tell clients how many requests they have left and when the limit resets.
- 5Cache aggressively. Scripture text does not change, so responses can be cached hard at the edge. That keeps the API fast and cheap to run.
- 6Ship the explorer early. It is the best sales tool and the best debugging tool you will build.
What is next
The next big job is more translations, with African languages at the front of the queue. If you want a particular translation or feature, request a key and tell us what you are building.
And if your organisation needs a public API of its own, for data, content or payments, it is the same kind of work we do in our API development service.
Have a project like this in mind?
Elom Labs is a Nairobi software studio. We have delivered 68 projects since 2023, and first-time clients get 20% off their first project.