Count Qira'at junctures within a verse range
Get a map of verse keys to the number of approved Qira'at junctures in an inclusive verse range. Only verses with at least one juncture appear in the map, so an empty object means no variations in the range. Use it to decide which verses to request from the matrix endpoints. Requires the qiraat.read scope (or the parent qiraat scope); a token with only the content scope receives 403 with type: insufficient_scope. Qira'at endpoints are available in production only; they are not available in the prelive environment.
Query Parameters
Starting verse key in chapter:verse format, for example 1:1.
Ending verse key in chapter:verse format, for example 2:10. Must not come before from.
- 200
- 400
- 401
- 403
- 429
- 500
- 502
- 503
- 504
Successful response
Schema
{
"1:4": 2,
"2:6": 1
}
Successful response
{
"1:4": 2,
"2:6": 1
}
Invalid parameter. Returned when from or to is missing, malformed, not a valid verse, or when from comes after to.
Schema
details object required
The error body returned by the Qira'at service.
error object required
Possible values: [INVALID_PARAMETER, NOT_FOUND]
details object
Optional structured details, for example the offending parameter.
Optional structured details, for example the offending parameter.
Human-readable error message (the same text as details.error.message).
Possible values: [invalid_request, not_found]
{
"details": {
"status": 404,
"error": {
"code": "INVALID_PARAMETER",
"message": "string",
"details": {}
}
},
"message": "string",
"type": "invalid_request",
"success": false
}
Missing parameters
{
"details": {
"status": 400,
"error": {
"code": "INVALID_PARAMETER",
"message": "Missing required parameters: from and to",
"details": {
"required": [
"from",
"to"
]
}
}
},
"message": "Missing required parameters: from and to",
"type": "invalid_request",
"success": false
}
Invalid verse key format
{
"details": {
"status": 400,
"error": {
"code": "INVALID_PARAMETER",
"message": "Invalid verse_key format. Expected format: chapter:verse (e.g., 1:1)",
"details": {
"from": "1-1",
"to": "2:10",
"expected": "1:1"
}
}
},
"message": "Invalid verse_key format. Expected format: chapter:verse (e.g., 1:1)",
"type": "invalid_request",
"success": false
}
from comes after to
{
"details": {
"status": 400,
"error": {
"code": "INVALID_PARAMETER",
"message": "Invalid range: from verse must come before to verse"
}
},
"message": "Invalid range: from verse must come before to verse",
"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
}
The request is forbidden, for example because a valid access token lacks the required scope or the client lacks permission.
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
}
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
}