# Quora Scraper (`mina_safwat/quora-scraper`) Actor

Scrapes Quora answers with full text, upvotes, views, shares, comments, author and date from question, topic and profile links or keywords, plus question rows with followers, answer count and topics.

- **URL**: https://apify.com/mina_safwat/quora-scraper.md
- **Developed by:** [Mina](https://apify.com/mina_safwat) (community)
- **Categories:** Social media, Marketing, AI
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.70 / 1,000 rows

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

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

### What does Quora Scraper do?

**Quora Scraper** collects **answers from [Quora](https://www.quora.com)** with
their **full text, upvotes, views, shares, comment count, date, author name,
profile link and credential**, plus one row per **question** with its
**follower count, answer count and topics**. Paste question links, topic links,
profile links or answer links, or type **keywords** to find questions about
them. Quora's language sites, such as `es.quora.com` or `de.quora.com`, work
the same way.

No Quora account, login or cookies are needed. Try it with the prefilled
question: open the Actor, click **Start**, and the question with its first five
answers arrives in a few seconds. Because it runs on the Apify platform, you
also get API access, scheduled runs, integrations (Google Sheets, Make, Zapier,
webhooks), run monitoring and automatic retries through Apify Proxy.

### Why scrape Quora?

- **Market and audience research**: read what people ask and answer about a
  product, a brand, a city or a career, with the upvotes and views that show
  which answers people actually read.
- **Content ideas and SEO**: find the questions people ask in a topic and how
  many follow each one.
- **Expert and influencer discovery**: collect a person's answers with their
  views and upvotes, or find the most-read authors in a topic by credential.
- **Brand monitoring**: track questions that mention your company and how the
  answers about it perform.
- **AI and NLP datasets**: question-and-answer pairs with clean plain text,
  dates and engagement numbers.

### How to scrape Quora

1. Open a question, topic or profile on Quora and copy the link from the
   address bar, for example
   `https://www.quora.com/How-do-I-learn-Python-from-a-beginner-level-and-then-move-to-advanced`.
2. Paste it into **Quora links**, one link per line. You can mix questions,
   topics, profiles and answers in one run.
3. Or type words into **Keywords** to find questions without having links.
4. Set **Max answers per question** and, for topics and keywords, **Max
   questions per topic or keyword**.
5. Click **Start**, then download the results when the run finishes.

### Input

Everything is set on the Input tab. In JSON, the input looks like this:

```json
{
    "startUrls": [
        "https://www.quora.com/How-do-I-learn-Python-from-a-beginner-level-and-then-move-to-advanced",
        "https://www.quora.com/topic/Personal-Finance",
        "https://www.quora.com/profile/Adam-DAngelo",
        "https://es.quora.com/Cuál-es-la-mejor-manera-de-aprender-Python-desde-principiante-hasta-avanzado"
    ],
    "searchQueries": ["best budget laptop"],
    "maxAnswersPerQuestion": 20,
    "maxQuestions": 10,
    "maxAnswersPerProfile": 50,
    "includeRelatedAnswers": false,
    "searchLanguage": "en"
}
```

| Field | What it does |
|---|---|
| `startUrls` | Quora links. A **question** gives the question row and its answers. A **topic** (`/topic/…`) gives the questions shown on that topic, each with its answers. A **profile** (`/profile/…`) gives that person's answers, newest first. An **answer** link (`…/answer/Name`) gives that one answer. A Quora **search** link (`/search?q=…`) is read as a keyword. Links work with or without `https://`, and API callers can send `{"url": "…"}` objects. |
| `searchQueries` | Optional keywords. Each one is looked up on Google among Quora questions (Quora's own search needs a login), and the questions found are scraped like question links. Each keyword that finds questions is billed once as a keyword search. |
| `maxAnswersPerQuestion` | Answers saved per question, in Quora's order. Default: 20. Set `0` to save only question rows. |
| `maxQuestions` | Questions opened per topic link and per keyword, from 1 to 100. Default: 10. |
| `maxAnswersPerProfile` | Answers saved per profile link, newest first. Default: 50. |
| `includeRelatedAnswers` | Quora mixes answers written for similar questions into a question's answer list. Turn this on to save them too. Default: off. |
| `searchLanguage` | Which Quora site keywords are searched on: English (`www.quora.com`) or one of 23 language sites. Links always keep their own language. Default: English. |
| `proxyConfiguration` | Optional; leave it empty. The Actor uses Apify's datacenter proxy and switches to residential addresses only when Quora refuses. Quora's protection refuses roughly half to a fifth of datacenter requests, varying by hour, and each refusal is retried at once from a new address. |

### Output

Each question and each answer becomes one row; a question's row comes right
before its answers. Here is a real question row and one of its answers, with
the answer text and topic list shortened:

```json
{
    "type": "question",
    "questionId": 3502598,
    "questionTitle": "How do I learn Python from a beginner level and then move to advanced?",
    "questionUrl": "https://www.quora.com/How-do-I-learn-Python-from-a-beginner-level-and-then-move-to-advanced",
    "followers": 265,
    "answerCount": 25,
    "topics": ["Python (programming language)", "Programming Languages", "Computer Programming"],
    "language": "en",
    "foundOn": "https://www.quora.com/How-do-I-learn-Python-from-a-beginner-level-and-then-move-to-advanced",
    "scrapedAt": "2026-10-20T14:49:15.563445+00:00"
}
```

```json
{
    "type": "answer",
    "answerId": 367845987,
    "answerUrl": "https://www.quora.com/How-do-I-learn-Python-from-a-beginner-level-and-then-move-to-advanced/answer/Binita-Sharma-186",
    "questionId": 3502598,
    "questionTitle": "How do I learn Python from a beginner level and then move to advanced?",
    "questionUrl": "https://www.quora.com/How-do-I-learn-Python-from-a-beginner-level-and-then-move-to-advanced",
    "text": "We have so excited to learn python. I believe that the first step in learning any programming language is to understand how to learn. …",
    "imageUrls": ["https://qph.cf2.quoracdn.net/main-qimg-1cc52f283b64bcf0a7bbf7eef804e2c7"],
    "authorName": "Binita Sharma",
    "authorUrl": "https://www.quora.com/profile/Binita-Sharma-186",
    "authorCredential": "former Ethical Hacker at Tata DoCoMo",
    "upvotes": 9,
    "views": 1401,
    "shares": 6,
    "comments": 0,
    "createdAt": "2022-07-11T09:49:00.107706+00:00",
    "spaceName": null,
    "spaceUrl": null,
    "isRelatedAnswer": false,
    "language": "en",
    "foundOn": "https://www.quora.com/How-do-I-learn-Python-from-a-beginner-level-and-then-move-to-advanced",
    "scrapedAt": "2026-10-20T14:49:15.563445+00:00"
}
```

You can download the dataset in various formats such as JSON, HTML, CSV, or
Excel. The Output tab has two views: **Answers** and **Questions**.

### Data fields

| Field | Rows | Description |
|---|---|---|
| `type` | all | `question` or `answer`. |
| `questionId`, `questionTitle`, `questionUrl` | all | The question; on an answer row, the question the answer was written for. |
| `followers` | question | How many people follow the question. Empty (`null`) when Quora's page layout for that question doesn't include it. |
| `answerCount` | question | Quora's canonical answer count for the question. The heading on the page can show a larger number, because it also counts answers merged in from similar questions. |
| `topics` | question | The question's topics. |
| `answerId`, `answerUrl` | answer | The answer's id and its permanent link. |
| `text` | answer | The full answer as plain text; list items start with `- ` or `1. `. |
| `imageUrls` | answer | Images in the answer, full size. |
| `authorName`, `authorUrl` | answer | The author and their profile; anonymous answers show `Anonymous` and no link. |
| `authorCredential` | answer | The credential shown next to the author's name, when there is one. |
| `upvotes`, `views`, `shares`, `comments` | answer | Engagement numbers as Quora shows them. `comments` is empty for answer links. |
| `createdAt` | answer | When the answer was written, ISO 8601 in UTC. |
| `spaceName`, `spaceUrl` | answer | The Quora Space the answer was posted in, when it was. |
| `isRelatedAnswer` | answer | `true` for an answer Quora showed under the question but wrote for a similar one (only with `includeRelatedAnswers`). |
| `language` | all | The Quora site language, such as `en` or `es`. |
| `foundOn` | all | The link or keyword from your input that led to this row. |
| `scrapedAt` | all | When the row was saved. |

### How much does it cost to scrape Quora?

You pay per row saved, question rows and answer rows alike. Each keyword
in `searchQueries` that finds at least one question is also billed once as a
**keyword search**, which covers the Google result pages used to find the
questions; a keyword that finds nothing is not billed. See the **Pricing** tab
for the exact prices. Links that give nothing (a removed question, a typo, a
keyword with no results) are never billed: they are listed in the
`FAILED_INPUTS` record of the run's key-value store instead.

As a guide, a run over three topics with 10 questions each and up to 20 answers
per question saved about 300 rows in a little over a minute.

### Tips for scraping Quora

- **Links are faster and cheaper than keywords.** A keyword needs Google result
  pages before any Quora page is opened, and is billed as a keyword search, so
  paste question or topic links when you have them.
- **Partial results are kept.** If Quora refuses a later page of answers, the
  rows already read are saved and the status message says how many inputs
  stopped early.
- **Logged-out visitors see fewer answers.** Quora collapses some answers for
  visitors without an account, so a question can give fewer answers than its
  `answerCount`. `includeRelatedAnswers` does not bring collapsed answers back:
  it adds answers Quora wrote for similar questions and lists under this one.
- **Want only questions?** Set `maxAnswersPerQuestion` to `0` and use topic
  links or keywords to collect question rows with followers and topics.
- **Large jobs**: split them over several runs or schedule them, and use the
  run's maximum cost setting to cap spending; the Actor stops cleanly when the
  cap is reached.

### FAQ, disclaimers and support

**Is it legal to scrape Quora?** The Actor reads only public pages that anyone
can open without an account. Scraping public data is generally lawful, but
answers can contain personal data, which laws such as the GDPR protect. Only
collect what you have a legitimate reason to process, and check Quora's terms
and your local rules for your use case. If in doubt, ask a lawyer.

**Why did some of my links give nothing?** Open the `FAILED_INPUTS` record in
the run's key-value store: each entry names the link and the reason, such as
"Quora says this page does not exist" or "not a Quora link". Questions found
through a topic or keyword that could not be read are listed there too.

**Can it read private content, comments or my feed?** No. It reads what a
logged-out visitor sees: questions, answers, topics and public profiles. It
does not log in, read comment threads, or solve captchas.

**Something is missing or broken?** Please open an issue on the **Issues** tab
with the link you used; we usually reply within a day. If you need a custom
Quora dataset or a different output, ask there too.

# Actor input Schema

## `startUrls` (type: `array`):

Quora links, one per line. A question link (https://www.quora.com/What-is-Python) gives the question and its answers. A topic link (https://www.quora.com/topic/Python-programming-language-1) gives the questions shown on that topic, each with its answers. A profile link (https://www.quora.com/profile/Adam-DAngelo) gives that person's answers, newest first. An answer link gives that one answer, and a Quora search link (https://www.quora.com/search?q=python) is read as a keyword. Links on language sites such as es.quora.com work too.

## `searchQueries` (type: `array`):

Words or phrases, one per line. Quora's own search needs a login, so each keyword is looked up on Google among Quora questions, and the questions found are scraped with their answers. Each keyword that finds questions is billed once as a keyword search on top of the rows. Links are cheaper when you have them.

## `maxAnswersPerQuestion` (type: `integer`):

Stops after this many answers for each question, in Quora's order. Set 0 to save only the question rows. Logged-out visitors see the answers Quora has not collapsed, which can be fewer than the question's answer count.

## `maxQuestions` (type: `integer`):

How many questions to open for each topic link and each keyword, from 1 to 100.

## `maxAnswersPerProfile` (type: `integer`):

Stops after this many answers for each profile link, newest first.

## `includeRelatedAnswers` (type: `boolean`):

Quora mixes answers written for similar questions into a question's answer list. Turn this on to save them too (it does not bring back answers Quora collapses for logged-out visitors); they are marked with isRelatedAnswer and carry the title and link of the question they were written for. Off by default, so a question gives only its own answers.

## `searchLanguage` (type: `string`):

Which Quora site keywords are searched on: English (www.quora.com) or one of Quora's language sites. Links always keep their own language.

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

Leave this empty: the Actor goes through Apify's datacenter proxy and, when Quora refuses those addresses, through residential ones on its own. Choose a proxy here only if you want every request to use it.

## Actor input object example

```json
{
  "startUrls": [
    "https://www.quora.com/How-do-I-learn-Python-from-a-beginner-level-and-then-move-to-advanced"
  ],
  "searchQueries": [],
  "maxAnswersPerQuestion": 5,
  "maxQuestions": 10,
  "maxAnswersPerProfile": 50,
  "includeRelatedAnswers": false,
  "searchLanguage": "en",
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

## `dataset` (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 = {
    "startUrls": [
        "https://www.quora.com/How-do-I-learn-Python-from-a-beginner-level-and-then-move-to-advanced"
    ],
    "maxAnswersPerQuestion": 5
};

// Run the Actor and wait for it to finish
const run = await client.actor("mina_safwat/quora-scraper").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 = {
    "startUrls": ["https://www.quora.com/How-do-I-learn-Python-from-a-beginner-level-and-then-move-to-advanced"],
    "maxAnswersPerQuestion": 5,
}

# Run the Actor and wait for it to finish
run = client.actor("mina_safwat/quora-scraper").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 '{
  "startUrls": [
    "https://www.quora.com/How-do-I-learn-Python-from-a-beginner-level-and-then-move-to-advanced"
  ],
  "maxAnswersPerQuestion": 5
}' |
apify call mina_safwat/quora-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,mina_safwat/quora-scraper"
        }
    }
}
```

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/plnLZuYV0f6We799U/builds/vR7tiB2aclwKxaolH/openapi.json
