{
  "openapi": "3.0.1",
  "info": {
    "title": "Google News & Universal RSS/Atom Feed Scraper",
    "description": "Collect deduplicated news from Google News search, regional topic feeds, and custom RSS 2.0, Atom 1.0, or JSON Feed 1.1 URLs. Decodes publisher URLs in batches, splits date ranges past 100 items, and estimates LLM tokens.",
    "version": "1.0",
    "x-build-id": "xE618ntq72JS3R1z3"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/tsun_tsun~google-news-rss-intelligence/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-tsun_tsun-google-news-rss-intelligence",
        "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/tsun_tsun~google-news-rss-intelligence/runs": {
      "post": {
        "operationId": "runs-sync-tsun_tsun-google-news-rss-intelligence",
        "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/tsun_tsun~google-news-rss-intelligence/run-sync": {
      "post": {
        "operationId": "run-sync-tsun_tsun-google-news-rss-intelligence",
        "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": {
          "queries": {
            "title": "Google News Search Queries",
            "type": "array",
            "description": "Keyword or boolean search queries for Google News RSS (e.g. 'artificial intelligence', '\"OpenAI\" OR \"Anthropic\"', 'site:reuters.com semiconductors'). Provide at least one of queries, topics, or feedUrls.",
            "items": {
              "type": "string"
            }
          },
          "topics": {
            "title": "Google News Topic Sections",
            "type": "array",
            "description": "Google News headline sections to fetch. Valid values: TOP_STORIES, WORLD, BUSINESS, TECHNOLOGY, SCIENCE, HEALTH, ENTERTAINMENT, SPORTS. Provide at least one of queries, topics, or feedUrls.",
            "items": {
              "type": "string",
              "enum": [
                "TOP_STORIES",
                "WORLD",
                "BUSINESS",
                "TECHNOLOGY",
                "SCIENCE",
                "HEALTH",
                "ENTERTAINMENT",
                "SPORTS"
              ],
              "enumTitles": [
                "Top Stories",
                "World",
                "Business",
                "Technology",
                "Science",
                "Health",
                "Entertainment",
                "Sports"
              ]
            }
          },
          "feedUrls": {
            "title": "Custom RSS 2.0, Atom 1.0 & JSON Feed URLs",
            "type": "array",
            "description": "Direct public HTTP(S) URLs to any RSS 2.0, Atom 1.0, or JSON Feed 1.1 endpoint (e.g. 'https://feeds.bbci.co.uk/news/technology/rss.xml', 'https://feeds.feedburner.com/TechCrunch/'). Private/localhost addresses are blocked for security. Provide at least one of queries, topics, or feedUrls.",
            "items": {
              "type": "string"
            }
          },
          "country": {
            "title": "Country Edition (ISO-2)",
            "type": "string",
            "description": "Two-letter ISO 3166-1 country code for Google News gl and ceid parameters (e.g. US, GB, DE, FR, JP, AU, SG, CA). 'UK' is automatically normalized to 'GB'.",
            "default": "US"
          },
          "language": {
            "title": "Language (ISO-2)",
            "type": "string",
            "description": "Two-letter ISO 639-1 language code for Google News hl and ceid parameters (e.g. en, de, fr, es, ja, pt).",
            "default": "en"
          },
          "decodeGoogleNewsUrls": {
            "title": "Decode Real Publisher URLs",
            "type": "boolean",
            "description": "Resolve opaque Google News redirect links (news.google.com/rss/articles/...) into real canonical publisher article URLs (e.g. reuters.com, cnbc.com). Runs only on final deduplicated articles and preserves the original link in googleNewsUrl.",
            "default": true
          },
          "when": {
            "title": "Google News Search Time Window",
            "enum": [
              "",
              "1h",
              "1d",
              "7d",
              "30d"
            ],
            "type": "string",
            "description": "Optional recency operator appended as when:<window> to Google News search queries that do not already contain when:, after:, or before:. Ignored when publishedAfter or publishedBefore is set. Valid values: '' (any time), '1h', '1d', '7d', '30d'.",
            "default": ""
          },
          "publishedAfter": {
            "title": "Published After Date (YYYY-MM-DD)",
            "type": "string",
            "description": "Optional start date in YYYY-MM-DD format (UTC). Appends after:YYYY-MM-DD to Google News queries and filters custom feeds. When combined with publishedBefore across more than 7 days and maxItemsPerSource > 100 (or 0), automatically splits into up to 12 sub-windows to collect past Google News's 100-result RSS cap."
          },
          "publishedBefore": {
            "title": "Published Before Date (YYYY-MM-DD)",
            "type": "string",
            "description": "Optional end date in YYYY-MM-DD format (UTC). Appends before:YYYY-MM-DD to Google News queries and filters custom feeds."
          },
          "includeKeywords": {
            "title": "Include Keywords",
            "type": "array",
            "description": "Optional case-insensitive keywords. When provided, only articles matching at least one keyword in title, summaryText, categories, or publisher are kept.",
            "items": {
              "type": "string"
            }
          },
          "excludeKeywords": {
            "title": "Exclude Keywords",
            "type": "array",
            "description": "Optional case-insensitive keywords. Articles matching any excluded keyword in title, summaryText, or categories are dropped.",
            "items": {
              "type": "string"
            }
          },
          "excludePublishers": {
            "title": "Exclude Publishers",
            "type": "array",
            "description": "Optional publisher names or domains to exclude (case-insensitive substring match against publisher and publisherUrl, e.g. 'MSN', 'yahoo.com').",
            "items": {
              "type": "string"
            }
          },
          "postedWithinHours": {
            "title": "Posted Within Hours",
            "minimum": 0,
            "maximum": 8760,
            "type": "integer",
            "description": "Keep only articles published within the last N hours across all sources (Google News and custom feeds). Set 0 to disable age filtering.",
            "default": 0
          },
          "maxItemsPerSource": {
            "title": "Max Items Per Source",
            "minimum": 0,
            "maximum": 2000,
            "type": "integer",
            "description": "Maximum matching articles kept from each individual query, topic, or custom feed URL (0 = unlimited). Set > 100 (or 0) with publishedAfter + publishedBefore spanning > 7 days to enable automatic date-window splitting.",
            "default": 50
          },
          "maxTotalItems": {
            "title": "Max Total Items",
            "minimum": 0,
            "maximum": 5000,
            "type": "integer",
            "description": "Maximum deduplicated, newest-first articles pushed to the dataset across all sources combined (0 = unlimited).",
            "default": 200
          },
          "concurrency": {
            "title": "Request Concurrency",
            "minimum": 1,
            "maximum": 8,
            "type": "integer",
            "description": "Number of feeds fetched concurrently (1 to 8).",
            "default": 5
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}