GithubHelp home page GithubHelp logo

quran / quran.com-api Goto Github PK

View Code? Open in Web Editor NEW
868.0 868.0 183.0 45.3 MB

Quran.com api

Home Page: https://api-docs.quran.com/docs/quran.com_versioned/4.0.0/quran-com-api

License: MIT License

Ruby 98.46% HTML 1.06% DIGITAL Command Language 0.08% Dockerfile 0.22% Shell 0.18% Procfile 0.01%

quran.com-api's People

Contributors

abdulraoufatia avatar acenoor avatar adropofilm avatar ahmadhasankhan avatar ahmedre avatar danish2210 avatar dependabot[bot] avatar hammady avatar hashlash avatar khalilgharbaoui avatar maryamklabib avatar mmahalwy avatar naveed-ahmad avatar ninearif avatar osamasayed avatar sharabash avatar snyk-bot avatar terfender avatar theonejb avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

quran.com-api's Issues

setup_indicies broken

100% repro:

  • fresh elasticsearch (no data)
  • run RAILS_ENV=production rake elasticsearch:setup_indices

get an error.
a workaround is to comment out delete_index here.

Search suggestions

V3 don't have suggestion. Search something on live app to see the suggestion.

Missing API V3 data

  • Words are missing pageNumber
    Needed for doing reading mode.

  • Support returning images instead of words, if the text type is sent.
    This will be used for PDF.

  • Verses are not returning translations when requested
    http://staging.quran.com:3000/api/v3/chapters/1/verses?recitation=1&translations=%5B21%5D&language=en results in no translations

  • Translations options returning nothing

Another text issue

I know its same word just different way of writing but need to follow standards.

https://quran.com/13/6
http://tanzil.net/#13:6

وَيَسْتَعْجِلُونَكَ بِالسَّيِّئَةِ قَبْلَ الْحَسَنَةِ وَقَدْ خَلَتْ مِن قَبْلِهِمُ الْمَثُلَاتُ ۗ وَإِنَّ رَبَّكَ لَذُو مَغْفِرَةٍ لِّلنَّاسِ عَلَىٰ ظُلْمِهِمْ ۖ وَإِنَّ رَبَّكَ لَشَدِيدُ الْعِقَابِ - 13:6

الْمَثُلَاتُ OR المَثُلـٰتُ ?

Is corpus dead?

This may not be the right place for this issue, but I could not find a better one:

I quickly glanced over the commits and did not see any evidence for corpus being part of the API. Seems that is a separate system (in java).

I also noticed there are bugs in the morphological information downloaded (version 0.4, last updated in 2011?). Also, there are recent user comments not being responded or worked into the database.

So, I would like to ask: is the corpus dead? I know it is live on the server, but in terms of development and community?

If it is, is there any vision in place to revive it, and possibly, make it part of a one coherent API? Who leads it?

Trying to learn @mmahalwy @sharabash @ahmedre .

footnote issues

Missing footnotes for Dr. Mustafa khatib translation.
4:11, 5:33, 33:4, 33:51

Fix the translation order issue

Translations are not returned in same order for subsequent calls. Go to any surah and load the second or third page to see the random order of translation.

Specs

Previous specs are irrelevant due to huge changes in schema.

Audio for many reciters is missing

Specifically, the following recording selections no longer work - the API returns an empty audio dict, breaking playback. The data appears to be present in the database.

  • as-Sudais
  • al-Shatri
  • ar-Rifai
  • al-Minshawi (Mujawwad & Murattal)
  • ash-Shuraim

Punctuations

Im trying to concatenate the arrays of words to be a string (a complete verse). However,I noticed that there are no stopping character/pause in the data.

If the "char_type":"word" i would've just take the string and combine it with the previous array,but what if the "char_type" is equals pause or end ? Where do I get the symbols ? Btw I'll use HTML to mark certain words as bold. Thats why I have to concatenate it by myself.

Documentation

I assume this quran.com-api is live somewhere. Is there a documentation as to what is available to other developers who could develop using it?

Refactor search controller please

Fat models, small controllers. Let's find a way to bite chunk everything happening in search. Firstly, we should write some tests. In other words, I should learn to write Rails tests and I will write some tests for them inshallah, then we can refactor!

verionize api

before changing anything major we need to namespace our current api with v1

Word translation issue

quran.com/9/51

Last two words has same translation:
فَلْيَتَوَكَّلِ => [so] let the believers put (their) trust
الْمُؤْمِنُونَ => [so] let the believers put (their) trust

Correct translation would be( I believe ):
فَلْيَتَوَكَّلِ => let put (their) trust
الْمُؤْمِنُونَ => The believers

Ref: http://corpus.quran.com/wordmorphology.jsp?location=(3:122:11)

implement search-as-you-type suggestions

this should match surah names as well as ayah text and translations. if a surah name is the suggestion, clicking that should take you to that surah; if an ayah is suggested, clicking that ayah should take you to that ayah

Issues with swedish translation

swedish

Following 55 verses has same issue:
19:21,71:10,5:117,11:31,19:19,40:28,79:19,71:20,40:34,18:39,6:63,7:161,38:23,14:7,20:97,23:109,18:75,39:58,21:85,49:14,12:96,18:72,16:2,19:7,26:16,39:56,2:58,37:53,37:52,39:57,27:49,3:46,3:193,45:32,52:33,51:51,38:48,68:28,71:23,72:15,7:49,6:50,6:72,67:9,72:1,79:18,20:39,20:48,20:47,20:40,26:17,27:30,27:37,19:9,27:31

Track search keywords

Message from Mohammad Afifi:

Do you guys have an analytics tracking the 10 most searched keywords? I would like to show them for the empty state when the user don't have any search history yet.

Search function unavailable

I noticed that the search function is not working in the production server : http://staging.quran.com:3000/api/v3/search?q=ali&size=20&page=0&language=en does it have limitted API calls ?

Graphql endpoint

I think there might be huge value in adding graphql to the api.

I currently use it for a project and it's amazing! Completely changed the way I think of APIs. Check it out:

http://graphql.org

Search returns all language despite language param is spesific (eg: en)

Assalamualaikum
I saw this issue quran/quran.com-frontend#826 and did check the networks and found these endpoints

- https://quran.com/api/api/v3/search?q=in%20the%20name&language=en
- https://quran.com/api/api/v3/suggest?q=in%20the%20name&language=en

will return result regardless the language.
It also return any ayah that have even a word in the input (eg: in, at) altough it contain many words (eg: in the name).
I think it will be more helpful if it returns:

  • in the name -> ayah that has 'in' & 'the' & 'name' in its english translation
  • "in the name" -> ayah that has "in the name" in its english translation

Performance improvements

A call such as:

http://localhost:3000/api/v3/chapters/2/verses?recitation=1&translations=%5B21%5D&language=en&text_type=words&page=4

Has these bottlenecks:

 [Debug]      (211.4ms)  SELECT "translations"."language_id" FROM "translations" WHERE "translations"."resource_type" = $1  [["resource_type", "Verse"]] (pid:65170)

211ms is too long.

Results to:

 [Info]   Completed 200 OK in 9385ms (Views: 8052.1ms | ActiveRecord: 791.5ms)

Access to the DB

I would like to have an access to the DB for word to word translation. Please let me know what is the procedure to get the access.
Thanks

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.