quran / quran.com-api Goto Github PK
View Code? Open in Web Editor NEWQuran.com api
Home Page: https://api-docs.quran.com/docs/quran.com_versioned/4.0.0/quran-com-api
License: MIT License
Quran.com api
Home Page: https://api-docs.quran.com/docs/quran.com_versioned/4.0.0/quran-com-api
License: MIT License
Pause marks shouldn't be counted in segments, maybe create empty segment for them before updating the data from https://github.com/cpfair/quran-align
After fixing segment data need to rollback this PR: quran/quran.com-frontend#600
It's not working? Gives error 404 Not Found.
http://staging.quran.com:3000/api/v3/verses/{id}
What do i put for {id}?
100% repro:
RAILS_ENV=production rake elasticsearch:setup_indices
get an error.
a workaround is to comment out delete_index
here.
V3 don't have suggestion. Search something on live app to see the suggestion.
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
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 المَثُلـٰتُ ?
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 .
The search endpoint lists the query parameter as optional.
The query parameter is required and an error is correctly returned when the query param is not passed in.
Missing footnotes for Dr. Mustafa khatib translation.
4:11, 5:33, 33:4, 33:51
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.
Previous specs are irrelevant due to huge changes in schema.
Assallamu Alaikum,
I am trying to get a specific verse. I am unsure of how to call it. According to this page https://quran.api-docs.io/v3/verses/get-verse you need to give it an id. However, no variation of numbers seems to be getting me the verse. I have tried "1:1","1,1", "1/1", "1" etc. etc. to no avail.
Thank you for your help.
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.
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.
Inside the container, the logs are being output in logs/production.log but docker-compose does not pick them up.
These three verses has no tamil translation.
19:98,114:6,114:5
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?
Not specific to Quran.com itself, but would be interesting to discussing collecting more content about Islamic sites and history in general. See:
http://islamiccoins.ancients.info
http://www.islamic-awareness.org/History/Islam/Coins/
This sucks. It needs to be moved to the model so we can easily use it in many controllers.
https://github.com/quran/quran-api-rails/blob/dev/app/controllers/ayat_controller.rb
ASA,
How can I access specific juz ?
What is api call ref ?
I am making a web app for Khatam al Quran
Mo
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!
before changing anything major we need to namespace our current api with v1
I have been experimenting with following GET request.
https://quran.com/api/v2/surahs/2/ayahs?from=1&to=1&audio=8&content%5B%5D=53&quran=1
It results into first ayah surah Bakra.
I need to know how to get الم with All HARAKAT. On website https://quran.com/2:1
Alif Laam Meen appears with Madh but in the api response it comes back without HARAKAT.
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)
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
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
Looking at the frontend.
Verses:
code_dec
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.
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 ?
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:
Filter verse by various topic would be great tool for research projects.
Like:
We already have about 250 topics in DB :)
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:
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)
if we request an invalid ayah, we get a 500. let's instead return a 404? for example, requesting /9/186 results in a 500 error on api
http://staging.quran.com:3000/api/v3/chapters/{id}
To quran.com-api
Hi
Assalamu alaikum,
I have cloned this project. But to run and look the project I need access to DB. As you you mentioned in doc, can I get access to that repo of db
https://github.com/quran/quran.com-api-db/tree/8dbe996a336dbb57f1a0ff8119e6659d994b3c24
I would like to contribute to the project as well
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
http://staging.quran.com:3000/api/v3/chapters/1/verses?language=ur < should fallback to english word by word translation.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.