{
  "openapi": "3.0.1",
  "info": {
    "title": "Eastmoney Scraper | Guba Posts and Comments",
    "description": "Eastmoney Guba scraper (东方财富股吧) for China's stock forum: posts by stock code, keyword or post link with full text, author, reads, comments, likes, shares, province, dates and latest comments. 2 stock codes gave 20 posts in 6 seconds, 22 fields each. Built for retail sentiment and IR monitoring.",
    "version": "1.0",
    "x-build-id": "3FFeGMZgw42iOOk12"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/silentflow~eastmoney-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-silentflow-eastmoney-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/silentflow~eastmoney-scraper/runs": {
      "post": {
        "operationId": "runs-sync-silentflow-eastmoney-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/silentflow~eastmoney-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-silentflow-eastmoney-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": {
          "stockCodes": {
            "title": "📈 Stock codes",
            "type": "array",
            "description": "The stocks whose Guba bar (股吧) you want to read, one per line: Shanghai and Shenzhen codes (<code>600519</code>, <code>000001.SZ</code>, <code>SH601318</code>), Hong Kong (<code>00700.HK</code>, <code>hk00700</code>), US tickers (<code>AAPL</code>), ETFs (<code>510300</code>) or a bar link (<code>guba.eastmoney.com/list,600519.html</code>). Each stock gives up to <b>Max posts</b> rows, newest first.",
            "items": {
              "type": "string"
            }
          },
          "postUrls": {
            "title": "🔗 Post URLs or IDs",
            "type": "array",
            "description": "Guba posts to read again, by link (<code>https://guba.eastmoney.com/news,600519,1803677672.html</code>) or by ID (<code>1803677672</code>). Every post gives one row with its latest counters and comments, whatever <b>Max posts</b> says: handy to follow how a post spreads.",
            "items": {
              "type": "string"
            }
          },
          "keywords": {
            "title": "🔎 Keywords",
            "type": "array",
            "description": "Search every Guba bar for posts that mention a word, newest first: <code>降息</code>, <code>新能源</code>, <code>英伟达</code>. Type them in Chinese, as investors write them. Each keyword gives up to <b>Max posts</b> rows.",
            "items": {
              "type": "string"
            }
          },
          "maxItems": {
            "title": "🔢 Max posts per stock or keyword",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "How many posts to save for each stock code and each keyword. Busy stocks get hundreds of posts a day: <code>50</code> takes about 20 seconds per stock, <code>500</code> a few minutes. Post links and IDs always give one row each.",
            "default": 50
          },
          "publishedAfter": {
            "title": "📅 Posts published after",
            "type": "string",
            "description": "Only keep posts published on or after this date (Beijing time): <code>2026-12-01</code>, or an age such as <code>1 day</code> for a daily schedule. Each stock stops at the first older post, so a daily run reads only what is new. Empty keeps every date."
          },
          "postType": {
            "title": "🏷️ Post type",
            "enum": [
              "all",
              "post",
              "news",
              "research",
              "announcement"
            ],
            "type": "string",
            "description": "Keep one kind of post: <b>User posts</b> are what retail investors write (the sentiment signal), <b>News</b>, <b>Research reports</b> and <b>Announcements</b> are the bar's own tabs. <b>All</b> keeps everything the bar shows.",
            "default": "all"
          },
          "sortBy": {
            "title": "↕️ Sort by",
            "enum": [
              "newest",
              "lastReply"
            ],
            "type": "string",
            "description": "<b>Newest</b> reads posts in the order they were published. <b>Last reply</b> reads the posts people are answering right now first, as the bar does by default.",
            "default": "newest"
          },
          "maxComments": {
            "title": "💬 Comments per post",
            "minimum": 0,
            "maximum": 100,
            "type": "integer",
            "description": "How many of the latest comments to add to each post, with the answers to them. <code>0</code> skips comments for a faster run. Up to <code>100</code>.",
            "default": 20
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}