{
  "openapi": "3.0.1",
  "info": {
    "title": "📰 AI News Intelligence Feed — Real-Time News for AI Agents",
    "description": "Real-time, structured, LLM-ready news for AI agents & RAG. Google News (aggregates Reuters, AP, BBC, Bloomberg & 1000s of publishers) + topics + BBC. Decodes Google's redirects to REAL publisher URLs; optional clean full text, sentiment & de-dup. No API key. MCP tool for ChatGPT/Claude.",
    "version": "1.0",
    "x-build-id": "B8lPZilPZJrulrzgK"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/inexhaustible_glass~ai-news-intelligence-feed/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-inexhaustible_glass-ai-news-intelligence-feed",
        "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/inexhaustible_glass~ai-news-intelligence-feed/runs": {
      "post": {
        "operationId": "runs-sync-inexhaustible_glass-ai-news-intelligence-feed",
        "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/inexhaustible_glass~ai-news-intelligence-feed/run-sync": {
      "post": {
        "operationId": "run-sync-inexhaustible_glass-ai-news-intelligence-feed",
        "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": "🔍 Search keywords",
            "type": "array",
            "description": "Keywords/phrases to search Google News (which aggregates Reuters, AP, BBC, Bloomberg & 1000s of publishers). One per line. Example: \"artificial intelligence\", \"OpenAI\", \"bitcoin\".",
            "items": {
              "type": "string"
            }
          },
          "topics": {
            "title": "🗂️ Topic sections",
            "type": "array",
            "description": "Pull Google News topic sections (top stories per topic). Choose any of: world, nation, business, technology, entertainment, sports, science, health.",
            "items": {
              "type": "string"
            }
          },
          "includeTopHeadlines": {
            "title": "📰 Include top headlines",
            "type": "boolean",
            "description": "Also pull the main Google News front-page top stories for the chosen country/language.",
            "default": false
          },
          "includeBBC": {
            "title": "🇬🇧 Include BBC direct feed",
            "type": "boolean",
            "description": "Also pull BBC News directly (first-party RSS) for extra reliability.",
            "default": false
          },
          "freshness": {
            "title": "⏱️ Freshness",
            "enum": [
              "",
              "1h",
              "24h",
              "7d",
              "30d"
            ],
            "type": "string",
            "description": "Only articles published within this window (applies to search keywords).",
            "default": ""
          },
          "maxResults": {
            "title": "🔢 Max articles",
            "minimum": 1,
            "maximum": 2000,
            "type": "integer",
            "description": "Total unique articles to return (after de-duplication).",
            "default": 100
          },
          "resolveUrls": {
            "title": "🔗 Resolve REAL publisher URLs (recommended)",
            "type": "boolean",
            "description": "Decode Google News' encrypted redirect links to the true publisher URL (e.g. bbc.com/... instead of news.google.com/...). Needed to open or crawl the article. Slightly slower (1 extra request per article).",
            "default": true
          },
          "includeFullText": {
            "title": "📄 Include clean full article text (LLM-ready)",
            "type": "boolean",
            "description": "Fetch each article and extract the clean, token-efficient full text (no HTML) — ready to feed to an LLM/RAG. Requires 'Resolve REAL publisher URLs'. Slower; best for smaller result sets.",
            "default": false
          },
          "includeSentiment": {
            "title": "😊 Include sentiment",
            "type": "boolean",
            "description": "Add a sentiment label (positive / neutral / negative) and score per article — great for brand, market and crypto monitoring.",
            "default": true
          },
          "language": {
            "title": "🌐 Language",
            "type": "string",
            "description": "Two-letter language code (en, hi, es, fr, de, pt, ja...).",
            "default": "en"
          },
          "country": {
            "title": "🌍 Country",
            "type": "string",
            "description": "Two-letter country code (US, GB, IN, DE, FR...). Controls which edition of Google News is used.",
            "default": "US"
          },
          "concurrency": {
            "title": "⚙️ Concurrency",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "How many articles to resolve/enrich in parallel. Higher = faster, heavier.",
            "default": 8
          },
          "useProxy": {
            "title": "🛡️ Use Apify proxy",
            "type": "boolean",
            "description": "Route requests through Apify datacenter proxy (cheap IP rotation to avoid rate limits). Recommended ON.",
            "default": true
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}