Florilegio’s study interface can display Bible chapters from a curated set of YouVersion translations alongside its primary RV1960 text. These two endpoints act as a thin proxy to the YouVersion Platform API, appending theDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/alfonsoolavarria/florilegio/llms.txt
Use this file to discover all available pages before exploring further.
X-YVP-App-Key header from the server-side YVP_APP_KEY environment variable so that the API key is never exposed to the browser. Both endpoints are publicly accessible and require no user authentication.
GET /api/youversion/bibles/
Returns the hardcoded list of YouVersion Bible versions supported by Florilegio. This list is defined as theYOUVERSION_BIBLES constant in views_youversion.py and does not require a database query or upstream API call.
Rate limit: None
Response (HTTP 200)
Array of Bible version objects. Each object contains:
id(integer) — The YouVersion Bible ID used as thebible_idparameter in/api/youversion/chapter/.name(string) — Full display name of the Bible version.abbreviation(string) — Short abbreviation used in the UI.
GET /api/youversion/chapter/
Fetches one chapter from the YouVersion Platform API and returns both a parsed verse array and cleaned HTML for rendering. The view constructs a USFM passage ID (e.g.,JHN.3) from the book number using the same USFM_MAPPING table used elsewhere in the application.
Rate limit: None (upstream YouVersion API limits apply)
Query Parameters
YouVersion Bible ID. Use the
id values returned by /api/youversion/bibles/ (e.g., 103 for NBLA).Bible book number, 1–66. Converted internally to a USFM book code (e.g.,
40 → MAT, 43 → JHN).Chapter number within the selected book.
Response (success — HTTP 200)
Always
"success" on a successful response.Plain-text verse array parsed from the YouVersion HTML response. Each object has
versiculo (integer) and texto (string, HTML tags stripped).Cleaned YouVersion HTML suitable for direct injection into the DOM. The cleaning pipeline: removes outer
<div> wrappers, replaces <span class="yv-vlbl"> verse number labels with <sup> elements styled with Bootstrap utility classes, and adds margin-bottom inline style to paragraph blocks.Always
"youversion". Used by the frontend to identify the origin of the chapter data.Human-readable reference string as returned by the YouVersion API (e.g.,
"Genesis 1"). May be empty if the upstream response does not include a reference field.Error Responses
HTTP 400 — Missing parameters Returned when one or more ofbible_id, book, or chapter are absent from the query string.
book cannot be parsed as an integer.
book is a valid integer but does not correspond to a known USFM code (i.e. outside 1–66).
youversion_error: true flag allows the frontend to show a Bible-specific error message rather than a generic one.