{
  "openapi": "3.0.1",
  "info": {
    "title": "China A-Share Guba Scraper (股吧) — Posts & Filings",
    "description": "Scrape Eastmoney Guba (东方财富股吧) investor posts and official China A-share announcements by stock code. No login. MCP-friendly JSON, only-new mode. $3 per 1,000 posts, $1 per 1,000 filings; failed and duplicate items are free.",
    "version": "0.1",
    "x-build-id": "ydpIUXWTCuQrEnC2u"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/alexsyin~guba-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-alexsyin-guba-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/alexsyin~guba-scraper/runs": {
      "post": {
        "operationId": "runs-sync-alexsyin-guba-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/alexsyin~guba-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-alexsyin-guba-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": [
          "stockCodes"
        ],
        "properties": {
          "stockCodes": {
            "title": "Stock codes",
            "minItems": 1,
            "maxItems": 50,
            "type": "array",
            "description": "China A-share tickers to collect from Eastmoney Guba (东方财富股吧) and official announcements. Accepts 600519, 000001, SH600519, 600519.SH, sz000001, BJ830799, and similar forms. The sample codes 600519 (Kweichow Moutai / 贵州茅台) and 000001 (Ping An Bank / 平安银行) return real public data. Xueqiu (雪球) is not supported.",
            "items": {
              "type": "string"
            }
          },
          "mode": {
            "title": "What to collect",
            "enum": [
              "posts",
              "announcements",
              "both"
            ],
            "type": "string",
            "description": "Guba (股吧) forum posts, official A-share announcements / filings (公司公告), or both.",
            "default": "both"
          },
          "maxItems": {
            "title": "Max items per stock, per type",
            "minimum": 1,
            "maximum": 400,
            "type": "integer",
            "description": "Maximum items written for each stock code, for each selected type. Example: two stocks, mode=both, maxItems=20 can return up to 80 rows (20 posts + 20 announcements per ticker). A first try of 10 per type is enough to see real posts and filings at a lower cost.",
            "default": 30
          },
          "includeFullText": {
            "title": "Include full text",
            "type": "boolean",
            "description": "Fetch the full body of each Guba post, and the official text of each announcement when the public content API provides it. Turn off for a faster, cheaper title-only pass. Timestamps are more accurate when this is on.",
            "default": true
          },
          "sentiment": {
            "title": "Add sentiment score (lexicon-based)",
            "type": "boolean",
            "description": "If true, every Guba post gets sentiment_score (-1 bearish to 1 bullish), sentiment_label (positive/neutral/negative) and the matched terms (sentiment_terms), and a per-stock SENTIMENT_SUMMARY record (average score, bullish/bearish ratio) is saved to the key-value store. Uses a built-in A-share lexicon (看多, 涨停, 割肉 ...), no external API; it is a heuristic that misses sarcasm, so use it for mood across many posts. Posts only; announcements are not scored. Billed $0.0005 per scored post.",
            "default": false
          },
          "onlyNew": {
            "title": "Only new items",
            "type": "boolean",
            "description": "Return only posts and announcements that were not seen in earlier runs that share the same Memory name. Ideal for a Schedule: you get (and pay for) just what is new. The first run returns everything and sets the baseline.",
            "default": false
          },
          "memoryName": {
            "title": "Memory name",
            "type": "string",
            "description": "Runs that share this name share one memory of seen post and announcement ids. Use a different name for each separate monitor (for example one per Schedule).",
            "default": "default"
          },
          "rememberHours": {
            "title": "Forget seen items after (hours)",
            "minimum": 1,
            "maximum": 8760,
            "type": "integer",
            "description": "A previously saved post or announcement counts as new again after this many hours. Default is 720 hours (30 days).",
            "default": 720
          },
          "dateFrom": {
            "title": "From date (Beijing time)",
            "pattern": "^$|^\\d{4}-\\d{2}-\\d{2}$",
            "type": "string",
            "description": "Only keep items on or after this calendar date, as YYYY-MM-DD, in Beijing time (UTC+8). Leave empty for no lower bound. Applied to a post's publish time (or the list time if full text is off) and to an announcement's official notice date."
          },
          "dateTo": {
            "title": "To date (Beijing time)",
            "pattern": "^$|^\\d{4}-\\d{2}-\\d{2}$",
            "type": "string",
            "description": "Only keep items on or before this calendar date, as YYYY-MM-DD, in Beijing time (UTC+8). Leave empty for no upper bound."
          },
          "keyword": {
            "title": "Title keyword (optional)",
            "type": "string",
            "description": "If set, only keep posts and announcements whose title contains this text (case-insensitive, works with Chinese)."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}