{
  "openapi": "3.0.1",
  "info": {
    "title": "Quora Keyword Search & Author Discovery Scraper",
    "description": "Search Quora by keyword or scrape visibly accessible question, answer, profile, topic, Space, and Post URLs directly, with filters for promoted cards, AI-labeled answers, unanswered questions, and author discovery across your results.",
    "version": "1.0",
    "x-build-id": "JWoVhbBdDSTo9DNhE"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/vexaloom-labs~quora-keyword-search-and-author-discovery-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-vexaloom-labs-quora-keyword-search-and-author-discovery-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/vexaloom-labs~quora-keyword-search-and-author-discovery-scraper/runs": {
      "post": {
        "operationId": "runs-sync-vexaloom-labs-quora-keyword-search-and-author-discovery-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/vexaloom-labs~quora-keyword-search-and-author-discovery-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-vexaloom-labs-quora-keyword-search-and-author-discovery-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": [
              "urls",
              "search",
              "authors"
            ],
            "type": "string",
            "description": "What to scrape. `urls` follows pasted Quora links. `search` discovers indexed question links for your keywords and expands related questions. `authors` builds author profiles from pasted profile or question URLs.",
            "default": "urls"
          },
          "directUrls": {
            "title": "Quora URLs",
            "type": "array",
            "description": "Paste question, answer, profile, or topic URLs. Language subdomains such as es.quora.com are accepted. Invalid links are reported as status rows.",
            "items": {
              "type": "string"
            }
          },
          "searchQueries": {
            "title": "Keywords or Question Titles",
            "type": "array",
            "description": "Best-effort keyword discovery. Quora's own search page is gated for anonymous visitors, so results depend on the public web index; a run with no indexed matches returns a clear status row instead of invented results.",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "usernames": {
            "title": "Profile Usernames",
            "type": "array",
            "description": "Quora profile slugs, with or without a leading @ or trailing slash. Converted to profile URLs and merged with Quora URLs.",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "resultTypes": {
            "title": "Result Types",
            "type": "array",
            "description": "Which entity rows to emit. Status and run-manifest rows are always written when relevant.",
            "items": {
              "type": "string",
              "enum": [
                "question",
                "answer",
                "profile",
                "author",
                "topic"
              ]
            },
            "default": [
              "question",
              "answer"
            ]
          },
          "includeAnswers": {
            "title": "Include Answers",
            "type": "boolean",
            "description": "Emit answer rows and fetch answers beyond the first visible cards on question pages.",
            "default": true
          },
          "maxAnswersPerQuestion": {
            "title": "Maximum Answers per Question",
            "minimum": 0,
            "maximum": 500,
            "type": "integer",
            "description": "Answer cap for each question URL. Zero emits no answers from question pages.",
            "default": 20
          },
          "includeRelatedQuestions": {
            "title": "Discover Related Questions",
            "type": "boolean",
            "description": "Follow the related-question links on each question page and scrape those questions too. This is the reliable discovery path when keyword search is gated.",
            "default": false
          },
          "maxRelatedQuestions": {
            "title": "Maximum Related Questions",
            "minimum": 0,
            "maximum": 100,
            "type": "integer",
            "description": "Related questions retained per question page and used as discovery seeds. Zero keeps all observed related questions.",
            "default": 15
          },
          "includeAuthorProfiles": {
            "title": "Enrich Authors with Profile Stats",
            "type": "boolean",
            "description": "Open each discovered author's profile to add followers, following, answer/question counts, views, join date, and credential.",
            "default": true
          },
          "maxAuthors": {
            "title": "Maximum Authors",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Maximum unique author rows emitted from answer evidence.",
            "default": 100
          },
          "minAnswerUpvotes": {
            "title": "Minimum Answer Upvotes",
            "minimum": 0,
            "maximum": 2000000000,
            "type": "integer",
            "description": "Drop answers below this upvote count. Answers with no explicit upvote count are excluded when this is above zero.",
            "default": 0
          },
          "filterAiAnswers": {
            "title": "AI Answers",
            "enum": [
              "include",
              "exclude",
              "only"
            ],
            "type": "string",
            "description": "Include all answers, exclude answers explicitly labelled as AI, or keep only those AI-labelled answers.",
            "default": "include"
          },
          "answerSortOrder": {
            "title": "Answer Sort Order",
            "enum": [
              "observed",
              "upvotes_desc",
              "newest"
            ],
            "type": "string",
            "description": "Keep Quora's observed order, or sort by explicit upvotes or creation time.",
            "default": "observed"
          },
          "includeMedia": {
            "title": "Include Answer Media",
            "type": "boolean",
            "description": "Retain image and video links embedded in answer content.",
            "default": false
          },
          "includeOutboundLinks": {
            "title": "Include Outbound Links",
            "type": "boolean",
            "description": "Retain external links embedded in answer content.",
            "default": false
          },
          "includeAnswerHtml": {
            "title": "Include Answer HTML",
            "type": "boolean",
            "description": "Retain a simple HTML rendering of each answer alongside its plain text.",
            "default": true
          },
          "includeProfileSensitiveFields": {
            "title": "Include Profile Location and Work History",
            "type": "boolean",
            "description": "Include location, employment, education, and join date on profile and author rows.",
            "default": true
          },
          "includeSocialLinks": {
            "title": "Include Social Links",
            "type": "boolean",
            "description": "Include website and social links found on a profile.",
            "default": true
          },
          "maxItems": {
            "title": "Maximum Total Rows",
            "minimum": 1,
            "maximum": 50000,
            "type": "integer",
            "description": "Hard cap on real data rows across the run. Status and manifest rows do not consume the cap.",
            "default": 200
          },
          "maxItemsPerSource": {
            "title": "Maximum Rows per Source",
            "minimum": 0,
            "maximum": 5000,
            "type": "integer",
            "description": "Cap real rows emitted from each URL or keyword. Zero means no per-source cap.",
            "default": 0
          },
          "includeFieldEvidence": {
            "title": "Include Field Evidence",
            "type": "boolean",
            "description": "Add field_sources and fields_present metadata so each value can be traced to the page payload.",
            "default": true
          },
          "onlyUnanswered": {
            "title": "Only Unanswered Questions",
            "type": "boolean",
            "description": "Keep only questions whose explicit answer count is exactly zero. Unknown counts are excluded.",
            "default": false
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}