curl --request POST \
--url https://gdeltcloud.com/api/v2/monitors/preview \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"subject": {
"params": {},
"type": "query"
},
"trigger": {
"type": "new_matches"
},
"schedule": {
"timezone": "UTC",
"daily_hour": 8
},
"criteria": {
"data": "events",
"countries": [],
"source_actor_countries": [],
"target_actor_countries": [],
"family_filters": {},
"fatalities_only": false
}
}
'import requests
url = "https://gdeltcloud.com/api/v2/monitors/preview"
payload = {
"name": "<string>",
"subject": {
"params": {},
"type": "query"
},
"trigger": { "type": "new_matches" },
"schedule": {
"timezone": "UTC",
"daily_hour": 8
},
"criteria": {
"data": "events",
"countries": [],
"source_actor_countries": [],
"target_actor_countries": [],
"family_filters": {},
"fatalities_only": False
}
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
name: '<string>',
subject: {params: {}, type: 'query'},
trigger: {type: 'new_matches'},
schedule: {timezone: 'UTC', daily_hour: 8},
criteria: {
data: 'events',
countries: [],
source_actor_countries: [],
target_actor_countries: [],
family_filters: {},
fatalities_only: false
}
})
};
fetch('https://gdeltcloud.com/api/v2/monitors/preview', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"success": true,
"preview": {
"success": true,
"normalized_spec": {
"alert_kind": "every_hit",
"target_family": "cameoplus",
"filters": {
"selected_families": [
"cameoplus",
"conflict",
"story"
],
"countries": [
"USA"
],
"search": "port closure shipping disruption"
},
"evaluation": {
"sample_limit": 10
}
},
"primitive_name": "event_search",
"sample_rows": [
{
"item_id": "story:story_example",
"lane": "story",
"id": "story_example",
"title": "Port operations paused after labor disruption",
"observed_at": "2026-08-24T13:42:00.000Z"
}
],
"sample_count": 3,
"count_truncated": false,
"candidate_limit": 100,
"evaluation": {
"would_trigger": false,
"disposition": "no_trigger",
"reason": "3 matching records in the last 7 UTC days. Preview makes no trigger claim: once running, each check reads only the period that just closed and sends the matches it has not sent before.",
"current_count": 3,
"baseline_average": null,
"event_count": null,
"story_count": null,
"event_baseline_average": null,
"story_baseline_average": null,
"new_item_ids": [],
"new_item_count": null,
"trigger_fingerprint": "sha256:opaque"
},
"execution_time_ms": 842,
"window_start": "2026-08-18T00:00:00.000Z",
"window_end": "2026-08-24T14:00:00.000Z",
"window_label": "Last 7 UTC days, through now",
"explanation": {
"trigger_type_label": "New matches",
"chart_kind": "simple_count",
"interpretation_headline": "Matches in the last 7 UTC days",
"interpretation_body": "Representative rows are shown below.",
"formula_label": null,
"did_trigger": false,
"current_window_count": 3,
"threshold_count": null,
"baseline_average": null,
"baseline_window_counts": [],
"event_count": null,
"story_count": null,
"event_threshold": null,
"story_threshold": null,
"comparison_mode": null,
"chart_points": [],
"evidence_default_label": null,
"evidence_event_label": null,
"evidence_story_label": null
}
}
}Preview Monitor
Executes one on-demand Preview of the same standing question that POST /api/v2/monitors accepts, without saving, enabling or delivering it. Browser and API-key calls have the same non-delivering behavior. Body field history_days=7 (default) or 30 returns setup_preview: matching records by type, active/quiet days, busiest day, representative evidence and cadence-based notification estimates. Missing or partial history is explicit. An edit Preview may include monitor_id; it must identify a Monitor visible in the active organization and uses its persisted targets only for grandfathered-limit compatibility. Every Preview reads the selected history days from 00:00 UTC on the first day through the request time: top-level window_start/window_end are that half-open interval and window_label names it. No scheduled check reads that window, so for every subject evaluation.would_trigger is false and new_item_count is null: Preview makes no scheduled-trigger claim, and once running each check reads only the period that just closed. Query subjects preserve descriptor-validated filters and return executed_requests; setup_executed_requests capture their historical reads. By default each receipt is the executed request and its whole response. Body field receipts=“summary” returns each receipt’s request, row_count and response without its page data (pagination, applied filters, coverage), and when the setup estimate read exactly the same pages it omits setup_executed_requests and sets setup_executed_requests_ref to executed_requests. For Event, Story and Entity query setup previews, query_window identifies inclusive reporting dates with time_basis=endpoint_default; the historical matching estimate does not replay recorded additions or notifications. Activity query previews retain their recorded interval and explicit publication-source coverage; unavailable history is never replaced with reporting examples. Query Monitors match newly available committed records, including late arrivals; preview dates and source_request dates never control scheduled matching. window_label must not be used as query matching dates. An accepted Preview costs 1 QU; authentication, validation, plan and internal execution failures cost 0. Scheduled Monitor executions cost 0. An empty configured window may include a separately labelled historical_example using the same filters over an expanded 30-day period; it never changes the actual evaluation or trigger state. Query work has a 45-second deadline measured from request entry. The optional historical example uses at most 10 seconds within the remaining budget; historical_example_status=unavailable means that example could not complete, not that no historical matches exist. criteria.data picks one lane: stories, the incident list, or events, the coded Events. It defaults to events, or to stories when only Story filters are sent. events_and_stories is DEPRECATED as of 2026-09-01 and is no longer offered to new Monitors. It is still accepted and still runs both lanes, so saved Monitors and existing integrations are unaffected and will not be removed before 2026-10-01. Both lanes in one Monitor contend for the same warehouse, so a slow Story lane fails the whole Monitor including an events half that already returned. Measured in production: 35.1 s mean against 25.5 s for events and 26.3 s for stories, and every reproducible 503 in a 40-request Preview sweep was a both-lanes specification. Choose stories for the incident list or events for coded Events, and create a second Monitor when you want both — two Monitors fail independently, and their match counts do not double-count an incident that appears as both a Story and its Event. Takes no query parameters, so a query-string typo can no longer ride along on a charged call.
curl --request POST \
--url https://gdeltcloud.com/api/v2/monitors/preview \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"subject": {
"params": {},
"type": "query"
},
"trigger": {
"type": "new_matches"
},
"schedule": {
"timezone": "UTC",
"daily_hour": 8
},
"criteria": {
"data": "events",
"countries": [],
"source_actor_countries": [],
"target_actor_countries": [],
"family_filters": {},
"fatalities_only": false
}
}
'import requests
url = "https://gdeltcloud.com/api/v2/monitors/preview"
payload = {
"name": "<string>",
"subject": {
"params": {},
"type": "query"
},
"trigger": { "type": "new_matches" },
"schedule": {
"timezone": "UTC",
"daily_hour": 8
},
"criteria": {
"data": "events",
"countries": [],
"source_actor_countries": [],
"target_actor_countries": [],
"family_filters": {},
"fatalities_only": False
}
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
name: '<string>',
subject: {params: {}, type: 'query'},
trigger: {type: 'new_matches'},
schedule: {timezone: 'UTC', daily_hour: 8},
criteria: {
data: 'events',
countries: [],
source_actor_countries: [],
target_actor_countries: [],
family_filters: {},
fatalities_only: false
}
})
};
fetch('https://gdeltcloud.com/api/v2/monitors/preview', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"success": true,
"preview": {
"success": true,
"normalized_spec": {
"alert_kind": "every_hit",
"target_family": "cameoplus",
"filters": {
"selected_families": [
"cameoplus",
"conflict",
"story"
],
"countries": [
"USA"
],
"search": "port closure shipping disruption"
},
"evaluation": {
"sample_limit": 10
}
},
"primitive_name": "event_search",
"sample_rows": [
{
"item_id": "story:story_example",
"lane": "story",
"id": "story_example",
"title": "Port operations paused after labor disruption",
"observed_at": "2026-08-24T13:42:00.000Z"
}
],
"sample_count": 3,
"count_truncated": false,
"candidate_limit": 100,
"evaluation": {
"would_trigger": false,
"disposition": "no_trigger",
"reason": "3 matching records in the last 7 UTC days. Preview makes no trigger claim: once running, each check reads only the period that just closed and sends the matches it has not sent before.",
"current_count": 3,
"baseline_average": null,
"event_count": null,
"story_count": null,
"event_baseline_average": null,
"story_baseline_average": null,
"new_item_ids": [],
"new_item_count": null,
"trigger_fingerprint": "sha256:opaque"
},
"execution_time_ms": 842,
"window_start": "2026-08-18T00:00:00.000Z",
"window_end": "2026-08-24T14:00:00.000Z",
"window_label": "Last 7 UTC days, through now",
"explanation": {
"trigger_type_label": "New matches",
"chart_kind": "simple_count",
"interpretation_headline": "Matches in the last 7 UTC days",
"interpretation_body": "Representative rows are shown below.",
"formula_label": null,
"did_trigger": false,
"current_window_count": 3,
"threshold_count": null,
"baseline_average": null,
"baseline_window_counts": [],
"event_count": null,
"story_count": null,
"event_threshold": null,
"story_threshold": null,
"comparison_mode": null,
"chart_points": [],
"evidence_default_label": null,
"evidence_event_label": null,
"evidence_story_label": null
}
}
}Authorizations
Body
- Option 1
- Option 2
- Option 3
- Option 4
- Option 5
- Option 6
- Option 7
- Option 8
- Option 9
- Option 10
- Option 11
- Option 12
- Option 13
- Option 14
- Option 15
- Option 16
- Option 17
- Option 18
- Option 19
- Option 20
- Option 21
- Option 22
- Option 23
- Option 24
- Option 25
- Option 26
- Option 27
- Option 28
- Option 29
- Option 30
- Option 31
- Option 32
- Option 33
- Option 34
- Option 35
- Option 36
- Option 37
- Option 38
- Option 39
- Option 40
- Option 41
- Option 42
- Option 43
- Option 44
- Option 45
- Option 46
- Option 47
- Option 48
- Option 49
- Option 50
- Option 51
- Option 52
- Option 53
- Option 54
- Option 55
- Option 56
- Option 57
- Option 58
- Option 59
- Option 60
- Option 61
- Option 62
- Option 63
- Option 64
Request receipts. "full" (default) returns every executed request with its whole response. "summary" returns each request with its row_count and its response without the page data (pagination, applied filters and coverage are kept), and when the setup estimate read exactly the same pages it omits setup_executed_requests and sets setup_executed_requests_ref. Display only.
full, summary 
