Add Bible verses to a church app or website
Bible Verse API was built to serve a church app with thousands of users. This guide covers the common features (verse of the day, sermon notes, reading plans) and how to set up keys safely for websites and for mobile apps.
Shows both kinds of key: secret on servers, publishable on websites.
What you can build
Verse of the day on your home page or app launch screen. Sermon notes where references like “Rom 8:28” open the passage. Reading plans that show each day's chapters. Small-group study sheets with several passages at once (separate references with semicolons).
Which key to use
Church website: a publishable key (bva_pk_) works straight from the page, but only on the web addresses you list on the key.
Mobile app (Flutter, React Native, Swift, Kotlin): call the API from your own server with a secret key (bva_sk_), and have the app talk to your server. Don't put a secret key inside an app, because anyone can pull it out of the download. Publishable keys need a website address, which apps don't send.
Verse of the day on your server
This Node.js function picks a reference by date and keeps the answer for the rest of the day, so thousands of app users cost one request a day.
const REFERENCES = [
"Psalm 23:1", "John 3:16", "Romans 8:28", "Philippians 4:13",
"Isaiah 41:10", "Proverbs 3:5-6", "Jeremiah 29:11", "Matthew 11:28",
];
let cache = { day: null, data: null };
export async function verseOfTheDay() {
const today = new Date().toISOString().slice(0, 10);
if (cache.day === today) return cache.data;
const dayNumber = Math.floor(Date.now() / 86_400_000);
const ref = REFERENCES[dayNumber % REFERENCES.length];
const res = await fetch(`https://api.bibleverse-api.com/v1/bibles/kjv/passages?ref=${encodeURIComponent(ref)}`, {
headers: { Authorization: `Bearer ${process.env.BIBLE_API_KEY}` },
});
if (!res.ok) throw new Error((await res.json()).error.message);
cache = { day: today, data: await res.json() };
return cache.data;
}Then call your server from the app
For example, in a Flutter app, with your server exposing the function above at /api/verse-of-the-day:
import 'dart:convert';
import 'package:http/http.dart' as http;
Future<Map<String, dynamic>> fetchVerseOfTheDay() async {
final res = await http.get(Uri.parse('https://yourchurch.org/api/verse-of-the-day'));
return jsonDecode(res.body) as Map<String, dynamic>;
}Plans for a growing church app
The Free plan (5,000 requests and 2,000 verses a day) is enough to build and launch. A live app with a busy congregation usually fits Starter ($9 a month) or Pro ($39 a month). Usage shows in your dashboard as you go.
Ready to try it?
The Free plan gives you 5,000 requests and 2,000 verses a day, with no card.