{
  "openapi": "3.0.1",
  "info": {
    "title": "Reddit Front Page & AMA Monitor",
    "description": "Monitor Reddit's front page, rising and top feeds by country, and turn AMA threads into question-and-answer records. Uses Reddit Atom RSS and the free Arctic Shift archive. No login, API key or proxy.",
    "version": "0.1",
    "x-build-id": "UCn2n7fCJ1cUJfqpB"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/xyrelith-data~reddit-frontpage-ama-monitor/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-xyrelith-data-reddit-frontpage-ama-monitor",
        "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/xyrelith-data~reddit-frontpage-ama-monitor/runs": {
      "post": {
        "operationId": "runs-sync-xyrelith-data-reddit-frontpage-ama-monitor",
        "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/xyrelith-data~reddit-frontpage-ama-monitor/run-sync": {
      "post": {
        "operationId": "run-sync-xyrelith-data-reddit-frontpage-ama-monitor",
        "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": "What to collect",
            "enum": [
              "frontPage",
              "ama"
            ],
            "type": "string",
            "description": "Front page snapshots read Reddit's current r/popular or r/all listing by country and sort order. AMA mode finds AMA threads over a date window and returns question-and-answer pairs.",
            "default": "frontPage"
          },
          "maxItems": {
            "title": "Maximum records",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Global stop control for the whole run. For front page it caps snapshot rows; for AMA it caps summaries, Q&A pairs and unanswered questions together.",
            "default": 300
          },
          "feeds": {
            "title": "Feeds (front page)",
            "type": "array",
            "description": "Which Reddit feeds to snapshot: popular (curated, supports country filtering for hot) and/or all. Reddit blocks the anonymous r/all Atom feed, so all rows fall back to a broad 25-community hot feed and are marked feedScope=multi-community.",
            "items": {
              "type": "string"
            },
            "default": [
              "popular"
            ]
          },
          "countries": {
            "title": "Countries (front page)",
            "type": "array",
            "description": "Reddit country codes for the r/popular hot feed, for example US, GB, DE, IN, BR, MX, JP. Use GLOBAL or leave empty for worldwide. Reddit applies geo filtering to hot only; rising, top, new and r/all rows are worldwide.",
            "items": {
              "type": "string"
            },
            "default": [
              "GLOBAL"
            ]
          },
          "sort": {
            "title": "Sort order (front page)",
            "enum": [
              "hot",
              "rising",
              "top",
              "new"
            ],
            "type": "string",
            "description": "Reddit's current feed order: hot, rising, top (over the time window below) or new. Country filtering applies to hot; other orders use the worldwide feed.",
            "default": "hot"
          },
          "timeFilter": {
            "title": "Top time window (front page)",
            "enum": [
              "hour",
              "day",
              "week",
              "month",
              "year",
              "all"
            ],
            "type": "string",
            "description": "Ranking window used only when sort is Top.",
            "default": "day"
          },
          "snapshots": {
            "title": "Repeated snapshots (front page)",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "How many times to read the selected feeds. Use more than 1 to compare countries or capture rank changes over time. Each row carries its snapshot number, rank and rank change.",
            "default": 1
          },
          "snapshotIntervalSecs": {
            "title": "Seconds between snapshots (front page)",
            "minimum": 0,
            "maximum": 900,
            "type": "integer",
            "description": "Wait time between repeated snapshots. Ignored when snapshots is 1.",
            "default": 30
          },
          "includeNSFW": {
            "title": "Include NSFW posts",
            "type": "boolean",
            "description": "When off, posts known to be over-18 are skipped. RSS rows without a known NSFW flag are kept because the source does not report it.",
            "default": false
          },
          "minScore": {
            "title": "Minimum score (front page)",
            "minimum": -1000000,
            "maximum": 1000000,
            "type": "integer",
            "description": "Keep only posts whose Arctic Shift score is at least this value. Rows without a score (archive enrichment unavailable) are skipped when this filter is set."
          },
          "amaSubreddits": {
            "title": "AMA subreddits",
            "type": "array",
            "description": "AMA-style communities to search, for example IAmA, CasualIAmA or AMA. Accepts bare names or r/ names.",
            "items": {
              "type": "string"
            },
            "default": [
              "IAmA"
            ]
          },
          "amaKeyword": {
            "title": "Keyword filter (AMA)",
            "type": "string",
            "description": "Only keep AMAs whose title or body contains every word of this keyword. Leave empty to keep all AMAs in the selected communities."
          },
          "amaSort": {
            "title": "AMA order",
            "enum": [
              "new",
              "top",
              "comments"
            ],
            "type": "string",
            "description": "Order the discovered AMAs before reading their threads: newest first, highest score, or most comments.",
            "default": "comments"
          },
          "amaPeriod": {
            "title": "AMA date window",
            "enum": [
              "hour",
              "day",
              "week",
              "month",
              "year",
              "all"
            ],
            "type": "string",
            "description": "How far back to look for AMAs. Ignored when postedAfter or postedBefore is set.",
            "default": "week"
          },
          "postedAfter": {
            "title": "AMAs created on or after",
            "type": "string",
            "description": "Optional explicit start date or ISO date-time, for example 2026-11-01. Overrides the AMA date window start."
          },
          "postedBefore": {
            "title": "AMAs created before",
            "type": "string",
            "description": "Optional explicit end date or ISO date-time. Overrides the end of the AMA date window."
          },
          "maxAmas": {
            "title": "Maximum AMAs",
            "minimum": 1,
            "maximum": 50,
            "type": "integer",
            "description": "How many AMA threads to read in this run, across all selected subreddits.",
            "default": 3
          },
          "maxCommentsPerAma": {
            "title": "Maximum comments per AMA",
            "minimum": 0,
            "maximum": 25000,
            "type": "integer",
            "description": "Comments to read from each thread, newest first. 0 reads the whole reachable thread (up to 25,000 comments).",
            "default": 0
          },
          "minAmaScore": {
            "title": "Minimum AMA score",
            "minimum": -1000000,
            "maximum": 1000000,
            "type": "integer",
            "description": "Skip AMA posts with fewer net votes than this. Archive scores can lag for very new posts."
          },
          "minComments": {
            "title": "Minimum AMA comments",
            "minimum": 0,
            "maximum": 1000000,
            "type": "integer",
            "description": "Skip AMA posts with fewer comments than this."
          },
          "minQuestionScore": {
            "title": "Minimum question score",
            "minimum": 0,
            "maximum": 1000000,
            "type": "integer",
            "description": "Only keep questions with at least this score. Applies to Q&A pairs and unanswered questions.",
            "default": 0
          },
          "minAnswerScore": {
            "title": "Minimum answer score",
            "minimum": 0,
            "maximum": 1000000,
            "type": "integer",
            "description": "Only keep host answers with at least this score.",
            "default": 0
          },
          "includeUnanswered": {
            "title": "Include unanswered top questions",
            "type": "boolean",
            "description": "Also emit top-level questions that the host never answered, as separate amaQuestion records.",
            "default": false
          },
          "maxUnansweredPerAma": {
            "title": "Maximum unanswered questions per AMA",
            "minimum": 0,
            "maximum": 100,
            "type": "integer",
            "description": "How many of the highest-scored unanswered questions to emit for each AMA. Ignored when includeUnanswered is off.",
            "default": 5
          },
          "includeSummary": {
            "title": "Include one summary per AMA",
            "type": "boolean",
            "description": "Emit an amaSummary record with the host, AMA date, comments read, host answers and number of questions answered.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}