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

Quora scraper API: paste Quora question, answer, profile, topic or Space links and get every answer with its text, author, upvotes, views and date, plus comments, profiles and Space posts. Filter answers by upvotes or author. Download Quora answers as JSON, CSV or Excel. $0.75 per 1,000 results.

- **URL**: https://apify.com/dami_studio/quora-scraper.md
- **Developed by:** [Dami's Studio](https://apify.com/dami_studio) (community)
- **Categories:** Social media
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.75 / 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.

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

**Quora scraper for questions, answers and profiles: paste Quora links, or type keywords, and get one row per question, answer, comment, profile, topic, Space or post.** Each answer comes with its full text, author, upvotes, views and date. Quora mixes in answers written for questions it treats as the same one, and every such row is marked, so you can keep them or drop them.

| | |
|---|---|
| **Input** | Quora links: questions, answers, profiles, topics, Spaces and Space posts, in any of Quora's languages. Or up to 50 keywords, each of which finds questions |
| **Output** | One row per question, answer, comment, profile, topic, Space or post. Answers: text, Markdown, links, images, author and credential, upvotes, views, shares, comments, date. Profiles: followers, answer and question counts, all-time answer views, last month's views, credentials, joined date |
| **Ceiling** | 100,000 results per run, 5,000 answers per question or profile, 500 comments per answer |
| **Speed** | About 500 answers a minute from one question, about 40 rows a minute with comments on (measured on our runs) |
| **Account needed** | None from you |
| **Price** | $0.75 per 1,000 results, the same rate on every plan. The free plan's $5 a month covers about 6,600 results |

| Using an AI agent? | |
|---|---|
| Actor | `dami_studio/quora-scraper` |
| Set one field | `startUrls`, labelled "Quora links" in the Console |
| Cap the bill | `maxTotalChargeUsd` on the run, for example `0.10`: it never charges past that |
| MCP, one link | `https://mcp.apify.com/?tools=fetch-actor-details,dami_studio/quora-scraper` |
| How often | Weekly, on the same questions, to catch new answers |

### 🔍 What Quora Scraper does

It reads Quora pages the way a visitor's browser does and hands each thing on them back as a clean row.

A question link gives you the question, then its answers in the order Quora lists them, as deep as you ask. An answer link gives you that one answer. A profile link gives you the person, with their latest answers if you want them. A topic link gives you the topic and the answers in its feed. A Space link gives you the Space and its posts.

Type a keyword instead of a link and it finds the Quora questions that match it, up to the number you set, then reads each one as if you had pasted its link. A date range narrows a keyword search to pages dated in the last day, week, month or year.

Comments come along when you turn them on, each as its own row pointing back at the answer or post it sits under. Two filters work on answers from every kind of link: a minimum number of upvotes, and one author.

### 📋 What data you get from each Quora answer

| What you'd call it | Fields |
|---|---|
| The answer | `answerId`, `url`, `text`, `markdown`, `links`, `images`, `embeds` |
| Its question | `questionId`, `questionTitle`, `questionUrl`, `fromSimilarQuestion` |
| Who wrote it | `authorName`, `authorUrl`, `authorId`, `authorCredential`, `authorIsVerified`, `authorIsAiAccount`, `authorImageUrl` |
| How it did | `upvotes`, `views`, `shares`, `comments` |
| When | `createdAt`, `updatedAt` |
| Flags | `isAiAnswer`, `isPaywalled`, `spaceName`, `spaceUrl` |
| Questions | `questionId`, `title`, `answerCount`, `followers`, `comments`, `topics`, `isLocked`, `relatedQuestions` |
| Profiles | `profileId`, `name`, `credential`, `bio`, `imageUrl`, `followers`, `following`, `answersCount`, `questionsCount`, `postsCount`, `totalAnswerViews`, `lastMonthContentViews`, `topWriterYears`, `workCredential`, `schoolCredential`, `locationCredential`, `isVerified`, `isAiAccount`, `joinedAt` |
| Comments (optional) | `commentId`, `text`, `links`, the author fields, `upvotes`, `createdAt`, `isReply`, `parentType`, `parentId`, `parentUrl` |
| Topics, Spaces and posts | `topicId`, `name`, `followers`; `spaceId`, `description`, `contributors`, `itemsCount`, `rules`; `postId`, `title` and the answer fields |

### ▶️ How to scrape Quora answers

1. Open [Quora Scraper](https://apify.com/dami_studio/quora-scraper) and click **Try for free**.
2. Paste your links into **Quora links**, one per line, or type keywords into **Keywords**. You can use both.
3. Set **Answers per question**, **Questions per keyword** if you used keywords, and **Results in total** for the whole run.
4. Turn on **Comments** if you want them, then click **Start**.
5. Download the results as JSON, CSV or Excel, or read them through the API.

Run it with no links and no keywords and you get one free sample row showing the shape of an answer.

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

$0.75 per 1,000 results on the Free plan, and the same $0.75 on Starter, Scale and Business. Every kind of row costs the same: a question, an answer, a comment or a profile. The free plan's $5 a month covers about 6,600 results.

Not charged: the sample row, note rows that say why a link or a keyword gave nothing, answers left out by your filters, duplicates, and items skipped as unchanged. Looking up a keyword costs nothing by itself; you pay for the rows it leads to.

### 📥 What you give it

| Field | What it is | Default |
|---|---|---|
| `startUrls` | Quora links, one per line | none |
| `searchKeywords` | Keywords or phrases, one per line, up to 50. Each finds Quora questions | none |
| `maxQuestionsPerKeyword` | Most questions per keyword, 1 to 80 | 20 |
| `searchDateRange` | Keyword search only: `any`, `day`, `week`, `month` or `year` | any |
| `maxItems` | Most rows for the whole run | 100 |
| `maxAnswersPerQuestion` | Most answers per question; 0 for the question alone | 20 |
| `skipSimilarQuestionAnswers` | Keep only answers written for the question you linked | false |
| `scrapeRelatedQuestions` | Also read the related questions each question page lists | false |
| `minAnswerUpvotes` | Leave out answers with fewer upvotes | 0 |
| `answerAuthor` | Only answers by this person: a profile link or a name | none |
| `maxAnswersPerProfile` | Most answers per profile; 0 for the profile alone | 20 |
| `maxItemsPerTopic` | Most answers per topic feed, up to 20 | 20 |
| `maxItemsPerSpace` | Most posts per Space | 20 |
| `includeComments` | Add each answer's and post's comments as rows | false |
| `maxCommentsPerItem` | Most comments per answer or post | 10 |
| `onlyNewItems` | Skip what an earlier run with the same links and settings returned, unless it changed | false |
| `excludeEmptyFields` | Drop empty fields from each row | false |
| `proxyConfiguration` | Optional connection settings | none |

```json
{
  "startUrls": [
    "https://www.quora.com/How-do-I-start-learning-Python",
    "https://www.quora.com/profile/Adam-DAngelo"
  ],
  "maxAnswersPerQuestion": 12,
  "maxAnswersPerProfile": 5,
  "maxItems": 100
}
```

The same with keywords instead of links:

```json
{
  "searchKeywords": ["how to write a memoir", "memoir publishing"],
  "maxQuestionsPerKeyword": 10,
  "maxAnswersPerQuestion": 5,
  "maxItems": 100
}
```

### 📤 What you get back

An answer from that run, trimmed:

```json
{
  "recordType": "answer",
  "answerId": 1477743689922693,
  "url": "https://www.quora.com/Are-you-surprised-by-the-exodus-of-businesses-and-population-decline-in-San-Francisco/answer/Adam-DAngelo",
  "questionTitle": "Are you surprised by the exodus of businesses and population decline in San Francisco?",
  "text": "For context SF downtown cell phone usage data implies a greater decline than any other major US city (source):\nSome parts of it aren’t surprising: ...",
  "links": ["https://apolloacademy.com/downtown-has-not-yet-fully-recovered/"],
  "images": ["https://qph.cf2.quoracdn.net/main-qimg-406eb8e956e11c55757ffcf10140b4da"],
  "authorName": "Adam D'Angelo",
  "authorUrl": "https://www.quora.com/profile/Adam-DAngelo",
  "authorCredential": "Bay Area resident",
  "authorIsVerified": true,
  "upvotes": 243,
  "views": 21363,
  "shares": 10,
  "comments": 22,
  "createdAt": "2023-08-24T16:17:56.250Z",
  "isAiAnswer": false,
  "sourceUrl": "https://www.quora.com/profile/Adam-DAngelo"
}
```

| Field | How to read it |
|---|---|
| `url` on a question | Quora's own address for it. A link to a question Quora merged into another comes back as the one it was merged into |
| `fromSimilarQuestion` | true when Quora listed the answer under your question although it was written for another; empty on answers from profile, topic and Space links |
| `updatedAt` | Empty when the answer was never edited |
| `images` | Links to the pictures on Quora's own servers |
| `sourceUrl` | The link from your input that led to the row |
| `searchKeyword` | Only on a run that used keywords, as the last field: the keyword that found the row. Empty on rows from a link you gave |

### 🧾 Reading the output

- A real row has `recordType` set to `question`, `answer`, `comment`, `profile`, `topic`, `space` or `post`. Filter on it to split the kinds apart.
- The sample row from an empty input has `_sample: true` and `recordType: "sample"`.
- A note row has `ok: false`, `recordType: "note"` and an `errorCode`: `BAD_INPUT` (a link it can't read, or a keyword list or date range it refuses), `NOT_FOUND` (no public page there), `NOT_SERVED` (a link or a keyword it couldn't load this time; try again later), `NO_RESULTS` (nothing passed your filters, nothing new since the last run, or a keyword that found no question), `TIME_LIMIT`, `COST_LIMIT`. When a run delivers rows and some keywords give nothing, the status message says so and no note row is added.
- To keep only data, drop rows where `ok` is false or `recordType` is `sample`.

### 💡 What people use it for

- Finding out how people talk about a product or a problem in their own words, from the answers to the questions they ask about it.
- Collecting expert answers on a subject, with upvotes and views to rank them, for research or a reading list.
- Watching a set of questions each week for new answers, with "Only new or changed items" on.
- Building a list of the people who write most on a subject, from their profiles: followers, answer counts and views.
- Starting from a list of keywords when you don't have the links yet: each keyword brings back its questions, with their answers.

A recipe: put the question links you care about in **Quora links**, set **Minimum upvotes** to 50 so only answers people found useful come back, and send the rows to a spreadsheet or a language model for a summary of what people recommend.

### 🚧 What it does not do

- No contact details: no e-mail addresses or phone numbers.
- No lists of who follows a profile or a Space.
- No private messages, drafts or anything only its author can see.
- It reads only. It doesn't post, answer or vote.
- It is not an official Quora tool. Dami's Studio is independent and is not affiliated with or endorsed by Quora, or by any other company named on this page.

### 🧭 Which Quora scraper do you need?

| If you want | Use |
|---|---|
| Questions, answers, comments, profiles, topics and Spaces from Quora links | This one |
| Questions and answers from Stack Overflow | [Stack Overflow Scraper](https://apify.com/dami_studio/stackexchange-scraper) |
| Stories and comments from Hacker News | [Hacker News Scraper](https://apify.com/dami_studio/hacker-news-scraper) |
| Posts and comments from Reddit communities | [Reddit Scraper](https://apify.com/dami_studio/reddit-scraper) |

### ❓ Questions people ask

#### Do I need a Quora account to scrape Quora?

No. Quora Scraper reads Quora the way a visitor who isn't signed in sees it, so you don't need an account or any login.

#### How many questions does a keyword give?

Up to the number in **Questions per keyword**, at most 80. A keyword that matches fewer questions gives fewer, and one that matches none writes a free note row when nothing else came back.

#### Why do some answers belong to a different question?

Quora lists, under many questions, answers written for questions it considers the same. Those rows carry `fromSimilarQuestion: true` and their own `questionTitle`. Turn on "Only answers to the question itself" to leave them out.

#### Why are the numbers different from what I see on Quora?

Upvotes and views move all the time, and Quora's pages round them ("1.2K"). Open the page in a private window to see what a visitor sees; the row carries the exact count at the moment it was read.

#### Can I call it from code or an AI assistant?

Yes. The API tab of [Quora Scraper](https://apify.com/dami_studio/quora-scraper/api) has ready code for every language Apify supports. For an assistant that speaks MCP, use `https://mcp.apify.com/?tools=fetch-actor-details,dami_studio/quora-scraper`.

#### Is scraping Quora legal?

Quora Scraper reads public pages the way a signed-out visitor sees them, with no account and nothing private. Answers and profiles carry personal data, which GDPR and similar laws cover, so keep only what you need. Quora's own terms still apply to what you do with the data. Apify has written about [the legality of web scraping](https://blog.apify.com/is-web-scraping-legal/). We are not lawyers, and this isn't legal advice.

### 🆘 If something breaks

Open an issue in the Issues tab with the run's link and the Quora link that misbehaved. We read every one.

# Actor input Schema

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

One link per line. A question link gives the question and its answers, an answer link that one answer, a profile link the person and their latest answers, a topic link the topic and the answers in its feed, a Space link the Space and its posts. Links in other languages (es.quora.com and the like) work the same way.

## `searchKeywords` (type: `array`):

Optional. One keyword or phrase per line, up to 50. Each one finds Quora questions about it, and every question found is read like a link you pasted: the question, then its answers. Use keywords, links, or both.

## `maxQuestionsPerKeyword` (type: `integer`):

The most questions to take from each keyword, 1 to 80. The results limit below still ends the whole run.

## `searchDateRange` (type: `string`):

Only look at pages dated within this range when searching by keyword. Any time leaves it open.

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

The most rows for the whole run, counting every kind of row. The run stops there.

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

The most answers to take from each question, in the order Quora shows them. 0 returns the question alone.

## `skipSimilarQuestionAnswers` (type: `boolean`):

Quora mixes in answers that were written for questions it treats as the same one, and each such row says so in fromSimilarQuestion. Turn this on to keep only answers written for the question you linked.

## `scrapeRelatedQuestions` (type: `boolean`):

Read the related questions each question page lists as well, with their answers, until the results limit.

## `minAnswerUpvotes` (type: `integer`):

Leave out answers with fewer upvotes than this. Answers left out aren't billed.

## `answerAuthor` (type: `string`):

A Quora profile link or a name. Only that person's answers come back; questions, profiles, topics and Spaces are unaffected.

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

A profile link returns the person and their most recent answers, up to this many. 0 returns the profile alone.

## `maxItemsPerTopic` (type: `integer`):

A topic link returns the topic and the answers in its feed, up to this many. 0 returns the topic alone.

## `maxItemsPerSpace` (type: `integer`):

A Space link returns the Space and the posts and answers in its feed, up to this many. 0 returns the Space alone.

## `includeComments` (type: `boolean`):

Add the comments on each answer and post, each as a row of its own with a link back to what it comments on.

## `maxCommentsPerItem` (type: `integer`):

The most comments to take from each answer or post.

## `onlyNewItems` (type: `boolean`):

Skip what an earlier run with the same links and settings already returned, unless its text changed since. Handy on a schedule. Skipped items aren't billed.

## `excludeEmptyFields` (type: `boolean`):

Drop fields that have no value from each row, so rows of different kinds stay short.

## `sessionCookie` (type: `string`):

Optional: your own session, used only for your run. You are responsible for using it within the site's terms. Runs work without it.

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

Optional. Leave it empty and the run picks its own way in.

## Actor input object example

```json
{
  "startUrls": [
    "https://www.quora.com/What-is-the-best-way-to-learn-programming"
  ],
  "maxQuestionsPerKeyword": 20,
  "searchDateRange": "any",
  "maxItems": 100,
  "maxAnswersPerQuestion": 20,
  "skipSimilarQuestionAnswers": false,
  "scrapeRelatedQuestions": false,
  "minAnswerUpvotes": 0,
  "maxAnswersPerProfile": 20,
  "maxItemsPerTopic": 20,
  "maxItemsPerSpace": 20,
  "includeComments": false,
  "maxCommentsPerItem": 10,
  "onlyNewItems": false,
  "excludeEmptyFields": false
}
```

# Actor output Schema

## `results` (type: `string`):

One row per question, answer, comment, profile, topic, Space or post, told apart by recordType. A link Quora has no page for, or a run cut short, writes one free row saying so.

# 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/What-is-the-best-way-to-learn-programming"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("dami_studio/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/What-is-the-best-way-to-learn-programming"] }

# Run the Actor and wait for it to finish
run = client.actor("dami_studio/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/What-is-the-best-way-to-learn-programming"
  ]
}' |
apify call dami_studio/quora-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,dami_studio/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/faIbxLUzaNAvD3ZXq/builds/daVIHeD4y2f39Jfb0/openapi.json
