Menu
SermonIndex · Developer API

Libraries for JavaScript and Python.

Two small packages that read the API for you: sermons on a verse, a preacher's sermons, search, and audio that falls back by itself. Nothing to sign up for.

— sermons — preachers — topics — scripture references

The API is plain files, and you can read them with nothing but a web request. These libraries are for when you would rather not: they know the few habits of this API that catch people out, so your code does not have to.

They follow the links

Long lists come a page at a time. The libraries walk them for you and stop asking the moment you stop reading.

They get the audio order right

The Archive.org copy first, our own copy if that fails. One call gives you the list to try.

They understand book names

“Romans”, “Rom” and ROM all mean the same thing, so you are not looking up codes.

They bring nothing with them

No dependencies in either language, no key, no account. A few kilobytes of code.

JavaScript

For browsers and for Node 18 or later. It is an ES module.

npm install sermonindex
import { SermonIndex } from 'sermonindex'; const si = new SermonIndex(); // the sermons preached on a verse const verse = await si.scripture('Romans', 8, 28); console.log(verse.reference, verse.sermonCount); // search the whole library const hits = await si.search('revival', { speaker: 'ravenhill', limit: 10 }); // a preacher's sermons, fifty at a time, for as long as you keep reading for await (const sermon of si.speakerSermons('zac-poonen')) { console.log(sermon.title); } // where to play it: Archive.org first, then our own copy const sermon = await si.random(); const urls = si.audioSources(sermon);

sermonindex on npm

Python

For Python 3.9 or later. It uses only the standard library.

pip install sermonindex
from sermonindex import SermonIndex si = SermonIndex() # the sermons preached on a verse verse = si.scripture("Romans", 8, 28) print(verse["reference"], verse["sermonCount"]) # search the whole library for hit in si.search("revival", speaker="ravenhill", limit=10): print(hit["title"], hit["url"]) # a preacher's sermons, fifty at a time for sermon in si.speaker_sermons("zac-poonen"): print(sermon["title"]) # where to play it: Archive.org first, then our own copy urls = si.audio_sources(si.random())

sermonindex on PyPI

What both can do

You wantJavaScriptPython
Sermons on a book, chapter or versescripture()scripture()
A light summary of a chaptercards()cards()
Search by title, preacher and topicsearch()search()
One preacher, and all their sermonsspeaker(), speakerSermons()speaker(), speaker_sermons()
One sermon, with its transcriptsermon()sermon()
Sermons under a subjecttopic()topic()
Something to listen to nowrandom()random()
The audio addresses, in the order to tryaudioSources()audio_sources()

Worth knowing

Search downloads one file of about 3 MB the first time you use it and then works from memory, so the second search costs nothing. Some files in the API are large: every sermon on John 3:16 is several megabytes, and the list of all topics is larger still. Reach for cards(), a single topic() or a search before you reach for those.

Text-only sermons have no audio; check hasAudio, or simply use the audio helper, which returns an empty list for them. The programming guide explains the reasoning behind all of this, and the reference lists every address the libraries read.

If you use an AI assistant rather than writing code, the MCP server gives it the same abilities.

Everything we make is available for free because of a generous community of supporters.

Donate