{
  "openapi": "3.0.1",
  "info": {
    "title": "GDELT News Scraper – Global News Monitor & Search API",
    "description": "GDELT news scraper & news monitoring API: search worldwide online news in 65+ languages by keyword, site, country, language and theme. Headline, URL, outlet, country, language, time, tone. Deduplicated, no API key. Google Alerts alternative. $2/1,000.",
    "version": "0.1",
    "x-build-id": "OXBEAOP8qtARtWgAZ"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/dedicated_crest~gdelt-news-monitor/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-dedicated_crest-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/dedicated_crest~gdelt-news-monitor/runs": {
      "post": {
        "operationId": "runs-sync-dedicated_crest-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/dedicated_crest~gdelt-news-monitor/run-sync": {
      "post": {
        "operationId": "run-sync-dedicated_crest-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 (any)",
            "type": "array",
            "description": "Articles mentioning ANY of these. Multi-word entries are searched as exact phrases, e.g. \"artificial intelligence\". GDELT needs words of 3+ characters (use quotes for short acronyms in phrases).",
            "items": {
              "type": "string"
            }
          },
          "allKeywords": {
            "title": "Must also contain (all)",
            "type": "array",
            "description": "Every one of these must also appear, e.g. regulation.",
            "items": {
              "type": "string"
            }
          },
          "excludeKeywords": {
            "title": "Exclude keywords",
            "type": "array",
            "description": "Drop articles containing any of these.",
            "items": {
              "type": "string"
            }
          },
          "domains": {
            "title": "Only these news sites",
            "type": "array",
            "description": "Restrict to domains, e.g. reuters.com, bbc.co.uk.",
            "items": {
              "type": "string"
            }
          },
          "excludeDomains": {
            "title": "Exclude news sites",
            "type": "array",
            "description": "Domains to exclude.",
            "items": {
              "type": "string"
            }
          },
          "countries": {
            "title": "Source countries",
            "type": "array",
            "description": "Country of the news outlet: FIPS 10-4 codes or names, e.g. US, UK, france, india, germany.",
            "items": {
              "type": "string"
            }
          },
          "languages": {
            "title": "Languages",
            "type": "array",
            "description": "Article language, e.g. english, spanish, german, french, chinese, eng, spa.",
            "items": {
              "type": "string"
            }
          },
          "themes": {
            "title": "GDELT themes (advanced)",
            "type": "array",
            "description": "GKG themes, e.g. ECON_BANKRUPTCY, CYBER_ATTACK, ENV_CLIMATECHANGE, TAX_FNCACT_CEO.",
            "items": {
              "type": "string"
            }
          },
          "query": {
            "title": "Raw GDELT query (advanced)",
            "type": "string",
            "description": "Any extra GDELT DOC 2.0 operators, ANDed with the fields above, e.g. near20:\"tesla recall\" or imagetag:\"protest\"."
          },
          "timespan": {
            "title": "Time span",
            "type": "string",
            "description": "How far back to search: e.g. 30min, 6h, 24h, 7d, 2w, 3m (GDELT keeps ~3 months). Ignored when Start date is set.",
            "default": "24h"
          },
          "startDate": {
            "title": "Start date (optional)",
            "type": "string",
            "description": "ISO date/time, e.g. 2026-10-01 or 2026-10-01T08:00:00Z."
          },
          "endDate": {
            "title": "End date (optional)",
            "type": "string",
            "description": "Defaults to now."
          },
          "sentiment": {
            "title": "Label sentiment",
            "type": "boolean",
            "description": "Label every article negative / neutral / positive using GDELT's tone score. Runs 3 GDELT queries per time window, so runs take ~3x longer.",
            "default": false
          },
          "minTone": {
            "title": "Min tone",
            "type": "integer",
            "description": "Only articles with GDELT tone above this (e.g. 5 = clearly positive). Disables sentiment labels."
          },
          "maxTone": {
            "title": "Max tone",
            "type": "integer",
            "description": "Only articles with GDELT tone below this (e.g. -5 = clearly negative). Disables sentiment labels."
          },
          "dedupeTitles": {
            "title": "Remove syndicated duplicates",
            "type": "boolean",
            "description": "Drop articles whose headline matches one already saved (wire stories republished by many sites). URLs are always deduplicated.",
            "default": true
          },
          "fetchArticleMeta": {
            "title": "Fetch article metadata",
            "type": "boolean",
            "description": "Visit each article page to add its meta description, author, published time, site name and image (1 extra request per article; some sites block bots).",
            "default": false
          },
          "articleTextMaxChars": {
            "title": "Article text snippet length",
            "minimum": 0,
            "maximum": 5000,
            "type": "integer",
            "description": "With metadata on, also include up to N characters of the article's opening paragraphs (0 = none). Respect publishers' copyright.",
            "default": 0
          },
          "sort": {
            "title": "Sort",
            "enum": [
              "datedesc",
              "dateasc",
              "hybridrel",
              "tonedesc",
              "toneasc"
            ],
            "type": "string",
            "description": "Order GDELT returns articles in each time window.",
            "default": "datedesc"
          },
          "maxItems": {
            "title": "Max articles",
            "minimum": 1,
            "maximum": 50000,
            "type": "integer",
            "description": "Stop after this many articles. The run also stops cleanly when your Maximum cost per run is reached.",
            "default": 250
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}