Overview
Theget_media_events tool is the primary discovery tool — use it to scan what’s happening in the news. It returns the top story clusters (Media Events) ranked by significance, each representing a group of articles covering the same story.
This is the starting point for most queries. Use the returned
cluster_id values to drill into specific stories with get_media_event_cluster.Parameters
Window size in days ending on
date. days=1 returns clusters for the single date only. days=7 returns 7 daily buckets ending on date. Max 30.Anchor/end date in
YYYY-MM-DD format. Defaults to today UTC. Example: date=2025-02-20 with days=7 returns Feb 14–20.Number of clusters to return. Max 20. Keep small (5-10) for scanning.
Pagination offset. Pass
offset=10 for the second page.Response detail level. Controls how much data per cluster.
| Level | ~Tokens/Cluster | Includes |
|---|---|---|
summary | ~120 | Headline card: cluster_id, label, category, scope, article_count, key metrics, 3 entity names, 3 source domains. No articles. |
standard | ~500 | Resolved metrics + 5 article ref cards (url, title, domain, date) + 10 entity ref cards |
full | ~1,000 | Richer article ref cards (+ weight, geo, lang) + all entity ref cards (+ wikipedia_url) |
Semantic Search
Natural-language semantic search query. When provided, clusters are ranked by embedding similarity (cosine distance via HNSW ANN index) instead of article count. The query is embedded with
text-embedding-3-small (768 dims) and matched against article cluster embeddings. Combinable with all other filters.Examples: trade war tariffs China, climate change protests, AI regulation European Union.Filters
All filters combine as AND with each other and withsearch.
WHO is involved — ISO-3 country code for actor nationality. Examples:
USA, CHN, GBR, RUS.WHERE it happened — FIPS 2-letter country code for event location. Examples:
US, CH, UK, RS.CAMEO event root code. Examples:
14=Protest, 18=Assault, 19=Fight, 05=Diplomacy.Topic category:
conflict_security, politics_governance, economy_business, crime_justice, science_health, disaster_emergency, society_culture, technology.Geographic scope:
local, national, global.ISO 639-1 language code (e.g.
en, es, fr). Default is all languages.Filter to clusters containing articles from this domain (e.g.
reuters.com).Response Shape
Summary (~120 tokens/cluster)
Standard (~500 tokens/cluster)
Addsresolved_metrics, 5 article reference cards, and 10 entity reference cards:
Full (~1,000 tokens/cluster)
Articles includearticle_weight, geo_country_name, article_lang. Entities include wikipedia_url.
Usage Examples
Workflow
Scan headlines or search
Call
get_media_events(detail='summary', limit=10) to see what’s happening, or use search to find stories about a specific topic.Drill into a story
Pick an interesting cluster and call
get_media_event_cluster(cluster_id) to see all articles and entities.
