{
  "openapi": "3.0.1",
  "info": {
    "title": "Llm Sentiment Scraper",
    "description": "Scrape Reddit for real human opinions about 30+ LLM models. Sentiment         \nanalysis, top comments, and community consensus from r/LocalLLaMA, r/ChatGPT, \nr/ClaudeAI, and more. The qualitative layer benchmarks can't capture.",
    "version": "0.1",
    "x-build-id": "9eZcd39Ukzgua3Bgx"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/david_flagg~llm-sentiment-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-david_flagg-llm-sentiment-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/david_flagg~llm-sentiment-scraper/runs": {
      "post": {
        "operationId": "runs-sync-david_flagg-llm-sentiment-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/david_flagg~llm-sentiment-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-david_flagg-llm-sentiment-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": {
          "modelFilter": {
            "title": "Model Name Filter",
            "type": "string",
            "description": "Only scrape models whose name contains this text (case-insensitive). Examples: 'claude', 'llama', 'gpt'. Leave empty to scrape all 30+ default models."
          },
          "models": {
            "title": "Custom Model List",
            "type": "array",
            "description": "Custom models to search for. Each item needs a 'name' and optional 'aliases' array. If provided, replaces the default model list.",
            "items": {
              "type": "object",
              "properties": {
                "name": {
                  "title": "Model Name",
                  "type": "string",
                  "description": "Canonical model name (e.g. 'GPT-4o')"
                },
                "aliases": {
                  "title": "Search Aliases",
                  "type": "array",
                  "items": {
                    "type": "string"
                  },
                  "description": "Search variants (e.g. ['GPT-4o', 'gpt4o', 'GPT 4o'])"
                }
              },
              "required": [
                "name"
              ]
            }
          },
          "subreddits": {
            "title": "Subreddits",
            "type": "array",
            "description": "Subreddits to search. Default: LocalLLaMA, ChatGPT, ClaudeAI, OpenAI, ollama, MachineLearning, singularity, SillyTavernAI, KoboldAI, artificial.",
            "items": {
              "type": "string"
            }
          },
          "timeFilter": {
            "title": "Time Range",
            "enum": [
              "week",
              "month",
              "year",
              "all"
            ],
            "type": "string",
            "description": "How far back to search.",
            "default": "month"
          },
          "minPostScore": {
            "title": "Minimum Post Score",
            "minimum": 0,
            "type": "integer",
            "description": "Only include posts with at least this many upvotes. Higher values filter for community-endorsed opinions.",
            "default": 3
          },
          "maxPostsPerModel": {
            "title": "Max Posts Per Model",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "Maximum posts to collect per model (across all subreddits).",
            "default": 50
          },
          "maxResults": {
            "title": "Maximum Total Results",
            "minimum": 1,
            "maximum": 50000,
            "type": "integer",
            "description": "Maximum total opinion entries in the output dataset.",
            "default": 2000
          },
          "includeComments": {
            "title": "Include Comments",
            "type": "boolean",
            "description": "Fetch and include top comments for high-value posts. Provides richer opinion data but increases run time.",
            "default": true
          },
          "maxCommentsPerPost": {
            "title": "Max Comments Per Post",
            "minimum": 1,
            "maximum": 50,
            "type": "integer",
            "description": "Maximum comments to include per post.",
            "default": 10
          },
          "minSentimentScore": {
            "title": "Minimum Sentiment Strength",
            "minimum": 0,
            "maximum": 1,
            "type": "number",
            "description": "Only include posts where |sentiment_score| >= this value. Filters for strongly opinionated posts. Range: 0.0 (include all) to 1.0 (only unanimous)."
          },
          "useProxy": {
            "title": "Use Proxy",
            "type": "boolean",
            "description": "Use Apify proxy to avoid Reddit blocking. Recommended for production runs. Disable for local testing.",
            "default": true
          },
          "proxyCountry": {
            "title": "Proxy Country",
            "type": "string",
            "description": "Country code for proxy IP selection (e.g. 'US', 'GB', 'DE').",
            "default": "US"
          },
          "proxyGroups": {
            "title": "Proxy Groups",
            "type": "array",
            "description": "Apify proxy groups. Use ['RESIDENTIAL'] for subreddits that block datacenter IPs (e.g. r/LocalLLaMA). Uses more credits but higher success rate. Leave empty for datacenter proxy (default).",
            "items": {
              "type": "string"
            }
          },
          "sortBy": {
            "title": "Sort By",
            "enum": [
              "post_score",
              "post_num_comments",
              "sentiment_score",
              "mention_count",
              "post_created_utc",
              "model_name"
            ],
            "type": "string",
            "description": "Sort results by this field.",
            "default": "post_score"
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}