4
2
mirror of https://github.com/getbible/v2.git synced 2024-06-11 07:12:20 +00:00
v2/README.md

54 lines
3.5 KiB
Markdown
Raw Normal View History

2023-07-17 07:15:05 +00:00
# V2 GetBible API
2019-12-29 04:22:13 +00:00
2023-07-17 07:15:05 +00:00
GetBible has taken an essential leap forward in maintaining the integrity and accuracy of the Holy Scripture that we provide. We, with a heavy heart, have moved away from an open public repository of the Holy Scripture due to constant updates from Crosswire and others to their modules. As these updates are aimed at fixing typos and other mistakes, an open public repository like [Unbound-Biola](https://github.com/getbible/Unbound-Biola) could become outdated, leading those who forked it to have outdated and incorrect text. We realized the potential consequences and to rectify it, have developed a new [API version 2](https://github.com/getbible/v2).
2019-12-29 04:22:13 +00:00
2023-07-17 07:15:05 +00:00
Our API is now hosted on [api.getbible.net/v2/translations.json](https://api.getbible.net/v2/translations.json), ensuring it remains synchronized with the [Crosswire Modules](http://www.crosswire.org/sword/modules/ModDisp.jsp?modType=Bibles). This change, though seems like a step back, is a significant improvement after months of careful consideration and prayer.
2019-12-29 04:22:13 +00:00
2023-07-17 07:15:05 +00:00
# Legacy and New API Versions
2019-12-29 04:22:13 +00:00
2023-07-17 07:15:05 +00:00
We have decided to keep the old API (the current URL query option on getBible.net) active until the end of 2021. Therefore, we encourage users to transition to the newer, more efficient version as soon as possible.
2019-12-29 04:22:13 +00:00
2023-07-17 07:15:05 +00:00
As long as the Lord permits, we will maintain two versions of our API. The version one (V1) will return the Holy Scripture in the same format as the original (old API) but with a new URL query format. The version two ([V2](https://github.com/getbible/v2)) is the new format introduced to address common issues and provide a better, faster, stronger, more accurate, and convenient API of the Holy Scripture.
2019-12-29 04:22:13 +00:00
2023-07-17 07:15:05 +00:00
## API Usage
2019-12-29 04:22:13 +00:00
2023-07-17 07:15:05 +00:00
Here's how the query formats have changed:
The old API query:
2023-07-22 11:08:22 +00:00
- https://archived.getbible.net/json?passage=1Jn3 (being archived)
2019-12-29 04:22:13 +00:00
2023-07-17 07:15:05 +00:00
The new V1 API query:
- https://api.getbible.net/v1/kjv/62/3.json
2019-12-29 04:22:13 +00:00
2023-07-17 07:15:05 +00:00
The new [V2](https://github.com/getbible/v2) API query:
2023-05-31 15:05:32 +00:00
- https://api.getbible.net/v2/kjv/62/3.json
2019-12-29 04:22:13 +00:00
### Mapping Helpers
2023-07-17 07:15:05 +00:00
To help users interact with our API, we have added mapping helpers. These helpers will inform you of any changes via a hash for various parts of the scripture, validate downloads, inform you of each translation's scope of the Holy Scripture, and other useful information.
2019-12-29 04:22:13 +00:00
> Translations
2023-07-22 11:08:22 +00:00
- For one translation: https://api.getbible.net/v2/kjv.json
2023-05-31 15:05:32 +00:00
- For translations: https://api.getbible.net/v2/translations.json
- For translations: https://api.getbible.net/v2/translations
- For translations: https://api.getbible.net/v2/checksum.json
- For translations: https://api.getbible.net/v2/checksum
2019-12-29 04:22:13 +00:00
> Translation Books
2023-07-22 11:08:22 +00:00
- For one book: https://api.getbible.net/v2/kjv/19.json
2023-05-31 15:05:32 +00:00
- For books: https://api.getbible.net/v2/kjv/books.json
- For books: https://api.getbible.net/v2/kjv/books
- For books: https://api.getbible.net/v2/kjv/checksum.json
- For books: https://api.getbible.net/v2/kjv/checksum
2019-12-29 04:22:13 +00:00
> Book Chapters
2023-07-22 11:08:22 +00:00
- For one chapter: https://api.getbible.net/v2/kjv/62/3.json
2023-05-31 15:05:32 +00:00
- For a book: https://api.getbible.net/v2/kjv/62/chapters.json
- For a book: https://api.getbible.net/v2/kjv/62/chapters
- For a book: https://api.getbible.net/v2/kjv/62/checksum.json
- For a book: https://api.getbible.net/v2/kjv/62/checksum
2023-07-17 07:15:05 +00:00
We continue our journey to keep the integrity of the Holy Scripture and provide the most accurate text to all users. If you have any questions or need further clarification, please feel free to open issues in the relevant repositories, and we'll respond as soon as we can.
Thank you for your attention and for being a part of our mission at getBible.