{
  "openapi": "3.0.1",
  "info": {
    "title": "Perplexity Scraper - Threads, Answers, Sources & Discover",
    "description": "Scrape public Perplexity threads and Discover stories: every answer, its cited sources (title, URL, snippet, date), related questions, the searches Perplexity ran, model and mode, plus Discover articles with full text and sources. Brand-mention tracking and monitor mode. No login, no browser.",
    "version": "0.1",
    "x-build-id": "v73yLII26FB4qxv6q"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/scrapersdelight~perplexity-search-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-scrapersdelight-perplexity-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/scrapersdelight~perplexity-search-scraper/runs": {
      "post": {
        "operationId": "runs-sync-scrapersdelight-perplexity-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/scrapersdelight~perplexity-search-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-scrapersdelight-perplexity-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": {
          "urls": {
            "title": "🔗 Perplexity URLs",
            "type": "array",
            "description": "Public thread URLs (perplexity.ai/search/...), Discover story or Page URLs (perplexity.ai/discover/tech/..., perplexity.ai/page/...), Discover topic URLs, or bare slugs. Private or deleted threads are skipped and never charged.",
            "items": {
              "type": "string"
            }
          },
          "discoverTopics": {
            "title": "📰 Discover topics",
            "uniqueItems": true,
            "type": "array",
            "description": "Perplexity Discover feeds to read, newest stories first. Leave empty to read only the URLs above (with no URLs either, the Top feed is read).",
            "items": {
              "type": "string",
              "enum": [
                "top",
                "tech",
                "finance",
                "arts",
                "sports",
                "entertainment"
              ],
              "enumTitles": [
                "Top",
                "Tech & Science",
                "Business",
                "Arts & Culture",
                "Sports",
                "Entertainment"
              ]
            }
          },
          "includeFollowUps": {
            "title": "Include follow-up answers",
            "type": "boolean",
            "description": "On: one row per answer in a thread (the first question and every follow-up). Off: only the thread's first answer.",
            "default": true
          },
          "sortBy": {
            "title": "Sort Discover stories",
            "enum": [
              "feedOrder",
              "newest",
              "oldest",
              "mostSources"
            ],
            "type": "string",
            "description": "Order of Discover stories. Any order other than the feed's own reads the whole feed window first (up to 1,000 stories per topic).",
            "default": "feedOrder"
          },
          "includeKeywords": {
            "title": "Must contain any of",
            "type": "array",
            "description": "Keep only results that mention at least one of these words (case-insensitive). Threads: the question and answer. Discover: title, summary, description and key points. e.g. \"AI\", \"Nvidia\".",
            "items": {
              "type": "string"
            }
          },
          "excludeKeywords": {
            "title": "Must not contain",
            "type": "array",
            "description": "Drop results that mention any of these words (case-insensitive), checked on the same text as above. e.g. \"rumor\".",
            "items": {
              "type": "string"
            }
          },
          "minSourceCount": {
            "title": "Minimum sources",
            "minimum": 0,
            "maximum": 200,
            "type": "integer",
            "description": "Keep only answers / stories that cite at least this many sources. 0 = no minimum.",
            "default": 0
          },
          "publishedAfter": {
            "title": "Published after",
            "type": "string",
            "description": "Keep only stories published (answers created) on or after this date, e.g. 2026-10-01. Pairs well with a daily schedule."
          },
          "publishedBefore": {
            "title": "Published before",
            "type": "string",
            "description": "Keep only stories published (answers created) on or before this date, e.g. 2026-10-31."
          },
          "includeArticleText": {
            "title": "Add full article text and every source",
            "type": "boolean",
            "description": "Discover stories: read each story's article page for the full text, every section and every cited source. Same price per story; turn off for cards only (faster).",
            "default": true
          },
          "checkBrands": {
            "title": "Brands to track",
            "type": "array",
            "description": "Brand or product names to look for. Each row gets mention count, whether the answer names it, the first mention position and whether a cited source is the brand's own site. e.g. \"HubSpot\", \"Salesforce\".",
            "items": {
              "type": "string"
            }
          },
          "monitorMode": {
            "title": "Only new or updated results",
            "type": "boolean",
            "description": "Deliver only stories / answers not delivered by an earlier run with the same input (or updated since). Pairs with a daily schedule; unchanged results are never charged.",
            "default": false
          },
          "monitorKey": {
            "title": "Monitor name",
            "type": "string",
            "description": "Optional name for the monitor's memory, so several schedules with different inputs keep separate histories. Empty = derived from the input."
          },
          "maxResults": {
            "title": "Max results",
            "minimum": 0,
            "maximum": 20000,
            "type": "integer",
            "description": "Most rows delivered in this run (thread answers + Discover stories). Each Discover topic holds about 350-500+ stories. 0 = no limit.",
            "default": 50
          },
          "maxResultsPerTopic": {
            "title": "Max stories per topic",
            "minimum": 0,
            "maximum": 1000,
            "type": "integer",
            "description": "Cap per Discover topic when several are picked. 0 = no per-topic cap.",
            "default": 0
          },
          "compact": {
            "title": "Compact output",
            "type": "boolean",
            "description": "Core fields only (question/title, answer or article text, source titles and URLs, related questions) - trimmed for AI / MCP pipelines.",
            "default": false
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Not needed: the actor connects directly and falls back to a residential proxy on its own (included in the price). Your own proxy URLs are used first if you add them.",
            "default": {
              "useApifyProxy": false
            }
          },
          "maxConcurrency": {
            "title": "Parallel requests",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "How many threads / articles are read at the same time.",
            "default": 5
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}