quran / quran.com-frontend

quran.com frontend
https://quran.com
MIT License
990 stars 361 forks source link

Hosted public facing API and tafseer #482 #484

Closed mmrs151 closed 7 years ago

mmrs151 commented 7 years ago

Jazakallah for your time for replying the previous query.

I have seen the API, but I was looking for something hosted so I can use my poor PHP knowledge to integrate with my wordpress plugin.

Unfortunately I don't know RUBY, I wish I knew so I could be a part of the project as well.

Is there any chance you can host the API somewhere?

I have couple of things using your service already,

  1. https://wordpress.org/plugins/quran-verse-a-day/ This is the plugin used by so many mosques and Islamic professionals
  2. https://www.facebook.com/quran.verse.a.day For this page I would be happy to integrate Bengali translation as I get many user requests for it. I will also be glad to use your Tafseer over others.

Regards, Mustafiz.

thabti commented 7 years ago

@mmrs151

As @mmahalwy said the API is publicly available. However our API is not documented:

Here are the REST endpoints

Get Surah Info:

https://quran.com/api/v2/surahs/1

Get Ayahs

https://quran.com/api/v2/surahs/1/ayahs

Get Ayahs pagination:

https://quran.com/api/v2/surahs/1/ayahs?from=1&to=30

Hope that helps!

Salam

mmrs151 commented 7 years ago

Thanks, I understand now.

mmahalwy commented 7 years ago

@sabeurthabti @mmrs151 I created this a while ago :)

https://quran.com/api/docs

The problem why it's not working though is because we didnt bundle the stylesheet nor the javascript files in production since we are using it as an API. Locally works fine