Get Ayah recitations for specific Surah​
Returns per-verse audio file URLs for the chapter. Response includes a pagination object.
Path Parameters
Recitation Id, you can get list of all ayah by ayah recitations using the /resources/recitations endpoint
Possible values: >= 1 and <= 114
Query Parameters
Default value: 1
For paginating within the result
Possible values: >= 1 and <= 50
Default value: 10
records per api call, you can get maximum 50 records.
- 200
- 400
- 401
- 403
- 404
- 422
- 429
- 500
- 502
- 503
- 504
Successful response
Schema
- Array [
- ]
audio_files object[] required
Relative or absolute URL to the verse audio file.
pagination object required
Next page number, or null if this is the last page.
{
  "audio_files": [
    {
      "verse_key": "1:1",
      "url": "Alafasy/mp3/001001.mp3"
    }
  ],
  "pagination": {
    "per_page": 10,
    "current_page": 1,
    "next_page": null,
    "total_pages": 1,
    "total_records": 7
  }
}
First page (no segments/timestamps)
{
  "audio_files": [
    {
      "verse_key": "1:1",
      "url": "Alafasy/mp3/001001.mp3"
    },
    {
      "verse_key": "1:2",
      "url": "Alafasy/mp3/001002.mp3"
    },
    {
      "verse_key": "1:3",
      "url": "Alafasy/mp3/001003.mp3"
    },
    {
      "verse_key": "1:4",
      "url": "Alafasy/mp3/001004.mp3"
    },
    {
      "verse_key": "1:5",
      "url": "Alafasy/mp3/001005.mp3"
    },
    {
      "verse_key": "1:6",
      "url": "Alafasy/mp3/001006.mp3"
    },
    {
      "verse_key": "1:7",
      "url": "Alafasy/mp3/001007.mp3"
    }
  ],
  "pagination": {
    "per_page": 10,
    "current_page": 1,
    "next_page": null,
    "total_pages": 1,
    "total_records": 7
  }
}
Second page (illustrative)
{
  "audio_files": [],
  "pagination": {
    "per_page": 10,
    "current_page": 2,
    "next_page": null,
    "total_pages": 2,
    "total_records": 15
  }
}
Will be returned when the request is invalid e.g. request is missing required headers or with invalid query parameters.
Schema
Possible values: [gateway_timeout, service_unavailable, bad_gateway, internal_server_error, unprocessable_entity, not_found, forbidden, unauthorized, invalid_request, invalid_token, insufficient_scope, service_error, invalid_path, rate_limit_exceeded]
{
  "message": "string",
  "type": "gateway_timeout",
  "success": true
}
{
  "message": "The request is missing required headers or is invalid",
  "type": "invalid_request",
  "success": false
}
Will be returned when the request is unauthorized.
Schema
Possible values: [gateway_timeout, service_unavailable, bad_gateway, internal_server_error, unprocessable_entity, not_found, forbidden, unauthorized, invalid_request, invalid_token, insufficient_scope, service_error, invalid_path, rate_limit_exceeded]
{
  "message": "string",
  "type": "gateway_timeout",
  "success": true
}
{
  "message": "The request requires user authentication",
  "type": "unauthorized",
  "success": false
}
Forbidden error. Can either be due to access token not being passed, having been expired or the caller trying to access a resource without enough permissions.
Schema
Possible values: [gateway_timeout, service_unavailable, bad_gateway, internal_server_error, unprocessable_entity, not_found, forbidden, unauthorized, invalid_request, invalid_token, insufficient_scope, service_error, invalid_path, rate_limit_exceeded]
{
  "message": "string",
  "type": "gateway_timeout",
  "success": true
}
{
  "message": "The server understood the request, but refuses to authorize it",
  "type": "forbidden",
  "success": false
}
Not Found. The resource being accessed does not exist.
Schema
Possible values: [gateway_timeout, service_unavailable, bad_gateway, internal_server_error, unprocessable_entity, not_found, forbidden, unauthorized, invalid_request, invalid_token, insufficient_scope, service_error, invalid_path, rate_limit_exceeded]
{
  "message": "string",
  "type": "gateway_timeout",
  "success": true
}
{
  "message": "The requested resource could not be found",
  "type": "not_found",
  "success": false
}
Validation Error. The request includes one or more invalid params. Please check the request params and try again.
Schema
Possible values: [gateway_timeout, service_unavailable, bad_gateway, internal_server_error, unprocessable_entity, not_found, forbidden, unauthorized, invalid_request, invalid_token, insufficient_scope, service_error, invalid_path, rate_limit_exceeded]
{
  "message": "string",
  "type": "gateway_timeout",
  "success": true
}
{
  "message": "The request was well-formed but was unable to be followed due to semantic errors",
  "type": "unprocessable_entity",
  "success": false
}
Rate-limit exceeded
Schema
Possible values: [gateway_timeout, service_unavailable, bad_gateway, internal_server_error, unprocessable_entity, not_found, forbidden, unauthorized, invalid_request, invalid_token, insufficient_scope, service_error, invalid_path, rate_limit_exceeded]
{
  "message": "string",
  "type": "gateway_timeout",
  "success": true
}
{
  "message": "Too many requests, please try again later",
  "type": "rate_limit_exceeded",
  "success": false
}
Server Error. Something went wrong, try again later.
Schema
Possible values: [gateway_timeout, service_unavailable, bad_gateway, internal_server_error, unprocessable_entity, not_found, forbidden, unauthorized, invalid_request, invalid_token, insufficient_scope, service_error, invalid_path, rate_limit_exceeded]
{
  "message": "string",
  "type": "gateway_timeout",
  "success": true
}
{
  "message": "The server encountered an internal error and was unable to complete your request",
  "type": "internal_server_error",
  "success": false
}
Bad Gateway
Schema
Possible values: [gateway_timeout, service_unavailable, bad_gateway, internal_server_error, unprocessable_entity, not_found, forbidden, unauthorized, invalid_request, invalid_token, insufficient_scope, service_error, invalid_path, rate_limit_exceeded]
{
  "message": "string",
  "type": "gateway_timeout",
  "success": true
}
{
  "message": "The server was acting as a gateway or proxy and received an invalid response from the upstream server",
  "type": "bad_gateway",
  "success": false
}
Service Unavailable
Schema
Possible values: [gateway_timeout, service_unavailable, bad_gateway, internal_server_error, unprocessable_entity, not_found, forbidden, unauthorized, invalid_request, invalid_token, insufficient_scope, service_error, invalid_path, rate_limit_exceeded]
{
  "message": "string",
  "type": "gateway_timeout",
  "success": true
}
{
  "message": "The server is currently unable to handle the request due to a temporary overload or scheduled maintenance",
  "type": "service_unavailable",
  "success": false
}
Gateway Timeout
Schema
Possible values: [gateway_timeout, service_unavailable, bad_gateway, internal_server_error, unprocessable_entity, not_found, forbidden, unauthorized, invalid_request, invalid_token, insufficient_scope, service_error, invalid_path, rate_limit_exceeded]
{
  "message": "string",
  "type": "gateway_timeout",
  "success": true
}
{
  "message": "The server was acting as a gateway or proxy and did not receive a timely response from the upstream server",
  "type": "gateway_timeout",
  "success": false
}