How can we improve the API?

Return multiple verses in a single call

Hello, it would be great if the API could return multiple verses in one call. For instance, /bibles/[id]/verses/[PSA.1.1,PSA.1.2] rather than two separate calls. This would reduce server load and lag if you're trying to grab a passage or series of verses.

3 votes
Vote
Sign in
Check!
(thinking…)
Reset
or sign in with
  • facebook
  • google
    Password icon
    Signed in as (Sign out)
    You have left! (?) (thinking…)
    Isaiah Taylor shared this idea  ·   ·  Flag idea as inappropriate…  ·  Admin →

    1 comment

    Sign in
    Check!
    (thinking…)
    Reset
    or sign in with
    • facebook
    • google
      Password icon
      Signed in as (Sign out)
      Submitting...
      • CD commented  ·   ·  Flag as inappropriate

        This actually can be done, at least for continuous sections. Use /passages/ rather than /verses/ and use the format BOOK.CHA.VERS-BOOK.CHA.VERS. You must use the properly abbreviated book of the bible for both the start verse and end verse. I have successfully fetched across chapter breaks (i.e. Psalm 1:10-2:14) but cannot comment on what length can be handled or if similar breaks across books can be handled. Sample: https://api.scripture.api.bible/v1/bibles/[id]/passages/PSA.1.1-PSA.1.2.

      Feedback and Knowledge Base