# Quran Text Translations Scraper (`real-estate-api/quran-text-translations-scraper-202610120341`) Actor

Quran Text & Translations Scraper is a Python tool designed to extract Quranic verses, transliterations, and multi-language translations across all surahs and ayahs. It exports structured script and metadata into clean CSV or JSON formats for Islamic studies and NLP projects.

- **URL**: https://apify.com/real-estate-api/quran-text-translations-scraper-202610120341.md
- **Developed by:** [real-estate-api](https://apify.com/real-estate-api) (community)
- **Security:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.99 / 1,000 results

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

### Quran Text & Translations Scraper — Collect Quran Verses, Compare Translations, and Explore Editions

### Overview

Quran Text & Translations Scraper collects Quranic verses, translations, and edition metadata in a structured dataset. Choose a surah and text edition, explore available editions by language, or compare multiple editions of a specific ayah.

Designed for Quranic research, translation comparison, educational resources, and structured text analysis, the scraper supports JSON, CSV, and Excel exports. Verse records include Quranic text, verse numbering, and structural metadata to help organize and analyze the collected material.

### Features

- **Verse collection:** Collect verses from selected surahs in a specified edition.
- **Edition discovery:** Retrieve information about available Quranic text editions.
- **Translation comparison:** Compare multiple editions of a specific ayah.
- **Language filtering:** Filter available editions by language code.
- **Quranic metadata:** Extract surah and verse numbers, juz, manzil, page, ruku, hizb-quarter, and sajda information when available.
- **Edition identification:** Preserve edition identifiers, names, formats, and classifications.
- **Duplicate removal:** Avoid duplicate verse records and edition identifiers.
- **Structured exports:** Export collected records to JSON, CSV, or Excel.

### Use Cases

- **Quran reading resources:** Export a selected surah in a preferred translation.
- **Verse comparison:** Compare Quranic script with translations in English or other available languages.
- **Edition catalogs:** Explore available editions before selecting material for a project.
- **Academic research:** Organize verses alongside Quranic structural metadata.
- **Educational applications:** Prepare structured verse datasets for learning and reference tools.
- **Translation research:** Compare wording across editions while retaining translator and edition information.
- **Data analysis:** Process Quranic text and metadata using spreadsheets or data-processing workflows.

### Input Parameters

| Parameter | Type | Default | Description |
|---|---|---|---|
| `mode` | String | `surah` | Collection mode: `surah`, `editions`, or `ayah`. |
| `surahs` | Array | `[1]` | Surah numbers to collect, ranging from 1 to 114. Used in `surah` mode. |
| `edition` | String | `en.asad` | Edition identifier for surah collection, such as `en.asad` or `quran-uthmani`. |
| `ayahReference` | String | `2:255` | Ayah reference in `surah:ayah` format or as a global verse number. |
| `ayahEditions` | Array | `["quran-uthmani", "en.asad"]` | Edition identifiers to compare in `ayah` mode. |
| `language` | String | `en` | Two-letter language code used to filter available editions. |
| `maxItems` | Integer | `100` | Maximum number of dataset records to collect, capped at 1,000. |
| `timeoutSecs` | Integer | `300` | Maximum run duration in seconds. |
| `requestTimeoutSecs` | Integer | `30` | Maximum wait time for an individual request, in seconds. |

### Example Input

This configuration collects Surah Al-Fatiha using the Muhammad Asad English translation.

```json
{
  "mode": "surah",
  "surahs": [1],
  "edition": "en.asad",
  "maxItems": 100,
  "timeoutSecs": 300,
  "requestTimeoutSecs": 30
}
```

#### Comparing Multiple Editions

To compare translations or Quranic text for a specific verse, set `mode` to `ayah`, provide an `ayahReference`, and list the desired edition identifiers in `ayahEditions`.

For example, use `2:255` to reference Ayah 255 of Surah Al-Baqarah.

#### Exploring Available Editions

Set `mode` to `editions` to retrieve edition information. Use `language` to filter the available editions by language code.

### Extracted Data

The scraper produces verse records and, depending on the selected mode, edition records containing information about available text editions.

| Field | Type | Description |
|---|---|---|
| `number` | Integer | Global ayah number. |
| `text` | String | Verse text with HTML removed. |
| `numberInSurah` | Integer | Verse position within its surah. |
| `juz` | Integer | Juz number. |
| `manzil` | Integer | Manzil number. |
| `page` | Integer | Mushaf page number. |
| `ruku` | Integer | Ruku number. |
| `hizbQuarter` | Integer | Hizb-quarter number. |
| `sajda` | Boolean | Indicates whether the verse is associated with sajda. |
| `surahNumber` | Integer | Number of the surah containing the verse. |
| `englishName` | String | English name of the surah. |
| `editionIdentifier` | String | Identifier of the selected text edition. |
| `editionEnglishName` | String | English name associated with the edition, when available. |
| `editionFormat` | String | Text format reported for the edition. |
| `editionType` | String | Edition classification, such as `translation` or `quran`. |
| `recordKind` | String | Record category, such as `ayah` or edition information. |
| `scrapedAt` | String | UTC timestamp indicating when the record was created. |

### Example Output

```json
{
  "number": 1,
  "text": "In the name of God, The Most Gracious, The Dispenser of Grace:",
  "numberInSurah": 1,
  "juz": 1,
  "manzil": 1,
  "page": 1,
  "ruku": 1,
  "hizbQuarter": 1,
  "sajda": false,
  "surahNumber": 1,
  "englishName": "Al-Faatiha",
  "editionIdentifier": "en.asad",
  "editionEnglishName": "Muhammad Asad",
  "editionFormat": "text",
  "editionType": "translation",
  "recordKind": "ayah",
  "scrapedAt": "2026-10-12T00:00:00+00:00"
}
```

The example illustrates a verse record. Actual text, metadata, and edition details depend on the selected surah, reference, and available edition.

### Working with Your Dataset

Choose an export format according to your workflow:

- **JSON:** Suitable for structured data processing and application development.
- **CSV:** Convenient for filtering, sorting, and reviewing verse records in spreadsheets.
- **Excel:** Useful for organizing research, comparing translations, and preparing educational resources.

For translation comparisons, keep the edition identifier alongside each verse so the text can be associated with the correct translation. When using the dataset in educational or research projects, preserve relevant verse references and edition details.

### FAQ

#### Can I collect records from only one preprint server?

This Quran scraper is designed for Quranic text and translations, not preprint servers. To collect Quranic content, use `surah` mode and specify the desired surah and edition.

#### How do I compare multiple translations of one verse?

Set `mode` to `ayah`, provide the verse in `ayahReference`, and list the edition identifiers you want to compare in `ayahEditions`.

#### How can I retrieve available editions for a language?

Set `mode` to `editions` and specify a language code, such as `en`, in the `language` field.

#### How many records can one run collect?

The default limit is 100 records. You can increase `maxItems` up to the supported maximum of 1,000.

#### What export formats are supported?

You can export the dataset as JSON, CSV, or Excel.

#### What information is included in verse records?

Verse records can include the Quranic text, global and surah-specific verse numbers, structural metadata, edition details, and a collection timestamp. The fields available depend on the selected mode and edition.

### Disclaimer

This Actor is an independent tool and is not affiliated with, endorsed by, sponsored by, or otherwise officially associated with Al Quran Cloud or its owners. Users are responsible for complying with applicable source terms, collection restrictions, and other relevant requirements.

### Is Web Scraping Legal?

Collecting information that is already public is generally legal. Scraping is not the same thing as hacking, and there is no single law that bans it. The limits are the usual ones: do not break into accounts, do not take private or confidential data, and be careful with personal data and copyrighted works. A site's terms can also restrict how you access it. Facts such as a public name, price, or rating are not the same thing as republishing someone's article or photo.

This actor collects information from public pages. It does not log in and it does not bypass access controls.

For a longer explanation, see Apify's article [Is web scraping legal?](https://blog.apify.com/is-web-scraping-legal/).

# Actor input Schema

## `mode` (type: `string`):

Public endpoint to call. surah reads one or more surahs in a single edition. editions lists text editions. ayah reads one verse in one or more editions.

## `surahs` (type: `array`):

Surah numbers from 1 to 114, one per line. Used when mode is surah. The run walks this list in order and stops at max items.

## `edition` (type: `string`):

Edition identifier for surah mode, such as en.asad or quran-uthmani. Credit this edition when you reuse a translation.

## `ayahReference` (type: `string`):

Verse reference for ayah mode. Use surah:ayah, for example 2:255, or a global ayah number.

## `ayahEditions` (type: `array`):

Edition identifiers compared in one ayah request, one per line. Example: quran-uthmani and en.asad.

## `language` (type: `string`):

Two-letter language code for the edition list, for example en. Used only when mode is editions. The request always asks for text editions.

## `maxItems` (type: `integer`):

Maximum number of data rows to save. Error rows do not count toward this cap. Hard maximum is 1000.

## `timeoutSecs` (type: `integer`):

Stop the run after this many seconds and save an error row if work is still unfinished.

## `requestTimeoutSecs` (type: `integer`):

How long to wait for a single HTTP response before retrying or recording an error.

## `proxyConfiguration` (type: `object`):

Optional proxy for requests. Leave Apify Proxy off unless the source starts refusing your IP. Datacenter proxies are fastest. Residential proxies are harder to detect.

## Actor input object example

```json
{
  "mode": "surah",
  "surahs": [
    "1"
  ],
  "edition": "en.asad",
  "ayahReference": "2:255",
  "ayahEditions": [
    "quran-uthmani",
    "en.asad"
  ],
  "language": "en",
  "maxItems": 100,
  "timeoutSecs": 300,
  "requestTimeoutSecs": 30,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

## `dataset` (type: `string`):

No description

## `datasetUrl` (type: `string`):

No description

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "mode": "surah",
    "surahs": [
        "1"
    ],
    "edition": "en.asad",
    "ayahReference": "2:255",
    "ayahEditions": [
        "quran-uthmani",
        "en.asad"
    ],
    "language": "en",
    "maxItems": 100,
    "timeoutSecs": 300,
    "requestTimeoutSecs": 30,
    "proxyConfiguration": {
        "useApifyProxy": false
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("real-estate-api/quran-text-translations-scraper-202610120341").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "mode": "surah",
    "surahs": ["1"],
    "edition": "en.asad",
    "ayahReference": "2:255",
    "ayahEditions": [
        "quran-uthmani",
        "en.asad",
    ],
    "language": "en",
    "maxItems": 100,
    "timeoutSecs": 300,
    "requestTimeoutSecs": 30,
    "proxyConfiguration": { "useApifyProxy": False },
}

# Run the Actor and wait for it to finish
run = client.actor("real-estate-api/quran-text-translations-scraper-202610120341").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "mode": "surah",
  "surahs": [
    "1"
  ],
  "edition": "en.asad",
  "ayahReference": "2:255",
  "ayahEditions": [
    "quran-uthmani",
    "en.asad"
  ],
  "language": "en",
  "maxItems": 100,
  "timeoutSecs": 300,
  "requestTimeoutSecs": 30,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}' |
apify call real-estate-api/quran-text-translations-scraper-202610120341 --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,real-estate-api/quran-text-translations-scraper-202610120341"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/X4lPmGr6cSMHY4BLd/builds/OCRC19xwZYonhb4bN/openapi.json
