Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get a page using v2 page number #653

Open
tahins opened this issue Feb 15, 2024 · 0 comments
Open

Get a page using v2 page number #653

tahins opened this issue Feb 15, 2024 · 0 comments

Comments

@tahins
Copy link

tahins commented Feb 15, 2024

Currently, if I fetch page 121, the first word is on page 120 in the v2 script.

curl -s "https://api.quran.com/api/v4/verses/by_page/121?words=true&word_fields=v1_page,v2_page" | jq .verses[0].words[0]
{
  "id": 63084,
  "position": 1,
  "audio_url": "wbw/005_077_001.mp3",
  "char_type_name": "word",
  "v1_page": 121,
  "v2_page": 120,
  "page_number": 121,
  "line_number": 1,
  "text": "ﭑ",
  "translation": {
    "text": "Say",
    "language_name": "english"
  },
  "transliteration": {
    "text": "qul",
    "language_name": "english"
  }
}

Is it possible to fetch a page with its v2 page number?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant