{
  "openapi": "3.0.1",
  "info": {
    "title": "East Money Scraper",
    "description": "Scrape East Money (eastmoney.com) - China's largest finance portal. Search finance news, get real-time stock quotes and historical K-line data from the public push2 JSON APIs, browse market news by column, and resolve quotes from stock page URLs. No login required.",
    "version": "1.0",
    "x-build-id": "JMprXywHXwGefPKus"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/crawlerbros~eastmoney-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-crawlerbros-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/crawlerbros~eastmoney-scraper/runs": {
      "post": {
        "operationId": "runs-sync-crawlerbros-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/crawlerbros~eastmoney-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-crawlerbros-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",
        "required": [
          "mode"
        ],
        "properties": {
          "mode": {
            "title": "Mode",
            "enum": [
              "search",
              "byStock",
              "marketNews",
              "byStockUrl",
              "topGainers",
              "byStockName"
            ],
            "type": "string",
            "description": "What to fetch.",
            "default": "search"
          },
          "searchQuery": {
            "title": "Search query (mode=search)",
            "type": "string",
            "description": "Free-text news keyword, e.g. `贵州茅台`, `新能源`, `美联储`.",
            "default": "贵州茅台"
          },
          "searchSort": {
            "title": "News sort (mode=search)",
            "enum": [
              "time",
              "default"
            ],
            "type": "string",
            "description": "Order of news results. Note: upstream `time` (newest-first) currently returns the site-wide hot feed and ignores the keyword, so `default` (relevance) is recommended.",
            "default": "default"
          },
          "stockCodes": {
            "title": "Stock codes (mode=byStock)",
            "type": "array",
            "description": "Codes in any form: `600519`, `1.600519`, `SH600519`, `SZ000001`, `000001` (auto-detected as Shenzhen).",
            "default": [
              "600519"
            ],
            "items": {
              "type": "string"
            }
          },
          "includeKline": {
            "title": "Include K-line history",
            "type": "boolean",
            "description": "Emit K-line candles alongside the quote (mode=byStock / byStockUrl / byStockName).",
            "default": true
          },
          "klineDays": {
            "title": "K-line candles (days)",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "How many candles to emit per stock.",
            "default": 60
          },
          "klinePeriod": {
            "title": "K-line period (mode=byStock / byStockUrl / byStockName)",
            "enum": [
              "day",
              "week",
              "month"
            ],
            "type": "string",
            "description": "Candle granularity.",
            "default": "day"
          },
          "adjustPrice": {
            "title": "Price adjustment (mode=byStock / byStockUrl / byStockName)",
            "enum": [
              "qfq",
              "hfq",
              "none"
            ],
            "type": "string",
            "description": "How the historical prices are adjusted.",
            "default": "qfq"
          },
          "stockNames": {
            "title": "Stock names (mode=byStockName)",
            "type": "array",
            "description": "Chinese stock names to resolve, e.g. `贵州茅台`, `宁德时代`, `平安银行`.",
            "default": [
              "贵州茅台"
            ],
            "items": {
              "type": "string"
            }
          },
          "stockUrls": {
            "title": "Stock page URLs (mode=byStockUrl)",
            "type": "array",
            "description": "Quote page URLs, e.g. `https://quote.eastmoney.com/sh600519.html`, `https://quote.eastmoney.com/sz000001.html`.",
            "default": [
              "https://quote.eastmoney.com/sh600519.html"
            ],
            "items": {
              "type": "string"
            }
          },
          "newsColumn": {
            "title": "News column (mode=marketNews)",
            "enum": [
              "100",
              "102",
              "103",
              "104",
              "105",
              "106",
              "107",
              "110",
              "111",
              "112",
              "113",
              "114",
              "115",
              "118",
              "120",
              "122",
              "125",
              "127",
              "128"
            ],
            "type": "string",
            "description": "Kuaixun flash-feed column to browse.",
            "default": "102"
          },
          "marketRank": {
            "title": "Market rank list (mode=topGainers)",
            "enum": [
              "shA",
              "szA",
              "allA",
              "gem",
              "us"
            ],
            "type": "string",
            "description": "Which market board to rank.",
            "default": "allA"
          },
          "rankSort": {
            "title": "Rank field (mode=topGainers)",
            "enum": [
              "changePct",
              "turnover",
              "amount",
              "volume",
              "marketCap",
              "mainNetInflow",
              "volumeRatio",
              "peRatio"
            ],
            "type": "string",
            "description": "Sort criterion for the ranking.",
            "default": "changePct"
          },
          "rankDirection": {
            "title": "Rank direction (mode=topGainers)",
            "enum": [
              "desc",
              "asc"
            ],
            "type": "string",
            "description": "Descending = top of the field (e.g. biggest gainers); ascending = bottom (e.g. biggest losers).",
            "default": "desc"
          },
          "minPrice": {
            "title": "Min price (CNY)",
            "minimum": 0,
            "maximum": 100000,
            "type": "number",
            "description": "Drop stock records priced below this."
          },
          "maxPrice": {
            "title": "Max price (CNY)",
            "minimum": 0,
            "maximum": 100000,
            "type": "number",
            "description": "Drop stock records priced above this."
          },
          "minChangePct": {
            "title": "Min change %",
            "minimum": -100,
            "maximum": 100,
            "type": "number",
            "description": "Drop records with changePct below this."
          },
          "maxChangePct": {
            "title": "Max change %",
            "minimum": -100,
            "maximum": 100,
            "type": "number",
            "description": "Drop records with changePct above this."
          },
          "containsKeyword": {
            "title": "Keyword in title/name",
            "type": "string",
            "description": "Only emit records whose title (news) or stock name contains this substring."
          },
          "maxItems": {
            "title": "Max items",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Hard cap on emitted records.",
            "default": 50
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}