YouVersion-API icon indicating copy to clipboard operation
YouVersion-API copied to clipboard

Awesome API! Suggestion for ease of access

Open xXGoziXx opened this issue 1 year ago • 4 comments

Hi Glowstudent777,

Fellow Christian developer here. Thanks for making this. Have you considered making this an npm package that can be installed? There's also a platform called RapidAPI that lets you create an endpoint that people can use. Just a few suggestions that could make it easier to add this to projects :)

Godstime

xXGoziXx avatar Aug 27 '24 19:08 xXGoziXx

Hi, I do actually have a published NPM package.

Here are the links to them:

https://github.com/Glowstudent777/YouVersion-API-NPM

https://www.npmjs.com/package/@glowstudent/youversion

Glowstudent777 avatar Aug 27 '24 19:08 Glowstudent777

Sweet! I'll have a look at them.

xXGoziXx avatar Aug 27 '24 20:08 xXGoziXx

It would be so cool if I could trigger an endpoint that highlighted certain verses. I have so many ideas haha. But yeah Youversion would have to make their own api that let's developers empower users with more features.

xXGoziXx avatar Aug 27 '24 20:08 xXGoziXx

Like for example, if a user is viewing a verse online on some website, someone could make an extension that lets users click on the verse which shows a context menu that allows them to highlight/add a note to the verse in their Youversion bible, so they can look more into it later.

xXGoziXx avatar Aug 27 '24 20:08 xXGoziXx

Hey men, fantastic API. I used it for my Homeassistant project, that gives me verse of the day in picture and in word. I adjusted the url for localize purpose as my native language is slovak. Maybe this could be an enhancement for this api. Thank you so much for that. God bless you.

Haluska77 avatar Oct 10 '24 15:10 Haluska77

Hi @Haluska77 ,

I will certainly look into this but from my understanding locales are done through versions. For example I believe NR06 is Italian. Here's an example of the version file that includes localized versions:

{
  "AMP": 1588,
  "ICL00D": 1196,
  "KJV": 1,
  "NIV": 111,
  "NLT": 116,
  "NR06": 122,
  "VULG": 823
}

https://github.com/Glowstudent777/YouVersion-API/blob/main/src%2Fapi%2Fv1%2Fdb%2Fversions.json

If this isn't the case please respond with your modifications and I'll look into providing locales correctly.

Best Regards, Glow

Glowstudent777 avatar Oct 10 '24 15:10 Glowstudent777

I simply put location: https://www.bible.com/sk/verse-of-the-day Versions you provided are bible versions. But each location has some 'default' bible version. For my purpose and many others might be enough to have at least one local version.

Haluska77 avatar Oct 10 '24 16:10 Haluska77

Hi @Haluska77,

Thank you for the info, I'll get started on this soon. Is this the same or similar for verses or just the votd? I'll add SK to the locales and anymore you can think of.

Best Regards, Glow

Glowstudent777 avatar Oct 10 '24 17:10 Glowstudent777

In the following link https://www.bible.com/sk/bible/1/JHN.1.KJV There is sk localisation that makes your web in the sk language. But verse is written in the KJV bible version (code 1)

Haluska77 avatar Oct 10 '24 17:10 Haluska77

Resolved localization for VOTD in #8 / #9 (fixed tests for the original pr)

Glowstudent777 avatar Oct 25 '24 21:10 Glowstudent777