{
  "openapi": "3.0.1",
  "info": {
    "title": "Google News→Markdown｜AI News zh/EN/TW/HK",
    "description": "Search Google News (EN + zh-CN / TW / HK) → deduped stories with real article URLs + optional LLM-ready Markdown body. Paywalls / body fails → title+link still returned; body not charged. No login.\n\n搜 Google News（英文 + 简中/繁中港台）→ 去重新闻列表，含真实文章链接 + 可选 Markdown 正文。付费墙/正文失败仍返回标题+链接，正文不计费。无登录。",
    "version": "0.1",
    "x-build-id": "gjVlWuXglIVnr3FxC"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/ahuang~google-news-md/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-ahuang-google-news-md",
        "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/ahuang~google-news-md/runs": {
      "post": {
        "operationId": "runs-sync-ahuang-google-news-md",
        "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/ahuang~google-news-md/run-sync": {
      "post": {
        "operationId": "run-sync-ahuang-google-news-md",
        "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": {
          "query": {
            "title": "Query｜搜索关键词",
            "type": "string",
            "description": "Google News search keywords / topic. Required unless topicUrl is set. 搜索词；若提供 topicUrl 可省略。"
          },
          "edition": {
            "title": "Edition｜地区预设",
            "enum": [
              "en-US",
              "zh-CN",
              "zh-TW",
              "zh-HK"
            ],
            "type": "string",
            "description": "Locale preset for hl/gl/ceid. Override with hl/gl/ceid fields. 地区预设；可用 hl/gl/ceid 覆盖。",
            "default": "en-US"
          },
          "hl": {
            "title": "hl override",
            "type": "string",
            "description": "Override Google News hl (e.g. zh-CN). 覆盖预设 hl。"
          },
          "gl": {
            "title": "gl override",
            "type": "string",
            "description": "Override Google News gl (e.g. CN). 覆盖预设 gl。"
          },
          "ceid": {
            "title": "ceid override",
            "type": "string",
            "description": "Override Google News ceid (e.g. CN:zh-Hans). 覆盖预设 ceid。"
          },
          "topicUrl": {
            "title": "Topic / RSS URL｜专题或 RSS 链接",
            "type": "string",
            "description": "Optional paste-in Google News topic or RSS URL (skips query build). 可选：直接贴 Google News 专题/RSS。"
          },
          "maxItems": {
            "title": "Max items｜最多条数",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "Cap items per run (default 50, hard max 100 — RSS common limit). 默认 50，硬顶 100。",
            "default": 50
          },
          "fetchBody": {
            "title": "Fetch Markdown body｜抓取正文",
            "type": "boolean",
            "description": "false (default) = title + decoded link only (news_item). true = try Markdown body; paywall/empty → still title+link, body not charged. 默认 false 只要标题+链接；true 尝试正文，失败仍返回列表且正文不计费。",
            "default": false
          },
          "dedupe": {
            "title": "Dedupe｜去重",
            "type": "boolean",
            "description": "Collapse near-duplicate headlines / same canonical URL. 合并近似标题/同一规范 URL。",
            "default": true
          },
          "since": {
            "title": "Since (ISO 8601)｜增量起点",
            "type": "string",
            "description": "Keep items with pubDate ≥ this time. 只保留该时间之后的条目。"
          },
          "chunking": {
            "title": "RAG chunking｜切块",
            "type": "boolean",
            "description": "When body present, attach chunks[] (no PPE surcharge in MVP). 有正文时附加 chunks[]；MVP 不加价。",
            "default": false
          },
          "chunkSize": {
            "title": "Chunk size (tokens)",
            "minimum": 64,
            "maximum": 8192,
            "type": "integer",
            "description": "Used when chunking=true (default 512, same as cn2md).",
            "default": 512
          },
          "chunkOverlap": {
            "title": "Chunk overlap (tokens)",
            "minimum": 0,
            "maximum": 4096,
            "type": "integer",
            "description": "Used when chunking=true (default 64).",
            "default": 64
          },
          "maxConcurrency": {
            "title": "Max concurrency｜并发",
            "minimum": 1,
            "maximum": 8,
            "type": "integer",
            "description": "Low by default (decode hits Google twice per item). 默认低并发。",
            "default": 3
          },
          "proxyConfiguration": {
            "title": "Proxy｜代理",
            "type": "object",
            "description": "Off by default. Optional Apify proxy on YOUR account — we do NOT claim paywall bypass. 默认关闭；可选用户自付代理，不承诺绕过付费墙。",
            "default": {
              "useApifyProxy": false
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}