{
  "openapi": "3.0.1",
  "info": {
    "title": "GDELT News Monitor: Keyword Alerts, Tone, Themes, Entities",
    "description": "Monitor news in 65+ languages from the GDELT Project's 15-minute feed. Filter by keyword, source domain, country and language; get the article URL, title, tone, themes, locations, people and organizations. Watch mode returns only new articles since the last run. $0.002 per article.",
    "version": "0.3",
    "x-build-id": "TzDXgFyKme6ikqozd"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/datagleaner~gdelt-news-monitor/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-datagleaner-gdelt-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/datagleaner~gdelt-news-monitor/runs": {
      "post": {
        "operationId": "runs-sync-datagleaner-gdelt-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/datagleaner~gdelt-news-monitor/run-sync": {
      "post": {
        "operationId": "run-sync-datagleaner-gdelt-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": "Return articles whose title, URL, people or organizations contain any of these words or phrases (whole-word, case-insensitive, OR). Example: `electric vehicles`, `Nvidia`. Leave all filters empty to run a 5-article example.",
            "items": {
              "type": "string"
            }
          },
          "excludeKeywords": {
            "title": "Exclude keywords",
            "type": "array",
            "description": "Drop articles that contain any of these words or phrases in the title, URL, people or organizations.",
            "items": {
              "type": "string"
            }
          },
          "domains": {
            "title": "Source domains",
            "type": "array",
            "description": "Only articles published on these domains (subdomains included), e.g. `reuters.com`, `bbc.co.uk`. Without `www.`.",
            "items": {
              "type": "string"
            }
          },
          "countries": {
            "title": "Countries mentioned",
            "type": "array",
            "description": "Only articles that mention a place in one of these countries. Use the country name (`Germany`) or its two-letter FIPS code (`GM`). GDELT does not record the publisher's country, so this filters by where the story takes place.",
            "items": {
              "type": "string"
            }
          },
          "languages": {
            "title": "Source languages",
            "type": "array",
            "description": "Only articles written in these languages: `en`, `es`, `fr`, `de`, `zh`, `ja`, `ar` ... (two-letter or three-letter codes). Empty means all languages. Non-English articles are GDELT's machine-translated stream: the title stays in the original language, and the themes, people and organizations are normalized to English.",
            "items": {
              "type": "string"
            }
          },
          "hoursBack": {
            "title": "Hours to look back",
            "minimum": 1,
            "maximum": 168,
            "type": "integer",
            "description": "How far back to read, 1 to 168 hours (default 24). In watch mode this applies to the first run only; later runs continue where the last one stopped.",
            "default": 24
          },
          "startTime": {
            "title": "Start time (UTC)",
            "type": "string",
            "description": "Optional ISO 8601 start, e.g. `2026-11-01T00:00:00Z`. Overrides `hoursBack` and the watch-mode state."
          },
          "endTime": {
            "title": "End time (UTC)",
            "type": "string",
            "description": "Optional ISO 8601 end. Defaults to now."
          },
          "includePersons": {
            "title": "Include names of people (off by default)",
            "type": "boolean",
            "description": "Off by default. When on, rows carry GDELT's `persons` list and keywords also match people named in an article. News names victims, suspects and bystanders, so use this only for monitoring public figures, companies and topics: never to track a private individual by name. Names on our removal list are always dropped.",
            "default": false
          },
          "watchMode": {
            "title": "Watch mode (new articles only)",
            "type": "boolean",
            "description": "Return only articles that appeared since the last run with the same filters. The position is saved in a named key-value store on your account. Schedule the Actor every 15 to 60 minutes to get an alert feed.",
            "default": false
          },
          "watchName": {
            "title": "Watch name",
            "type": "string",
            "description": "Optional label that keeps separate watchers with identical filters apart. Letters, digits, `-` and `_`.",
            "default": "default"
          },
          "includeTranslated": {
            "title": "Include non-English articles",
            "type": "boolean",
            "description": "Also read GDELT's machine-translated stream (about 65 languages). Turn off to read English-language sources only.",
            "default": true
          },
          "minTone": {
            "title": "Minimum tone",
            "type": "number",
            "description": "Only articles with an average tone at or above this value. Tone runs roughly from -10 (very negative) to +10 (very positive)."
          },
          "maxTone": {
            "title": "Maximum tone",
            "type": "number",
            "description": "Only articles with an average tone at or below this value, e.g. `-3` for strongly negative coverage."
          },
          "maxItems": {
            "title": "Maximum articles",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "Stop after this many articles (each one is billed).",
            "default": 1000
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}