@mp3quran/sdk 0.0.0-stage → 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,3 +1,753 @@
1
- # Temporary Holding Version
1
+ # @mp3quran/sdk
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ A typed TypeScript client for the [MP3Quran API v4](https://docs.mp3quran.net/): reciters, recitations
4
+ by riwayah, surah audio, ayah clips, radios, TV channels, spoken translations, audio tafsir, and the time
5
+ of each ayah, word, letter and phoneme. It is generated from the API's
6
+ [OpenAPI document](https://api.mp3quran.net/v4/openapi.json), so it has one method for every operation.
7
+
8
+ - No API key. The API allows 600 requests per minute per IP.
9
+ - No runtime dependencies. It runs anywhere `fetch` exists: Node 18 or later, browsers, Deno, Bun,
10
+ Cloudflare Workers, React Native.
11
+ - ESM only, with TypeScript types for every parameter and response. The types refer to the global
12
+ `fetch`, so a TypeScript project needs the `DOM` lib or `@types/node` 18 or later.
13
+
14
+ ```sh
15
+ npm install @mp3quran/sdk
16
+ # or: pnpm add @mp3quran/sdk · yarn add @mp3quran/sdk · bun add @mp3quran/sdk
17
+ ```
18
+
19
+ ```ts
20
+ import { createClient } from '@mp3quran/sdk';
21
+
22
+ const client = createClient({ baseUrl: 'https://api.mp3quran.net', locale: 'en' });
23
+ const { data: surahs } = await client.listSurahs();
24
+ ```
25
+
26
+ ## The client
27
+
28
+ `createClient(options)` returns a client.
29
+
30
+ | Option | Meaning |
31
+ |---|---|
32
+ | `baseUrl` | Required. `https://api.mp3quran.net`, or your own deployment. A trailing slash is removed. |
33
+ | `locale` | Sent as `?locale=` on every operation that accepts it, unless a call sets its own. The API's default is `ar`. `client.listLanguages()` lists the locales. |
34
+ | `fetch` | Optional `fetch` to use instead of the global one: for tests, proxies, or runtimes without a global `fetch`. |
35
+
36
+ Every operation is a method named after its `operationId`. A method takes one optional object,
37
+ `{ path?, query? }`, and resolves to the parsed JSON body. A single resource is `{ data }`; a list is
38
+ `{ data, meta, links }`.
39
+
40
+ ```ts
41
+ await client.getRecitationSurah({ path: { id: 'mahmoud-husary/r1', n: '1' } });
42
+ await client.listRecitations({ query: { riwayah: 'warsh_an_nafi', has: 'ayah_timings' } });
43
+ ```
44
+
45
+ Path and query values are typed from the OpenAPI document, including the allowed values of each enum.
46
+ Path values are strings (`n: '2'`, not `2`). A list parameter such as `include` takes an array
47
+ (`include: ['text', 'audio']`), sent comma-separated.
48
+
49
+ The client also has:
50
+
51
+ | Member | What it does |
52
+ |---|---|
53
+ | `client.call(operationId, params)` | Calls any operation by its id. The generated methods use it. |
54
+ | `client.paginate(operationId, params)` | An async iterator over every item of a list operation. It follows `links.next` (cursor pages) until there is none. Items are typed `unknown`; cast them to `components['schemas'][...]`. |
55
+ | `client.clearCache()` | Forgets the cached `ETag` responses (see Caching). |
56
+
57
+ The package also exports the types `operations`, `paths`, `components`, `OperationId`, `Client`,
58
+ `ClientMethods`, `CreateClientOptions`, `OperationMeta`, `ApiErrorBody`, `SurahClipQueued`,
59
+ `SurahClipReady` and `SurahClipResult`, and the class `ApiError`.
60
+
61
+ ## Use cases
62
+
63
+ ### Find a reciter and their recitations
64
+
65
+ ```ts
66
+ const { data: reciters } = await client.listReciters({ query: { q: 'hussary' } });
67
+ // reciters[0].code === 'mahmoud-husary'
68
+
69
+ const { data: reciter } = await client.getReciter({ path: { idOrSlug: 'mahmoud-husary' } });
70
+ const { data: recitations } = await client.listRecitations({ query: { reciter: 'mahmoud-husary' } });
71
+ // recitations[0].code === 'mahmoud-husary/r1'
72
+ ```
73
+
74
+ A reciter's code, an alias, a slug or a numeric id all work. The API answers 301 to the canonical address,
75
+ and the client follows it.
76
+
77
+ ### Search everything at once
78
+
79
+ ```ts
80
+ const { data } = await client.search({ query: { q: 'sudais' } });
81
+ // data.reciters, data.surahs, data.riwayahs, data.radios — each item has a score and matched_on
82
+ ```
83
+
84
+ ### Choose recitations by riwayah or qiraah
85
+
86
+ ```ts
87
+ const { data: riwayahs } = await client.listRiwayahs(); // codes such as 'warsh_an_nafi'
88
+ const { data: warsh } = await client.listRecitations({ query: { riwayah: 'warsh_an_nafi' } });
89
+ const { data: qiraahs } = await client.listQiraahs(); // the ten qiraahs
90
+ const { data: riwayah } = await client.getRiwayah({ path: { code: 'warsh_an_nafi' } });
91
+ ```
92
+
93
+ A riwayah carries its ayah counting system and its per-surah ayah counts. Never assume a Hafs count for
94
+ another riwayah.
95
+
96
+ ### Play a surah
97
+
98
+ ```ts
99
+ const { data: surah } = await client.getRecitationSurah({ path: { id: 'mahmoud-husary/r1', n: '1' } });
100
+ const url = surah.files.original?.url;
101
+ if (url) audio.src = url; // play only after a user action
102
+ ```
103
+
104
+ Read the URL from the response. Do not build it yourself: the host is not fixed. `bytes`, `sha256` and
105
+ `bitrate_kbps` can be `null`. `client.listRecitationSurahs({ path: { id } })` lists the surahs a recitation
106
+ has.
107
+
108
+ ### Cut a clip of some ayahs
109
+
110
+ ```ts
111
+ const clip = await client.getSurahClip({
112
+ path: { id: 'mahmoud-husary/r1', n: '2' },
113
+ query: { ayah: '255' }, // one ayah or a range such as '1-5'
114
+ });
115
+ if ('url' in clip) {
116
+ audio.src = clip.url; // ready: the address of the audio file
117
+ } else {
118
+ // clip.data.status === 'queued': the cut is being made. Ask again in a few seconds.
119
+ }
120
+ ```
121
+
122
+ The client never downloads the audio. It stops at the address.
123
+
124
+ ### Highlight each ayah while the audio plays
125
+
126
+ ```ts
127
+ const { data: recs } = await client.listRecitations({ query: { has: 'ayah_timings' } });
128
+ const { data: t } = await client.getAyahTimings({ path: { id: 'mahmoud-husary/r1', n: '1' } });
129
+ // t.ayahs: [ayah, start_ms, end_ms]. Ayah 0 is the basmalah; -1 is the isti'adhah.
130
+
131
+ audio.ontimeupdate = () => {
132
+ const ms = audio.currentTime * 1000;
133
+ const current = t.ayahs.find(([, start, end]) => ms >= start && ms <= end);
134
+ if (current) highlightAyah(1, current[0]);
135
+ };
136
+ ```
137
+
138
+ Seek by ayah: set `audio.currentTime = start / 1000`. To stop at the end of an ayah, pause when the time
139
+ passes its `end`.
140
+
141
+ ### Highlight each word
142
+
143
+ ```ts
144
+ const { data: w } = await client.getWordTimings({
145
+ path: { id: 'mahmoud-husary/r1', n: '4' },
146
+ query: { ayah: '1', include: ['text'] },
147
+ });
148
+ // w.words: [ayah, word_position, start_ms, end_ms, occurrence]
149
+ // A repeated word appears again with the next occurrence. w.estimated lists estimated entries.
150
+ ```
151
+
152
+ `query.view: 'positions'` groups the same intervals by ayah and word position instead. `from_ms`, `to_ms`
153
+ and `at_ms` narrow to a time window or one instant. Word boundaries are accurate to about 40 ms.
154
+
155
+ ### Letters and phonemes
156
+
157
+ ```ts
158
+ await client.getLetterTimings({ path: { id: 'mahmoud-husary/r1', n: '1' } });
159
+ await client.getPhonemeTimings({ path: { id: 'mahmoud-husary/r1', n: '1' } }); // Beta
160
+ ```
161
+
162
+ ### Numbering in other riwayat
163
+
164
+ Timings follow the mushaf the file was aligned in: the riwayah's own mushaf for a recitation aligned in it
165
+ (a Warsh recitation counts ayahs as Warsh does), otherwise the Hafs text. Ask for `include: ['alignment']` and
166
+ read `alignment.text_source.edition`. To join a Warsh ayah to data numbered in Hafs, convert the reference
167
+ first, or read the text with Hafs coordinates:
168
+
169
+ ```ts
170
+ const { data: text } = await client.getSurahText({
171
+ path: { number: '2' },
172
+ query: { riwayah: 'warsh_an_nafi', coordinates: 'hafs' },
173
+ });
174
+ ```
175
+
176
+ ### Download every timing at once
177
+
178
+ ```ts
179
+ const { data: releases } = await client.listTimingReleases();
180
+ const [latest] = releases;
181
+ const { data: release } = latest
182
+ ? await client.getTimingRelease({ path: { release: latest.release } })
183
+ : { data: undefined };
184
+ // release.manifest_url and release.recitation_url_template point to immutable files on the CDN.
185
+ ```
186
+
187
+ Pin the release name in your cache key.
188
+
189
+ ### Surahs, juzs and hizbs
190
+
191
+ ```ts
192
+ await client.listSurahs();
193
+ await client.getSurah({ path: { number: '2' } });
194
+ await client.listJuzs();
195
+ await client.listHizbs();
196
+ ```
197
+
198
+ ### Radios and TV
199
+
200
+ ```ts
201
+ import type { components } from '@mp3quran/sdk';
202
+ type Radio = components['schemas']['Radio'];
203
+
204
+ for await (const item of client.paginate('listRadios')) {
205
+ const radio = item as Radio; // paginate yields unknown; name the item type
206
+ console.log(radio.name, radio.stream_url);
207
+ }
208
+ const { data: tv } = await client.listTvChannels();
209
+ await client.getRadio({ path: { id: '1' } });
210
+ ```
211
+
212
+ ### Spoken translations and audio tafsir
213
+
214
+ ```ts
215
+ const { data: spoken } = await client.listSpokenTranslations();
216
+ for (const t of spoken) console.log(t.code, t.language);
217
+ await client.getSpokenTranslation({ path: { code: 'bn' } }); // codes come from the list
218
+
219
+ const { data: tafsirs } = await client.listTafsirs(); // one work today: a summary of al-Tabari, audio
220
+ for (const t of tafsirs) {
221
+ const { data: items } = await client.listTafsirItems({ path: { id: String(t.id) }, query: { surah: '2' } });
222
+ }
223
+ ```
224
+
225
+ ### Collections
226
+
227
+ ```ts
228
+ const { data: collections } = await client.listCollections();
229
+ for (const c of collections) {
230
+ const { data: items } = await client.listCollectionItems({ path: { code: c.code } });
231
+ }
232
+ ```
233
+
234
+ ### Health and index
235
+
236
+ ```ts
237
+ await client.getHealth();
238
+ await client.getIndex(); // links to every top-level resource
239
+ ```
240
+
241
+ The exact path parameter names and every query parameter of each method are in
242
+ [Operations](#operations) below.
243
+
244
+ ## Errors
245
+
246
+ A non-2xx response throws `ApiError`, with the HTTP `status`, the API's error `code`, its `message`, and
247
+ `field` when one parameter was wrong.
248
+
249
+ ```ts
250
+ import { ApiError } from '@mp3quran/sdk';
251
+
252
+ try {
253
+ await client.getReciter({ path: { idOrSlug: 'unknown' } });
254
+ } catch (err) {
255
+ if (err instanceof ApiError && err.status === 404) {
256
+ // err.code === 'not_found'
257
+ } else {
258
+ throw err;
259
+ }
260
+ }
261
+ ```
262
+
263
+ A missing required path parameter throws a plain `Error` before any request is sent. Network failures
264
+ reject with whatever `fetch` throws.
265
+
266
+ ## Caching
267
+
268
+ The client keeps the `ETag` of each `GET` response in memory and sends `If-None-Match` next time. A `304`
269
+ returns the cached body. The cache lives as long as the client; `client.clearCache()` empties it. Clip
270
+ requests are never cached, because their answer changes from queued to ready.
271
+
272
+ ## Using it without the client
273
+
274
+ The client is a thin layer over the REST routes. Every route also works with plain `fetch` or `curl`,
275
+ and the OpenAPI document can generate a client in any other language.
276
+
277
+ ## Operations
278
+
279
+ <!-- operations:start (generated by `pnpm sdk:generate`; do not edit) -->
280
+
281
+ 38 operations, from `openapi.json`.
282
+
283
+ ### System
284
+
285
+ The health check and the API index.
286
+
287
+ #### `client.getHealth()`
288
+
289
+ `GET /v4/health` — Liveness
290
+
291
+ | Parameter | In | Required | Values | Meaning |
292
+ |---|---|---|---|---|
293
+ | `locale` | query | no | `ar`, `en`, `fr`, `ru`, `de`, `es`, `tr`, `zh`, … (21) | The locale of localized names, such as `ar` or `en`; if omitted, `Accept-Language` decides, then `ar`. |
294
+
295
+ #### `client.getIndex()`
296
+
297
+ `GET /v4` — Gets the API index
298
+
299
+ | Parameter | In | Required | Values | Meaning |
300
+ |---|---|---|---|---|
301
+ | `locale` | query | no | `ar`, `en`, `fr`, `ru`, `de`, `es`, `tr`, `zh`, … (21) | The locale of localized names, such as `ar` or `en`; if omitted, `Accept-Language` decides, then `ar`. |
302
+
303
+ ### Reference
304
+
305
+ Surahs, juzs, hizbs, qiraahs, riwayahs and languages.
306
+
307
+ #### `client.getQiraah()`
308
+
309
+ `GET /v4/qiraahs/{code}` — Gets a qiraah
310
+
311
+ | Parameter | In | Required | Values | Meaning |
312
+ |---|---|---|---|---|
313
+ | `code` | path | yes | string | The code of a qiraah, for example `asim`. |
314
+ | `locale` | query | no | `ar`, `en`, `fr`, `ru`, `de`, `es`, `tr`, `zh`, … (21) | The locale of localized names, such as `ar` or `en`; if omitted, `Accept-Language` decides, then `ar`. |
315
+
316
+ #### `client.getRiwayah()`
317
+
318
+ `GET /v4/riwayahs/{code}` — Gets a riwayah
319
+
320
+ | Parameter | In | Required | Values | Meaning |
321
+ |---|---|---|---|---|
322
+ | `code` | path | yes | string | The code of a riwayah, for example `hafs_an_asim`. |
323
+ | `locale` | query | no | `ar`, `en`, `fr`, `ru`, `de`, `es`, `tr`, `zh`, … (21) | The locale of localized names, such as `ar` or `en`; if omitted, `Accept-Language` decides, then `ar`. |
324
+
325
+ #### `client.getSurah()`
326
+
327
+ `GET /v4/surahs/{number}` — Gets a surah
328
+
329
+ | Parameter | In | Required | Values | Meaning |
330
+ |---|---|---|---|---|
331
+ | `number` | path | yes | string | The surah number, from 1 to 114, for example `4`. |
332
+ | `locale` | query | no | `ar`, `en`, `fr`, `ru`, `de`, `es`, `tr`, `zh`, … (21) | The locale of localized names, such as `ar` or `en`; if omitted, `Accept-Language` decides, then `ar`. |
333
+
334
+ #### `client.getSurahText()`
335
+
336
+ `GET /v4/surahs/{number}/text` — Gets the words of a surah
337
+
338
+ | Parameter | In | Required | Values | Meaning |
339
+ |---|---|---|---|---|
340
+ | `number` | path | yes | string | The surah number, from 1 to 114, for example `4`. |
341
+ | `ayah` | query | no | string | An ayah number, for example `1`, or a range such as `1-3`; keeps only those ayahs. |
342
+ | `riwayah` | query | no | `qalun_an_nafi`, `warsh_an_nafi`, `bazzi_an_ibn_kathir`, `qunbul_an_ibn_kathir`, `duri_an_abu_amr`, `susi_an_abu_amr`, `hisham_an_ibn_amir`, `ibn_dhakwan_an_ibn_amir`, … (20) | The code of a riwayah; on a list keeps the items whose `riwayahs` include it, on a surah's text chooses whose wording is returned. |
343
+ | `coordinates` | query | no | `own`, `hafs` | Whose ayah numbers and word positions a surah's text follows: `own` (the default), those of the riwayah's own mushaf, or `hafs`, those of the Hafs text. |
344
+
345
+ #### `client.listHizbs()`
346
+
347
+ `GET /v4/hizbs` — Lists the hizbs
348
+
349
+ | Parameter | In | Required | Values | Meaning |
350
+ |---|---|---|---|---|
351
+ | `limit` | query | no | string | The maximum number of items in the page, from 1 to 200; the default is 50, or 200 on the reference lists. |
352
+ | `cursor` | query | no | string | The opaque cursor from `links.next` of the previous page. |
353
+ | `all` | query | no | `true`, `false` | If true, returns every item in one response, without a page limit. |
354
+ | `sort` | query | no | `number`, `-number` | A sort key, with a leading `-` for descending order; the default is on the route. |
355
+
356
+ #### `client.listJuzs()`
357
+
358
+ `GET /v4/juzs` — Lists the juzs
359
+
360
+ | Parameter | In | Required | Values | Meaning |
361
+ |---|---|---|---|---|
362
+ | `limit` | query | no | string | The maximum number of items in the page, from 1 to 200; the default is 50, or 200 on the reference lists. |
363
+ | `cursor` | query | no | string | The opaque cursor from `links.next` of the previous page. |
364
+ | `all` | query | no | `true`, `false` | If true, returns every item in one response, without a page limit. |
365
+ | `sort` | query | no | `number`, `-number` | A sort key, with a leading `-` for descending order; the default is on the route. |
366
+
367
+ #### `client.listLanguages()`
368
+
369
+ `GET /v4/languages` — Lists the locales
370
+
371
+ | Parameter | In | Required | Values | Meaning |
372
+ |---|---|---|---|---|
373
+ | `limit` | query | no | string | The maximum number of items in the page, from 1 to 200; the default is 50, or 200 on the reference lists. |
374
+ | `cursor` | query | no | string | The opaque cursor from `links.next` of the previous page. |
375
+ | `all` | query | no | `true`, `false` | If true, returns every item in one response, without a page limit. |
376
+ | `locale` | query | no | `ar`, `en`, `fr`, `ru`, `de`, `es`, `tr`, `zh`, … (21) | The locale of localized names, such as `ar` or `en`; if omitted, `Accept-Language` decides, then `ar`. |
377
+ | `sort` | query | no | `code`, `-code`, `name`, `-name` | A sort key, with a leading `-` for descending order; the default is on the route. |
378
+
379
+ #### `client.listQiraahs()`
380
+
381
+ `GET /v4/qiraahs` — Lists the qiraahs
382
+
383
+ | Parameter | In | Required | Values | Meaning |
384
+ |---|---|---|---|---|
385
+ | `limit` | query | no | string | The maximum number of items in the page, from 1 to 200; the default is 50, or 200 on the reference lists. |
386
+ | `cursor` | query | no | string | The opaque cursor from `links.next` of the previous page. |
387
+ | `all` | query | no | `true`, `false` | If true, returns every item in one response, without a page limit. |
388
+ | `locale` | query | no | `ar`, `en`, `fr`, `ru`, `de`, `es`, `tr`, `zh`, … (21) | The locale of localized names, such as `ar` or `en`; if omitted, `Accept-Language` decides, then `ar`. |
389
+ | `sort` | query | no | `code`, `-code`, `recitation_count`, `-recitation_count` | A sort key, with a leading `-` for descending order; the default is on the route. |
390
+
391
+ #### `client.listRiwayahs()`
392
+
393
+ `GET /v4/riwayahs` — Lists the riwayahs
394
+
395
+ | Parameter | In | Required | Values | Meaning |
396
+ |---|---|---|---|---|
397
+ | `limit` | query | no | string | The maximum number of items in the page, from 1 to 200; the default is 50, or 200 on the reference lists. |
398
+ | `cursor` | query | no | string | The opaque cursor from `links.next` of the previous page. |
399
+ | `all` | query | no | `true`, `false` | If true, returns every item in one response, without a page limit. |
400
+ | `locale` | query | no | `ar`, `en`, `fr`, `ru`, `de`, `es`, `tr`, `zh`, … (21) | The locale of localized names, such as `ar` or `en`; if omitted, `Accept-Language` decides, then `ar`. |
401
+ | `sort` | query | no | `qiraah`, `-qiraah`, `code`, `-code`, `recitation_count`, `-recitation_count` | A sort key, with a leading `-` for descending order; the default is on the route. |
402
+
403
+ #### `client.listSurahs()`
404
+
405
+ `GET /v4/surahs` — Lists the surahs
406
+
407
+ | Parameter | In | Required | Values | Meaning |
408
+ |---|---|---|---|---|
409
+ | `limit` | query | no | string | The maximum number of items in the page, from 1 to 200; the default is 50, or 200 on the reference lists. |
410
+ | `cursor` | query | no | string | The opaque cursor from `links.next` of the previous page. |
411
+ | `all` | query | no | `true`, `false` | If true, returns every item in one response, without a page limit. |
412
+ | `locale` | query | no | `ar`, `en`, `fr`, `ru`, `de`, `es`, `tr`, `zh`, … (21) | The locale of localized names, such as `ar` or `en`; if omitted, `Accept-Language` decides, then `ar`. |
413
+ | `sort` | query | no | `number`, `-number`, `name`, `-name`, `ayah_count`, `-ayah_count`, `revelation`, `-revelation` | A sort key, with a leading `-` for descending order; the default is on the route. |
414
+
415
+ ### Reciters
416
+
417
+ Reciters and their recitations.
418
+
419
+ #### `client.getReciter()`
420
+
421
+ `GET /v4/reciters/{idOrSlug}` — Gets a reciter
422
+
423
+ | Parameter | In | Required | Values | Meaning |
424
+ |---|---|---|---|---|
425
+ | `idOrSlug` | path | yes | string | The reciter's code, for example `mahmoud-husary`. |
426
+ | `locale` | query | no | `ar`, `en`, `fr`, `ru`, `de`, `es`, `tr`, `zh`, … (21) | The locale of localized names, such as `ar` or `en`; if omitted, `Accept-Language` decides, then `ar`. |
427
+ | `include` | query | no | `recitations`, `recitations.surahs` | Comma-separated related data to embed in the response. |
428
+
429
+ #### `client.listReciters()`
430
+
431
+ `GET /v4/reciters` — Lists the reciters
432
+
433
+ | Parameter | In | Required | Values | Meaning |
434
+ |---|---|---|---|---|
435
+ | `limit` | query | no | string | The maximum number of items in the page, from 1 to 200; the default is 50, or 200 on the reference lists. |
436
+ | `cursor` | query | no | string | The opaque cursor from `links.next` of the previous page. |
437
+ | `all` | query | no | `true`, `false` | If true, returns every item in one response, without a page limit. |
438
+ | `locale` | query | no | `ar`, `en`, `fr`, `ru`, `de`, `es`, `tr`, `zh`, … (21) | The locale of localized names, such as `ar` or `en`; if omitted, `Accept-Language` decides, then `ar`. |
439
+ | `q` | query | no | string | A name, alias or code to search for; ignores diacritics and tolerates spelling differences, so `husary` finds "Al-Hussary"; the best matches come first. |
440
+ | `country` | query | no | string | A two-letter ISO 3166-1 country code, for example `SA`; keeps only the reciters from that country. |
441
+ | `riwayah` | query | no | `qalun_an_nafi`, `warsh_an_nafi`, `bazzi_an_ibn_kathir`, `qunbul_an_ibn_kathir`, `duri_an_abu_amr`, `susi_an_abu_amr`, `hisham_an_ibn_amir`, `ibn_dhakwan_an_ibn_amir`, … (20) | The code of a riwayah; on a list keeps the items whose `riwayahs` include it, on a surah's text chooses whose wording is returned. |
442
+ | `has` | query | no | `ayah_timings` | The feature an item must have; `ayah_timings` keeps only those with ayah timings. |
443
+ | `updated_since` | query | no | string | An RFC 3339 UTC timestamp, for example `2026-01-01T00:00:00Z`; keeps the items changed at or after it. |
444
+ | `include` | query | no | `recitations`, `recitations.surahs` | Comma-separated related data to embed in the response. |
445
+ | `sort` | query | no | `name`, `-name`, `recitation_count`, `-recitation_count`, `updated_at`, `-updated_at`, `id`, `-id` | A sort key, with a leading `-` for descending order; the default is on the route. |
446
+
447
+ ### Recitations
448
+
449
+ Recitations, their audio files, timings and timing releases.
450
+
451
+ #### `client.getAyahTimings()`
452
+
453
+ `GET /v4/recitations/{id}/surahs/{n}/ayah-timings` — Gets the ayah timings of a surah
454
+
455
+ | Parameter | In | Required | Values | Meaning |
456
+ |---|---|---|---|---|
457
+ | `id` | path | yes | string | The recitation's folder address `{reciter}/r{n}`, for example `mahmoud-husary/r1`. |
458
+ | `n` | path | yes | string | The surah number, from 1 to 114, for example `4`. |
459
+ | `ayah` | query | no | string | An ayah number, for example `1`, or a range such as `1-3`; keeps only those ayahs. |
460
+ | `include` | query | no | `text` | Comma-separated related data to embed in the response. |
461
+
462
+ #### `client.getLetterTimings()`
463
+
464
+ `GET /v4/recitations/{id}/surahs/{n}/letter-timings` — Gets the letter timings of a surah
465
+
466
+ | Parameter | In | Required | Values | Meaning |
467
+ |---|---|---|---|---|
468
+ | `id` | path | yes | string | The recitation's folder address `{reciter}/r{n}`, for example `mahmoud-husary/r1`. |
469
+ | `n` | path | yes | string | The surah number, from 1 to 114, for example `4`. |
470
+ | `ayah` | query | no | string | An ayah number, for example `1`, or a range such as `1-3`; keeps only those ayahs. |
471
+ | `from_ms` | query | no | string | A position in the audio, in milliseconds; keeps the entries that end after it. |
472
+ | `to_ms` | query | no | string | A position in the audio, in milliseconds; keeps the entries that start before it, so an entry starting exactly at `to_ms` is left out. |
473
+ | `at_ms` | query | no | string | A position in the audio, in milliseconds; keeps the entries that contain it, counting the start but not the end, so a boundary between two entries matches only the later one. |
474
+ | `view` | query | no | `playback`, `positions` | The layout of a word, letter or phoneme timings response: `playback` (the default), the entries in the order heard, or `positions`, the same intervals grouped by ayah and position. |
475
+ | `include` | query | no | `alignment`, `audio`, `summary`, `segments` | Comma-separated related data to embed in the response. |
476
+
477
+ #### `client.getPhonemeTimings()`
478
+
479
+ `GET /v4/recitations/{id}/surahs/{n}/phoneme-timings` — Gets the phoneme timings of a surah (Beta)
480
+
481
+ | Parameter | In | Required | Values | Meaning |
482
+ |---|---|---|---|---|
483
+ | `id` | path | yes | string | The recitation's folder address `{reciter}/r{n}`, for example `mahmoud-husary/r1`. |
484
+ | `n` | path | yes | string | The surah number, from 1 to 114, for example `4`. |
485
+ | `ayah` | query | no | string | An ayah number, for example `1`, or a range such as `1-3`; keeps only those ayahs. |
486
+ | `from_ms` | query | no | string | A position in the audio, in milliseconds; keeps the entries that end after it. |
487
+ | `to_ms` | query | no | string | A position in the audio, in milliseconds; keeps the entries that start before it, so an entry starting exactly at `to_ms` is left out. |
488
+ | `at_ms` | query | no | string | A position in the audio, in milliseconds; keeps the entries that contain it, counting the start but not the end, so a boundary between two entries matches only the later one. |
489
+ | `view` | query | no | `playback`, `positions` | The layout of a word, letter or phoneme timings response: `playback` (the default), the entries in the order heard, or `positions`, the same intervals grouped by ayah and position. |
490
+ | `include` | query | no | `alignment`, `audio`, `summary`, `segments` | Comma-separated related data to embed in the response. |
491
+
492
+ #### `client.getRecitation()`
493
+
494
+ `GET /v4/recitations/{id}` — Gets a recitation
495
+
496
+ | Parameter | In | Required | Values | Meaning |
497
+ |---|---|---|---|---|
498
+ | `id` | path | yes | string | The recitation's folder address `{reciter}/r{n}`, for example `mahmoud-husary/r1`. |
499
+ | `locale` | query | no | `ar`, `en`, `fr`, `ru`, `de`, `es`, `tr`, `zh`, … (21) | The locale of localized names, such as `ar` or `en`; if omitted, `Accept-Language` decides, then `ar`. |
500
+ | `include` | query | no | `surahs` | Comma-separated related data to embed in the response. |
501
+
502
+ #### `client.getRecitationSurah()`
503
+
504
+ `GET /v4/recitations/{id}/surahs/{n}` — Gets one surah of a recitation
505
+
506
+ | Parameter | In | Required | Values | Meaning |
507
+ |---|---|---|---|---|
508
+ | `id` | path | yes | string | The recitation's folder address `{reciter}/r{n}`, for example `mahmoud-husary/r1`. |
509
+ | `n` | path | yes | string | The surah number, from 1 to 114, for example `4`. |
510
+
511
+ #### `client.getSurahClip()`
512
+
513
+ `GET /v4/recitations/{id}/surahs/{n}/clip` — Gets an audio clip of some ayahs of a surah
514
+
515
+ | Parameter | In | Required | Values | Meaning |
516
+ |---|---|---|---|---|
517
+ | `id` | path | yes | string | The recitation's folder address `{reciter}/r{n}`, for example `mahmoud-husary/r1`. |
518
+ | `n` | path | yes | string | The surah number, from 1 to 114, for example `4`. |
519
+ | `ayah` | query | yes | string | The ayah to cut, for example `1`, or a range such as `1-2`; `0` is the basmalah. |
520
+ | `exact` | query | no | `0`, `1`, `true`, `false` | With `true`, cuts the clip on the exact ayah boundaries by re-encoding it, which takes longer; by default it is cut without re-encoding, on the nearest frame. |
521
+
522
+ #### `client.getTimingRelease()`
523
+
524
+ `GET /v4/timing-releases/{release}` — Gets a release
525
+
526
+ | Parameter | In | Required | Values | Meaning |
527
+ |---|---|---|---|---|
528
+ | `release` | path | yes | string | The name of a timing release, in `YYYY.MM.N` form, for example `2026.09.1`. |
529
+
530
+ #### `client.getWordTimings()`
531
+
532
+ `GET /v4/recitations/{id}/surahs/{n}/word-timings` — Gets the word timings of a surah
533
+
534
+ | Parameter | In | Required | Values | Meaning |
535
+ |---|---|---|---|---|
536
+ | `id` | path | yes | string | The recitation's folder address `{reciter}/r{n}`, for example `mahmoud-husary/r1`. |
537
+ | `n` | path | yes | string | The surah number, from 1 to 114, for example `4`. |
538
+ | `ayah` | query | no | string | An ayah number, for example `1`, or a range such as `1-3`; keeps only those ayahs. |
539
+ | `from_ms` | query | no | string | A position in the audio, in milliseconds; keeps the entries that end after it. |
540
+ | `to_ms` | query | no | string | A position in the audio, in milliseconds; keeps the entries that start before it, so an entry starting exactly at `to_ms` is left out. |
541
+ | `at_ms` | query | no | string | A position in the audio, in milliseconds; keeps the entries that contain it, counting the start but not the end, so a boundary between two entries matches only the later one. |
542
+ | `view` | query | no | `playback`, `positions` | The layout of a word, letter or phoneme timings response: `playback` (the default), the entries in the order heard, or `positions`, the same intervals grouped by ayah and position. |
543
+ | `include` | query | no | `alignment`, `audio`, `summary`, `segments`, `held_too_long`, `prologue`, `pieces`, `text` | Comma-separated related data to embed in the response. |
544
+ | `estimate` | query | no | `true`, `false` | If false, turns off the estimated intervals for words with no detected audio. |
545
+
546
+ #### `client.listRecitations()`
547
+
548
+ `GET /v4/recitations` — Lists the recitations
549
+
550
+ | Parameter | In | Required | Values | Meaning |
551
+ |---|---|---|---|---|
552
+ | `limit` | query | no | string | The maximum number of items in the page, from 1 to 200; the default is 50, or 200 on the reference lists. |
553
+ | `cursor` | query | no | string | The opaque cursor from `links.next` of the previous page. |
554
+ | `all` | query | no | `true`, `false` | If true, returns every item in one response, without a page limit. |
555
+ | `locale` | query | no | `ar`, `en`, `fr`, `ru`, `de`, `es`, `tr`, `zh`, … (21) | The locale of localized names, such as `ar` or `en`; if omitted, `Accept-Language` decides, then `ar`. |
556
+ | `reciter` | query | no | string | The code, numeric ID or slug of a reciter, in any case, for example `mahmoud-husary`; keeps only that reciter's items. |
557
+ | `riwayah` | query | no | `qalun_an_nafi`, `warsh_an_nafi`, `bazzi_an_ibn_kathir`, `qunbul_an_ibn_kathir`, `duri_an_abu_amr`, `susi_an_abu_amr`, `hisham_an_ibn_amir`, `ibn_dhakwan_an_ibn_amir`, … (20) | The code of a riwayah; on a list keeps the items whose `riwayahs` include it, on a surah's text chooses whose wording is returned. |
558
+ | `qiraah` | query | no | `nafi`, `ibn_kathir`, `abu_amr`, `ibn_amir`, `asim`, `hamzah`, `kisai`, `abu_jafar`, … (10) | The code of a qiraah; keeps the items whose `qiraahs` include it. |
559
+ | `style` | query | no | `murattal`, `mujawwad`, `muallim`, `featured`, `archival` | The recitation style to keep: `murattal`, `mujawwad`, `muallim`, `featured` or `archival`. |
560
+ | `occasion` | query | no | `studio`, `taraweeh`, `live`, `radio`, `unknown` | How the recording was made: `studio`, `taraweeh`, `live` or `radio`. |
561
+ | `tariq` | query | no | `shatibiyyah`, `tayyibat_al_nashr`, `durrah`, `taysir`, `azraq`, `abu_nashit`, `asbahani` | The code of a tariq; keeps the items recorded through it. |
562
+ | `has` | query | no | `ayah_timings` | The feature an item must have; `ayah_timings` keeps only those with ayah timings. |
563
+ | `surah` | query | no | string | A surah number from 1 to 114; keeps only the items of that surah. |
564
+ | `updated_since` | query | no | string | An RFC 3339 UTC timestamp, for example `2026-01-01T00:00:00Z`; keeps the items changed at or after it. |
565
+ | `sort` | query | no | `id`, `-id`, `surahs`, `-surahs`, `updated`, `-updated`, `recorded_year`, `-recorded_year` | A sort key, with a leading `-` for descending order; the default is on the route. |
566
+
567
+ #### `client.listRecitationSurahs()`
568
+
569
+ `GET /v4/recitations/{id}/surahs` — Lists the surahs of a recitation
570
+
571
+ | Parameter | In | Required | Values | Meaning |
572
+ |---|---|---|---|---|
573
+ | `id` | path | yes | string | The recitation's folder address `{reciter}/r{n}`, for example `mahmoud-husary/r1`. |
574
+ | `limit` | query | no | string | The maximum number of items in the page, from 1 to 200; the default is 50, or 200 on the reference lists. |
575
+ | `cursor` | query | no | string | The opaque cursor from `links.next` of the previous page. |
576
+ | `all` | query | no | `true`, `false` | If true, returns every item in one response, without a page limit. |
577
+ | `locale` | query | no | `ar`, `en`, `fr`, `ru`, `de`, `es`, `tr`, `zh`, … (21) | The locale of localized names, such as `ar` or `en`; if omitted, `Accept-Language` decides, then `ar`. |
578
+ | `sort` | query | no | `surah`, `-surah`, `duration_ms`, `-duration_ms` | A sort key, with a leading `-` for descending order; the default is on the route. |
579
+
580
+ #### `client.listTimingReleases()`
581
+
582
+ `GET /v4/timing-releases` — Lists the releases
583
+
584
+ | Parameter | In | Required | Values | Meaning |
585
+ |---|---|---|---|---|
586
+ | `limit` | query | no | string | The maximum number of items in the page, from 1 to 200; the default is 50, or 200 on the reference lists. |
587
+ | `cursor` | query | no | string | The opaque cursor from `links.next` of the previous page. |
588
+ | `all` | query | no | `true`, `false` | If true, returns every item in one response, without a page limit. |
589
+ | `sort` | query | no | `created_at`, `-created_at`, `release`, `-release` | A sort key, with a leading `-` for descending order; the default is on the route. |
590
+
591
+ ### Media
592
+
593
+ Radios, TV channels, tafsirs, spoken translations and curated collections.
594
+
595
+ #### `client.getCollection()`
596
+
597
+ `GET /v4/collections/{code}` — Gets a collection
598
+
599
+ | Parameter | In | Required | Values | Meaning |
600
+ |---|---|---|---|---|
601
+ | `code` | path | yes | string | The code of a collection, for example `for-memorisation`; a numeric ID redirects to it. |
602
+ | `locale` | query | no | `ar`, `en`, `fr`, `ru`, `de`, `es`, `tr`, `zh`, … (21) | The locale of localized names, such as `ar` or `en`; if omitted, `Accept-Language` decides, then `ar`. |
603
+
604
+ #### `client.getRadio()`
605
+
606
+ `GET /v4/radios/{id}` — Gets a radio station
607
+
608
+ | Parameter | In | Required | Values | Meaning |
609
+ |---|---|---|---|---|
610
+ | `id` | path | yes | string | The numeric ID of a radio station, for example `1`. |
611
+ | `locale` | query | no | `ar`, `en`, `fr`, `ru`, `de`, `es`, `tr`, `zh`, … (21) | The locale of localized names, such as `ar` or `en`; if omitted, `Accept-Language` decides, then `ar`. |
612
+ | `include` | query | no | `tracks` | Comma-separated related data to embed in the response. |
613
+
614
+ #### `client.getSpokenTranslation()`
615
+
616
+ `GET /v4/spoken-translations/{code}` — Gets a spoken translation
617
+
618
+ | Parameter | In | Required | Values | Meaning |
619
+ |---|---|---|---|---|
620
+ | `code` | path | yes | string | The code of a spoken translation, for example `ha`. |
621
+ | `locale` | query | no | `ar`, `en`, `fr`, `ru`, `de`, `es`, `tr`, `zh`, … (21) | The locale of localized names, such as `ar` or `en`; if omitted, `Accept-Language` decides, then `ar`. |
622
+
623
+ #### `client.getTafsir()`
624
+
625
+ `GET /v4/tafsirs/{id}` — Gets a tafsir work
626
+
627
+ | Parameter | In | Required | Values | Meaning |
628
+ |---|---|---|---|---|
629
+ | `id` | path | yes | string | The numeric ID of a tafsir, for example `1`. |
630
+ | `locale` | query | no | `ar`, `en`, `fr`, `ru`, `de`, `es`, `tr`, `zh`, … (21) | The locale of localized names, such as `ar` or `en`; if omitted, `Accept-Language` decides, then `ar`. |
631
+
632
+ #### `client.getTvChannel()`
633
+
634
+ `GET /v4/tv/{id}` — Gets a TV channel
635
+
636
+ | Parameter | In | Required | Values | Meaning |
637
+ |---|---|---|---|---|
638
+ | `id` | path | yes | string | The numeric ID of a TV channel, for example `1`. |
639
+ | `locale` | query | no | `ar`, `en`, `fr`, `ru`, `de`, `es`, `tr`, `zh`, … (21) | The locale of localized names, such as `ar` or `en`; if omitted, `Accept-Language` decides, then `ar`. |
640
+
641
+ #### `client.listCollectionItems()`
642
+
643
+ `GET /v4/collections/{code}/items` — Lists the items of a collection
644
+
645
+ | Parameter | In | Required | Values | Meaning |
646
+ |---|---|---|---|---|
647
+ | `code` | path | yes | string | The code of a collection, for example `for-memorisation`; a numeric ID redirects to it. |
648
+ | `locale` | query | no | `ar`, `en`, `fr`, `ru`, `de`, `es`, `tr`, `zh`, … (21) | The locale of localized names, such as `ar` or `en`; if omitted, `Accept-Language` decides, then `ar`. |
649
+ | `limit` | query | no | string | The maximum number of items in the page, from 1 to 200; the default is 50, or 200 on the reference lists. |
650
+ | `cursor` | query | no | string | The opaque cursor from `links.next` of the previous page. |
651
+ | `all` | query | no | `true`, `false` | If true, returns every item in one response, without a page limit. |
652
+
653
+ #### `client.listCollections()`
654
+
655
+ `GET /v4/collections` — Lists the collections
656
+
657
+ | Parameter | In | Required | Values | Meaning |
658
+ |---|---|---|---|---|
659
+ | `locale` | query | no | `ar`, `en`, `fr`, `ru`, `de`, `es`, `tr`, `zh`, … (21) | The locale of localized names, such as `ar` or `en`; if omitted, `Accept-Language` decides, then `ar`. |
660
+ | `limit` | query | no | string | The maximum number of items in the page, from 1 to 200; the default is 50, or 200 on the reference lists. |
661
+ | `cursor` | query | no | string | The opaque cursor from `links.next` of the previous page. |
662
+ | `all` | query | no | `true`, `false` | If true, returns every item in one response, without a page limit. |
663
+
664
+ #### `client.listRadios()`
665
+
666
+ `GET /v4/radios` — Lists the radio stations
667
+
668
+ | Parameter | In | Required | Values | Meaning |
669
+ |---|---|---|---|---|
670
+ | `locale` | query | no | `ar`, `en`, `fr`, `ru`, `de`, `es`, `tr`, `zh`, … (21) | The locale of localized names, such as `ar` or `en`; if omitted, `Accept-Language` decides, then `ar`. |
671
+ | `limit` | query | no | string | The maximum number of items in the page, from 1 to 200; the default is 50, or 200 on the reference lists. |
672
+ | `cursor` | query | no | string | The opaque cursor from `links.next` of the previous page. |
673
+ | `all` | query | no | `true`, `false` | If true, returns every item in one response, without a page limit. |
674
+ | `category` | query | no | string | The code of a radio category, as in `category.code` of the station, for example `duas_and_adhkar`; keeps only the stations in it. |
675
+ | `reciter` | query | no | string | The code, numeric ID or slug of a reciter, in any case, for example `mahmoud-husary`; keeps only that reciter's items. |
676
+ | `sort` | query | no | `name`, `-name`, `category`, `-category` | A sort key, with a leading `-` for descending order; the default is on the route. |
677
+
678
+ #### `client.listSpokenTranslations()`
679
+
680
+ `GET /v4/spoken-translations` — Lists the spoken translations
681
+
682
+ | Parameter | In | Required | Values | Meaning |
683
+ |---|---|---|---|---|
684
+ | `locale` | query | no | `ar`, `en`, `fr`, `ru`, `de`, `es`, `tr`, `zh`, … (21) | The locale of localized names, such as `ar` or `en`; if omitted, `Accept-Language` decides, then `ar`. |
685
+ | `limit` | query | no | string | The maximum number of items in the page, from 1 to 200; the default is 50, or 200 on the reference lists. |
686
+ | `cursor` | query | no | string | The opaque cursor from `links.next` of the previous page. |
687
+ | `all` | query | no | `true`, `false` | If true, returns every item in one response, without a page limit. |
688
+ | `language` | query | no | `ar`, `bn`, `bs`, `de`, `el`, `en`, `es`, `fr`, … (18) | An ISO 639-1 language code, for example `en`; keeps only the items whose audio is in that language. |
689
+ | `reciter` | query | no | string | The code, numeric ID or slug of a reciter, in any case, for example `mahmoud-husary`; keeps only that reciter's items. |
690
+ | `sort` | query | no | `language`, `-language`, `code`, `-code` | A sort key, with a leading `-` for descending order; the default is on the route. |
691
+
692
+ #### `client.listTafsirItems()`
693
+
694
+ `GET /v4/tafsirs/{id}/items` — Lists the items of a tafsir work
695
+
696
+ | Parameter | In | Required | Values | Meaning |
697
+ |---|---|---|---|---|
698
+ | `id` | path | yes | string | The numeric ID of a tafsir, for example `1`. |
699
+ | `locale` | query | no | `ar`, `en`, `fr`, `ru`, `de`, `es`, `tr`, `zh`, … (21) | The locale of localized names, such as `ar` or `en`; if omitted, `Accept-Language` decides, then `ar`. |
700
+ | `limit` | query | no | string | The maximum number of items in the page, from 1 to 200; the default is 50, or 200 on the reference lists. |
701
+ | `cursor` | query | no | string | The opaque cursor from `links.next` of the previous page. |
702
+ | `all` | query | no | `true`, `false` | If true, returns every item in one response, without a page limit. |
703
+ | `surah` | query | no | string | A surah number from 1 to 114; keeps only the items of that surah. |
704
+ | `sort` | query | no | `position`, `-position`, `surah`, `-surah`, `id`, `-id` | A sort key, with a leading `-` for descending order; the default is on the route. |
705
+
706
+ #### `client.listTafsirs()`
707
+
708
+ `GET /v4/tafsirs` — Lists the tafsir works
709
+
710
+ | Parameter | In | Required | Values | Meaning |
711
+ |---|---|---|---|---|
712
+ | `locale` | query | no | `ar`, `en`, `fr`, `ru`, `de`, `es`, `tr`, `zh`, … (21) | The locale of localized names, such as `ar` or `en`; if omitted, `Accept-Language` decides, then `ar`. |
713
+ | `limit` | query | no | string | The maximum number of items in the page, from 1 to 200; the default is 50, or 200 on the reference lists. |
714
+ | `cursor` | query | no | string | The opaque cursor from `links.next` of the previous page. |
715
+ | `all` | query | no | `true`, `false` | If true, returns every item in one response, without a page limit. |
716
+ | `language` | query | no | `ar`, `bn`, `bs`, `de`, `el`, `en`, `es`, `fr`, … (18) | An ISO 639-1 language code, for example `en`; keeps only the items whose audio is in that language. |
717
+ | `sort` | query | no | `name`, `-name`, `item_count`, `-item_count` | A sort key, with a leading `-` for descending order; the default is on the route. |
718
+
719
+ #### `client.listTvChannels()`
720
+
721
+ `GET /v4/tv` — Lists the TV channels
722
+
723
+ | Parameter | In | Required | Values | Meaning |
724
+ |---|---|---|---|---|
725
+ | `locale` | query | no | `ar`, `en`, `fr`, `ru`, `de`, `es`, `tr`, `zh`, … (21) | The locale of localized names, such as `ar` or `en`; if omitted, `Accept-Language` decides, then `ar`. |
726
+ | `limit` | query | no | string | The maximum number of items in the page, from 1 to 200; the default is 50, or 200 on the reference lists. |
727
+ | `cursor` | query | no | string | The opaque cursor from `links.next` of the previous page. |
728
+ | `all` | query | no | `true`, `false` | If true, returns every item in one response, without a page limit. |
729
+ | `sort` | query | no | `id`, `-id`, `name`, `-name` | A sort key, with a leading `-` for descending order; the default is on the route. |
730
+
731
+ ### Search
732
+
733
+ One query across reciters, surahs, riwayahs and radios.
734
+
735
+ #### `client.search()`
736
+
737
+ `GET /v4/search` — Searches reciters, surahs, riwayahs and radios
738
+
739
+ | Parameter | In | Required | Values | Meaning |
740
+ |---|---|---|---|---|
741
+ | `locale` | query | no | `ar`, `en`, `fr`, `ru`, `de`, `es`, `tr`, `zh`, … (21) | The locale of localized names, such as `ar` or `en`; if omitted, `Accept-Language` decides, then `ar`. |
742
+ | `q` | query | yes | string | The text to search for, 1 to 120 characters; it ignores diacritics and hamza differences and tolerates misspellings. |
743
+ | `type` | query | no | `reciter`, `surah`, `riwayah`, `radio` | A comma-separated list of the kinds to search; defaults to all four. |
744
+ | `limit` | query | no | string | The maximum number of hits per kind, from 1 to 50; defaults to 10. |
745
+ | `country` | query | no | string | A two-letter ISO 3166-1 country code, for example `SA`; keeps only the reciters from that country. |
746
+ | `riwayah` | query | no | `qalun_an_nafi`, `warsh_an_nafi`, `bazzi_an_ibn_kathir`, `qunbul_an_ibn_kathir`, `duri_an_abu_amr`, `susi_an_abu_amr`, `hisham_an_ibn_amir`, `ibn_dhakwan_an_ibn_amir`, … (20) | The code of a riwayah; on a list keeps the items whose `riwayahs` include it, on a surah's text chooses whose wording is returned. |
747
+
748
+ <!-- operations:end -->
749
+
750
+ ## Licence
751
+
752
+ MIT. The licence covers this client only. Recitations belong to their reciters and publishers: name the
753
+ reciter and the riwayah wherever you play a recording.