{
  "openapi": "3.0.1",
  "info": {
    "title": "News Monitor: Brand Mentions, Sentiment & Topics Worldwide",
    "description": "Every news article worldwide that mentions your brands, companies or topics, in 65 languages: title, source, tone, sentiment, themes, places and organizations, from the GDELT Project's open data, with a summary per keyword. Full text and alerts of only new articles on request. $1 per 1,000.",
    "version": "0.1",
    "x-build-id": "Us43FXd5Gvgs9Kphu"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/pikoulas~news-monitor/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-pikoulas-news-monitor",
        "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/pikoulas~news-monitor/runs": {
      "post": {
        "operationId": "runs-sync-pikoulas-news-monitor",
        "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/pikoulas~news-monitor/run-sync": {
      "post": {
        "operationId": "run-sync-pikoulas-news-monitor",
        "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": {
          "keywords": {
            "title": "Keywords",
            "type": "array",
            "description": "Brands, companies, products or topics, each matched as whole words in any case: Nvidia, Tesla recall, \"climate change\". Several words match as a phrase or, in a headline, apart and in the plural; in quotes, only as a phrase. An article is given once, with every keyword it mentions.",
            "items": {
              "type": "string"
            }
          },
          "matchIn": {
            "title": "Match keywords in",
            "enum": [
              "anywhere",
              "headline"
            ],
            "type": "string",
            "description": "Anywhere: the headline, the URL, or the organizations and names GDELT found in the text. Headline only: articles about it rather than mentioning it.",
            "default": "anywhere"
          },
          "hoursBack": {
            "title": "Hours back",
            "minimum": 1,
            "maximum": 168,
            "type": "integer",
            "description": "News of the last hours, up to a week (168). GDELT publishes every 15 minutes, its other languages about an hour later.",
            "default": 24
          },
          "languages": {
            "title": "Languages",
            "type": "array",
            "description": "Only articles in these languages, as two-letter codes or English names: en, de, French, Chinese... Empty for all 65.",
            "items": {
              "type": "string"
            }
          },
          "countries": {
            "title": "Countries mentioned",
            "type": "array",
            "description": "Only articles naming a place in these countries, in English: United States, Germany, India...",
            "items": {
              "type": "string"
            }
          },
          "sources": {
            "title": "Sources",
            "type": "array",
            "description": "Only articles from these sites, subdomains included: reuters.com, bbc.co.uk...",
            "items": {
              "type": "string"
            }
          },
          "themes": {
            "title": "Themes",
            "type": "array",
            "description": "Only articles with one of these GDELT themes, or a theme starting with it: ECON_STOCKMARKET, ENV_CLIMATECHANGE, CYBER_ATTACK, WB_ (World Bank topics)... Without keywords, every article on the themes.",
            "items": {
              "type": "string"
            }
          },
          "sentiment": {
            "title": "Sentiment",
            "enum": [
              "any",
              "negative",
              "positive",
              "neutral"
            ],
            "type": "string",
            "description": "Only negative articles (tone -2 or below) for reputation alerts, or only positive ones (2 or above).",
            "default": "any"
          },
          "includeTranslated": {
            "title": "Other languages",
            "type": "boolean",
            "description": "Read the articles of 65 languages besides English too, which GDELT translates to match them against English keywords.",
            "default": true
          },
          "maxArticles": {
            "title": "Max articles",
            "minimum": 1,
            "type": "integer",
            "description": "The most articles given: those with a keyword in the headline or URL first, then the other mentions, each newest first.",
            "default": 1000
          },
          "includeSummary": {
            "title": "Summary per keyword",
            "type": "boolean",
            "description": "A free row per keyword after the articles: article and source counts, average tone, negative, neutral and positive counts, articles per hour, and the top sources, languages, countries, themes and organizations.",
            "default": true
          },
          "includeText": {
            "title": "Full article text",
            "type": "boolean",
            "description": "Read each article off the publisher's page: its full text, description and authors, $0.001 an article more. A site's robots.txt, a paywall or a refusal is respected: the article comes without text and textError says why, free.",
            "default": false
          },
          "onlyNew": {
            "title": "New only (alerts)",
            "type": "boolean",
            "description": "Give, and charge for, only articles no earlier run with the same memory gave. Schedule it hourly with Hours back 2 for news alerts on your brand or competitors.",
            "default": false
          },
          "memory": {
            "title": "Memory name",
            "type": "string",
            "description": "One per alert, so two schedules don't share a memory. Kept in your account's key-value store news-monitor-memory, the newest 50,000 articles.",
            "default": "default"
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}