{
  "openapi": "3.0.1",
  "info": {
    "title": "Quora Scraper",
    "description": "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.",
    "version": "0.1",
    "x-build-id": "daVIHeD4y2f39Jfb0"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/dami_studio~quora-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-dami_studio-quora-scraper",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/acts/dami_studio~quora-scraper/runs": {
      "post": {
        "operationId": "runs-sync-dami_studio-quora-scraper",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor and returns information about the initiated run in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runsResponseSchema"
                }
              }
            }
          }
        }
      }
    },
    "/acts/dami_studio~quora-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-dami_studio-quora-scraper",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "inputSchema": {
        "type": "object",
        "properties": {
          "startUrls": {
            "title": "Quora links",
            "type": "array",
            "description": "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.",
            "items": {
              "type": "string"
            }
          },
          "searchKeywords": {
            "title": "Keywords",
            "maxItems": 50,
            "type": "array",
            "description": "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.",
            "items": {
              "type": "string"
            }
          },
          "maxQuestionsPerKeyword": {
            "title": "Questions per keyword",
            "minimum": 1,
            "maximum": 80,
            "type": "integer",
            "description": "The most questions to take from each keyword, 1 to 80. The results limit below still ends the whole run.",
            "default": 20
          },
          "searchDateRange": {
            "title": "Keyword date range",
            "enum": [
              "any",
              "day",
              "week",
              "month",
              "year"
            ],
            "type": "string",
            "description": "Only look at pages dated within this range when searching by keyword. Any time leaves it open.",
            "default": "any"
          },
          "maxItems": {
            "title": "Results in total",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "The most rows for the whole run, counting every kind of row. The run stops there.",
            "default": 100
          },
          "maxAnswersPerQuestion": {
            "title": "Answers per question",
            "minimum": 0,
            "maximum": 5000,
            "type": "integer",
            "description": "The most answers to take from each question, in the order Quora shows them. 0 returns the question alone.",
            "default": 20
          },
          "skipSimilarQuestionAnswers": {
            "title": "Only answers to the question itself",
            "type": "boolean",
            "description": "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.",
            "default": false
          },
          "scrapeRelatedQuestions": {
            "title": "Also read related questions",
            "type": "boolean",
            "description": "Read the related questions each question page lists as well, with their answers, until the results limit.",
            "default": false
          },
          "minAnswerUpvotes": {
            "title": "Minimum upvotes",
            "minimum": 0,
            "maximum": 100000000,
            "type": "integer",
            "description": "Leave out answers with fewer upvotes than this. Answers left out aren't billed.",
            "default": 0
          },
          "answerAuthor": {
            "title": "Answers by one person",
            "type": "string",
            "description": "A Quora profile link or a name. Only that person's answers come back; questions, profiles, topics and Spaces are unaffected."
          },
          "maxAnswersPerProfile": {
            "title": "Answers per profile",
            "minimum": 0,
            "maximum": 5000,
            "type": "integer",
            "description": "A profile link returns the person and their most recent answers, up to this many. 0 returns the profile alone.",
            "default": 20
          },
          "maxItemsPerTopic": {
            "title": "Answers per topic",
            "minimum": 0,
            "maximum": 20,
            "type": "integer",
            "description": "A topic link returns the topic and the answers in its feed, up to this many. 0 returns the topic alone.",
            "default": 20
          },
          "maxItemsPerSpace": {
            "title": "Posts per Space",
            "minimum": 0,
            "maximum": 5000,
            "type": "integer",
            "description": "A Space link returns the Space and the posts and answers in its feed, up to this many. 0 returns the Space alone.",
            "default": 20
          },
          "includeComments": {
            "title": "Comments",
            "type": "boolean",
            "description": "Add the comments on each answer and post, each as a row of its own with a link back to what it comments on.",
            "default": false
          },
          "maxCommentsPerItem": {
            "title": "Comments per answer or post",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "The most comments to take from each answer or post.",
            "default": 10
          },
          "onlyNewItems": {
            "title": "Only new or changed items",
            "type": "boolean",
            "description": "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.",
            "default": false
          },
          "excludeEmptyFields": {
            "title": "Leave out empty fields",
            "type": "boolean",
            "description": "Drop fields that have no value from each row, so rows of different kinds stay short.",
            "default": false
          },
          "sessionCookie": {
            "title": "Account cookies (not needed)",
            "type": "string",
            "description": "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": {
            "title": "Proxy",
            "type": "object",
            "description": "Optional. Leave it empty and the run picks its own way in."
          }
        }
      },
      "runsResponseSchema": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "actId": {
                "type": "string"
              },
              "userId": {
                "type": "string"
              },
              "startedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "finishedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "status": {
                "type": "string",
                "example": "READY"
              },
              "meta": {
                "type": "object",
                "properties": {
                  "origin": {
                    "type": "string",
                    "example": "API"
                  },
                  "userAgent": {
                    "type": "string"
                  }
                }
              },
              "stats": {
                "type": "object",
                "properties": {
                  "inputBodyLen": {
                    "type": "integer",
                    "example": 2000
                  },
                  "rebootCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "restartCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "resurrectCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "computeUnits": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "options": {
                "type": "object",
                "properties": {
                  "build": {
                    "type": "string",
                    "example": "latest"
                  },
                  "timeoutSecs": {
                    "type": "integer",
                    "example": 300
                  },
                  "memoryMbytes": {
                    "type": "integer",
                    "example": 1024
                  },
                  "diskMbytes": {
                    "type": "integer",
                    "example": 2048
                  }
                }
              },
              "buildId": {
                "type": "string"
              },
              "defaultKeyValueStoreId": {
                "type": "string"
              },
              "defaultDatasetId": {
                "type": "string"
              },
              "defaultRequestQueueId": {
                "type": "string"
              },
              "buildNumber": {
                "type": "string",
                "example": "1.0.0"
              },
              "containerUrl": {
                "type": "string"
              },
              "usage": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "integer",
                    "example": 1
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "usageTotalUsd": {
                "type": "number",
                "example": 0.00005
              },
              "usageUsd": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "number",
                    "example": 0.00005
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}