Get answers for specific Ayah
Get the published questions and answers shown under a specific ayah. Non-Arabic languages resolve to English upstream. This upstream endpoint uses the query parameter name pageSize instead of the API-wide per_page convention. If page is omitted, pagination is not applied even when pageSize is provided.
Path Parameters
Ayah key in chapter:verse format, for example 2:255.
Query Parameters
Possible values: >= 1
1-based page number. When omitted, pagination is not applied.
Possible values: >= 1 and <= 10
Page size when page is provided. This upstream endpoint uses pageSize instead of the API-wide per_page convention. Maximum 10.
Default value: en
Requested language. ar returns Arabic; every other language resolves to English upstream.
- 200
- 400
- 401
- 403
- 422
- 429
- 500
- 502
- 503
- 504
Successful response
Schema
- Array [
- Array [
- ]
- ]
questions object[] required
Question identifier.
Question text.
Possible values: [CLARIFICATION, TAFSIR, COMMUNITY]
Verse ranges returned by the internal DTO, e.g. 2:255-2:257.
Surah number associated with the question.
Question language ISO code when present.
Possible values: [New, Draft, Published, Answered]
answers object[] required
Answer identifier.
Published answer body.
Display name of the responder.
Possible values: [Draft, Published]
Answer language ISO code when present.
Total number of matching questions before pagination.
{
"questions": [
{
"id": "string",
"body": "string",
"type": "CLARIFICATION",
"ranges": [
"string"
],
"surah": 0,
"theme": [
"string"
],
"summary": "string",
"references": [
"string"
],
"language": "string",
"status": "New",
"answers": [
{
"id": "string",
"body": "string",
"answeredBy": "string",
"status": "Draft",
"language": "string"
}
]
}
],
"totalCount": 0
}
Successful response
{
"questions": [
{
"id": "question-1",
"body": "What is the context of this ayah?",
"type": "CLARIFICATION",
"ranges": [
"2:255"
],
"surah": 2,
"theme": [
"Faith"
],
"references": [
"Tafsir al-Tabari"
],
"language": "en",
"status": "Published",
"answers": [
{
"id": "answer-1",
"body": "This ayah is known as Ayat al-Kursi.",
"answeredBy": "Scholar",
"status": "Published",
"language": "en"
}
]
}
],
"totalCount": 1
}
Ayah with published answers
{
"questions": [
{
"id": "question-1",
"body": "What is the context of this ayah?",
"type": "CLARIFICATION",
"ranges": [
"2:255"
],
"surah": 2,
"theme": [
"Faith"
],
"references": [
"Tafsir al-Tabari"
],
"language": "en",
"status": "Published",
"answers": [
{
"id": "answer-1",
"body": "This ayah is known as Ayat al-Kursi.",
"answeredBy": "Scholar",
"status": "Published",
"language": "en"
}
]
}
],
"totalCount": 1
}
Ayah with no answers
{
"questions": [],
"totalCount": 0
}
Invalid parameter. Returned for malformed ayah keys, invalid ranges, or invalid pagination values.
Schema
error object required
Possible values: [INVALID_PARAMETER, NOT_FOUND]
details object
{
"status": 0,
"error": {
"code": "INVALID_PARAMETER",
"message": "string",
"details": {}
}
}
{
"status": 400,
"error": {
"code": "INVALID_PARAMETER",
"message": "Invalid ayah_key format. Expected format: chapter:verse (e.g., 12:12)",
"details": {
"parameter": "ayah_key",
"provided": "2-255",
"expected": "12:12"
}
}
}
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
}
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
}