{
  "openapi": "3.0.1",
  "info": {
    "title": "Quora Question, Answer & Profile Search Scraper",
    "description": "Search Quora by keyword or scrape question, answer, profile, topic, Space, and post URLs directly, and get the text, author details, and engagement counts of each visibly accessible page, with clear status rows for anything blocked.",
    "version": "1.1",
    "x-build-id": "4Ofo0BFs3PM3I87Iz"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/dataspryva~quora-question-answer-and-profile-search-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-dataspryva-quora-question-answer-and-profile-search-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/dataspryva~quora-question-answer-and-profile-search-scraper/runs": {
      "post": {
        "operationId": "runs-sync-dataspryva-quora-question-answer-and-profile-search-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/dataspryva~quora-question-answer-and-profile-search-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-dataspryva-quora-question-answer-and-profile-search-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": {
          "mode": {
            "title": "Mode",
            "enum": [
              "search",
              "urls",
              "authors"
            ],
            "type": "string",
            "description": "Search discovers questions through the DuckDuckGo index and Quora related questions. URLs is deterministic and does not depend on search.",
            "default": "search"
          },
          "searchQueries": {
            "title": "Search Keywords",
            "type": "array",
            "description": "Two to four word phrases work best. Each query finds at most a couple of question seeds, then related questions expand the result.",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "searchTarget": {
            "title": "Search Target",
            "enum": [
              "questions",
              "profiles",
              "both"
            ],
            "type": "string",
            "description": "Choose whether keyword discovery looks for question pages, profile pages, or both. Profile search is best-effort because search engines index few Quora profiles.",
            "default": "questions"
          },
          "directUrls": {
            "title": "Direct Quora URLs",
            "type": "array",
            "description": "Question, answer, profile, or topic URLs. Language subdomains are accepted. Comma-separated or one URL per line.",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "usernames": {
            "title": "Profile Usernames",
            "type": "array",
            "description": "Quora profile usernames or slugs, with or without @ or a trailing slash. Each is normalised to a profile URL.",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "resultTypes": {
            "title": "Result Types",
            "type": "array",
            "description": "Which rows to save. Status and run-manifest rows are always emitted so blocked or empty sources stay visible.",
            "items": {
              "type": "string",
              "enum": [
                "question",
                "answer",
                "profile",
                "author",
                "topic",
                "search_result"
              ]
            },
            "default": [
              "question",
              "answer",
              "search_result"
            ]
          },
          "includeAnswers": {
            "title": "Include Answers",
            "type": "boolean",
            "description": "Expand question pages into answer rows. Turn off to keep question rows only.",
            "default": true
          },
          "maxAnswersPerQuestion": {
            "title": "Maximum Answers per Question",
            "minimum": 0,
            "maximum": 500,
            "type": "integer",
            "description": "Answers to collect from each question, including the 3-5 already visible on the page. Zero means no answers.",
            "default": 20
          },
          "expandRelatedQuestions": {
            "title": "Expand Related Questions",
            "type": "boolean",
            "description": "Open related questions linked from each question page. Quora exposes up to 70, which is how keyword search reaches more than its first result.",
            "default": true
          },
          "maxRelatedQuestionsPerSeed": {
            "title": "Related Questions per Seed",
            "minimum": 0,
            "maximum": 70,
            "type": "integer",
            "description": "How many related questions to open from each question page. Zero lists the links without opening them.",
            "default": 20
          },
          "maxQuestionsPerQuery": {
            "title": "Maximum Questions per Query",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "Hard cap on question rows for each search query, including seed and related questions.",
            "default": 50
          },
          "includeAuthorProfiles": {
            "title": "Enrich Authors with Profiles",
            "type": "boolean",
            "description": "Open each discovered author's profile to add follower, answer, question, view, and join-date fields. Turn off to keep author rows from answer evidence only.",
            "default": true
          },
          "maxAuthors": {
            "title": "Maximum Authors",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Maximum unique author rows to emit when author is included in Result Types.",
            "default": 100
          },
          "minAnswerUpvotes": {
            "title": "Minimum Answer Upvotes",
            "minimum": 0,
            "maximum": 2000000000,
            "type": "integer",
            "description": "Keep only answers with an explicit upvote count at or above this value. Answers with unknown upvotes are excluded when this is positive.",
            "default": 0
          },
          "filterAiAnswers": {
            "title": "AI Answers",
            "enum": [
              "include",
              "exclude",
              "only"
            ],
            "type": "string",
            "description": "Include all answers, drop answers Quora explicitly labels as AI, or keep only those labelled answers.",
            "default": "include"
          },
          "answerSortOrder": {
            "title": "Answer Order",
            "enum": [
              "observed",
              "upvotes_desc",
              "newest"
            ],
            "type": "string",
            "description": "Keep Quora's order, sort by explicit upvotes, or sort by the answer creation timestamp.",
            "default": "observed"
          },
          "onlyUnanswered": {
            "title": "Only Unanswered Questions",
            "type": "boolean",
            "description": "Keep only questions whose visible answer count is exactly zero. Questions with an unknown count are excluded.",
            "default": false
          },
          "includeProfileSensitiveFields": {
            "title": "Include Profile Details",
            "type": "boolean",
            "description": "Include location, employment, education, and join date on profile and author rows when Quora shows them.",
            "default": true
          },
          "includeSocialLinks": {
            "title": "Include Social Links",
            "type": "boolean",
            "description": "Include website and social links from a profile's public bio when present.",
            "default": true
          },
          "includeAnswerHtml": {
            "title": "Include Answer HTML",
            "type": "boolean",
            "description": "Include a rendered HTML version of each answer beside its plain text. Turn off to reduce dataset size.",
            "default": true
          },
          "maxItems": {
            "title": "Maximum Rows",
            "minimum": 1,
            "maximum": 50000,
            "type": "integer",
            "description": "Maximum question, answer, profile, author, topic, and search-result rows across the run. Status and manifest rows do not count.",
            "default": 200
          },
          "includeFieldEvidence": {
            "title": "Include Field Evidence",
            "type": "boolean",
            "description": "Include field_sources and fields_present provenance maps on each row.",
            "default": true
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}