{
  "openapi": "3.0.1",
  "info": {
    "title": "Quora Search Scraper",
    "description": "Search public Quora pages by keyword or open direct URLs. Export questions, visible answers, profiles, topics, spaces, posts, authors, counts, media, and source links.",
    "version": "3.0",
    "x-build-id": "BqY0jRYs54Zm1tEMk"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/maximedupre~quora-search-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-maximedupre-quora-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/maximedupre~quora-search-scraper/runs": {
      "post": {
        "operationId": "runs-sync-maximedupre-quora-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/maximedupre~quora-search-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-maximedupre-quora-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",
        "required": [
          "searchType",
          "targets"
        ],
        "properties": {
          "searchType": {
            "title": "Result type",
            "enum": [
              "question",
              "profile",
              "topic",
              "space",
              "post",
              "all"
            ],
            "type": "string",
            "description": "Choose the page family to find from keyword values. This choice does not change direct Quora URLs in targets."
          },
          "targets": {
            "title": "Keywords or Quora URLs",
            "minItems": 1,
            "type": "array",
            "description": "Enter one or more keywords, public Quora page URLs, or both. URLs can point to questions, profiles, topics, spaces, posts, or Quora search pages.",
            "items": {
              "type": "string",
              "minLength": 1
            }
          },
          "dateRange": {
            "title": "Search date range",
            "enum": [
              "any",
              "day",
              "week",
              "month",
              "year"
            ],
            "type": "string",
            "description": "Choose a date window for pages found through keywords when Quora shows a usable source date. Direct Quora URLs are opened as given and are not filtered by this choice.",
            "default": "any"
          },
          "topicFilter": {
            "title": "Question topic filter",
            "type": "array",
            "description": "For keyword results under Questions or All page types, keep questions that show at least one of these public topic labels. This does not filter direct URLs or other page types. Leave it empty to keep every matching question.",
            "items": {
              "type": "string",
              "minLength": 1
            }
          },
          "answerDepth": {
            "title": "Answer depth",
            "enum": [
              "top",
              "all"
            ],
            "type": "string",
            "description": "For question pages, including keyword results under Questions or All page types and direct question URLs, choose whether to collect the top visible answers or all visible answers. The answer text and available public details are included for every answer collected.",
            "default": "all"
          },
          "minAnswerUpvotes": {
            "title": "Minimum answer upvotes",
            "minimum": 0,
            "type": "integer",
            "description": "For question pages, including keyword results under Questions or All page types and direct question URLs, keep only answers with at least this many public upvotes. Leave it empty to keep all visible answers. A question stays in the results even if no answer meets the threshold."
          },
          "answerOrder": {
            "title": "Answer order",
            "enum": [
              "relevance",
              "recency",
              "upvotes"
            ],
            "type": "string",
            "description": "For question pages, including keyword results under Questions or All page types and direct question URLs, choose how to order visible answers: by relevance, recency, or public upvotes. This does not change the order of saved question pages.",
            "default": "relevance"
          },
          "globalOrder": {
            "title": "Result order",
            "enum": [
              "relevance",
              "recency",
              "upvotes"
            ],
            "type": "string",
            "description": "Choose how to order saved rows across the run: by relevance, recency, or public upvotes. The Actor uses public dates or upvote counts when Quora shows them.",
            "default": "relevance"
          },
          "maxResults": {
            "title": "Result limit",
            "minimum": 1,
            "type": "integer",
            "description": "Set an optional limit for saved rows in the whole run. Leave it empty to return all available results until the source is exhausted. Otherwise, the Actor stops after it saves this many rows."
          }
        }
      },
      "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
                  }
                }
              },
              "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}