{
  "openapi": "3.0.1",
  "info": {
    "title": "News Intelligence Pro (AI Powered)",
    "description": "Turn news into business intelligence. AI-powered sentiment analysis, brand monitoring, and competitor tracking from 50+ sources. Get market insights, trend alerts, and reputation management in real-time.",
    "version": "0.0",
    "x-build-id": "pixWmrmZ6zLGqLlwo"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/obsequious_ontologist~news-intelligence-pro/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-obsequious_ontologist-news-intelligence-pro",
        "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/obsequious_ontologist~news-intelligence-pro/runs": {
      "post": {
        "operationId": "runs-sync-obsequious_ontologist-news-intelligence-pro",
        "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/obsequious_ontologist~news-intelligence-pro/run-sync": {
      "post": {
        "operationId": "run-sync-obsequious_ontologist-news-intelligence-pro",
        "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": [
          "news_sources"
        ],
        "properties": {
          "news_sources": {
            "title": "News Sources",
            "minItems": 1,
            "maxItems": 10,
            "type": "array",
            "description": "Select news sources to monitor. Choose from major outlets.",
            "items": {
              "type": "string",
              "enum": [
                "cnn",
                "bbc",
                "reuters",
                "ap_news",
                "tech_crunch",
                "bloomberg",
                "financial_times"
              ]
            },
            "default": [
              "cnn",
              "bbc",
              "reuters"
            ]
          },
          "keywords": {
            "title": "Keywords & Brand Monitoring",
            "type": "string",
            "description": "Keywords, brand names, or topics to monitor (comma-separated). Leave empty to analyze all articles."
          },
          "enable_ai_analysis": {
            "title": "Enable AI Analysis",
            "type": "boolean",
            "description": "Enable sentiment analysis, summarization, and categorization (uses built-in AI - costs $6 per 1,000 articles)",
            "default": true
          },
          "openai_api_key": {
            "title": "OpenAI API Key (BYOK)",
            "type": "string",
            "description": "Provide your own OpenAI API key for unlimited usage (pricing: $2 per 1,000 articles). Leave empty to use built-in AI."
          },
          "sentiment_analysis": {
            "title": "Sentiment Analysis",
            "type": "boolean",
            "description": "Analyze emotional tone of articles (positive, negative, neutral)",
            "default": true
          },
          "summarization": {
            "title": "Article Summarization",
            "type": "boolean",
            "description": "Generate AI-powered summaries of long articles",
            "default": true
          },
          "topic_classification": {
            "title": "Topic Classification",
            "type": "boolean",
            "description": "Automatically categorize articles by topic (Politics, Business, Tech, etc.)",
            "default": true
          },
          "entity_extraction": {
            "title": "Entity Recognition",
            "type": "boolean",
            "description": "Extract people, companies, locations, and events mentioned in articles",
            "default": true
          },
          "date_range": {
            "title": "Date Range",
            "enum": [
              "1h",
              "6h",
              "1d",
              "3d",
              "7d",
              "30d"
            ],
            "type": "string",
            "description": "Time period to analyze",
            "default": "1d"
          },
          "max_articles": {
            "title": "Maximum Articles",
            "minimum": 10,
            "maximum": 10000,
            "type": "integer",
            "description": "Maximum number of articles to analyze",
            "default": 1000
          },
          "languages": {
            "title": "Languages",
            "minItems": 1,
            "type": "array",
            "description": "Languages to include in analysis",
            "items": {
              "type": "string",
              "enum": [
                "en",
                "es",
                "fr",
                "de",
                "it",
                "pt",
                "zh",
                "ja",
                "ko",
                "ar"
              ]
            },
            "default": [
              "en"
            ]
          },
          "industry_focus": {
            "title": "Industry Focus",
            "type": "array",
            "description": "Focus on specific industries for enhanced analysis",
            "items": {
              "type": "string",
              "enum": [
                "technology",
                "finance",
                "healthcare",
                "politics",
                "sports",
                "entertainment",
                "business",
                "science",
                "environment",
                "general"
              ]
            },
            "default": [
              "general"
            ]
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}