# /gdelt/articles/search

`POST /api/gdelt/articles/search`

Price: 5 credits

Search worldwide news coverage indexed by GDELT. Returns matching articles with url, title, outlet domain, language, source country, publish time and social image. Supports keyword/phrase/boolean queries plus filters by country, language, domain, theme, tone and time window.

## How to use it

Cross-outlet realtime news article search. Returns a list of articles, each with url, title, domain, language, source_country, seen_at and image. Use query for keywords/phrases/boolean, count for how many to return, and the country/language/domain/theme/tone/time filters to narrow.

## Parameters

- `access-token` (string, required)

## Request body

- `timeout` (integer) — Max scrapping execution timeout (in seconds) (default: 300; min: 20; max: 1500)
- `query` (string, required) — Search query. Supports multiple keywords (implicit AND), "exact phrases" in quotes, boolean OR with parenthesized groups, and - to negate a term. (examples: "climate change", "\"global warming\" OR \"climate crisis\""; minLength: 1)
- `timespan` (string, nullable) — Rolling time window relative to now, e.g. 15min, 24h, 3d, 1w, 1m. Mutually exclusive with start_datetime/end_datetime. (examples: "3d", "24h", "1w")
- `start_datetime` (string, nullable) — Absolute window start in YYYYMMDDHHMMSS (UTC). Used with end_datetime. (examples: "20260601000000")
- `end_datetime` (string, nullable) — Absolute window end in YYYYMMDDHHMMSS (UTC). Used with start_datetime. (examples: "20260607000000")
- `source_country` (string, nullable) — Restrict to outlets based in this country. (one of: "afghanistan", "albania", "algeria", "american_samoa", "andorra", "angola", "anguilla", "antarctica", "antigua_and_barbuda", "argentina", "armenia", "aruba", "australia", "austria", "azerbaijan", "bahamas", "bahrain", "bangladesh", "barbados", "belarus", "belgium", "belize", "benin", "bermuda", "bhutan", "bolivia", "bosnia_herzegovina", "botswana", "brazil", "british_virgin_islands", "brunei", "bulgaria", "burkina_faso", "burundi", "cambodia", "cameroon", "canada", "cape_verde", "cayman_islands", "central_african_republic", "chad", "chile", "china", "colombia", "comoros", "congo", "cook_islands", "costa_rica", "cote_divoire", "croatia", "cuba", "cyprus", "czech_republic", "democratic_republic_of_the_congo", "denmark", "djibouti", "dominica", "dominican_republic", "east_timor", "ecuador", "egypt", "el_salvador", "equatorial_guinea", "eritrea", "estonia", "ethiopia", "falkland_islands", "faroe_islands", "fiji", "finland", "france", "french_guiana", "french_polynesia", "gabon", "gambia", "gaza_strip", "georgia", "germany", "ghana", "gibraltar", "greece", "greenland", "grenada", "guadeloupe", "guam", "guatemala", "guernsey", "guinea_bissau", "guyana", "haiti", "honduras", "hong_kong", "hungary", "iceland", "india", "indonesia", "iran", "iraq", "ireland", "isle_of_man", "israel", "italy", "jamaica", "japan", "jersey", "jordan", "kazakhstan", "kenya", "kiribati", "kosovo", "kuwait", "kyrgyzstan", "laos", "latvia", "lebanon", "lesotho", "liberia", "libya", "liechtenstein", "lithuania", "luxembourg", "macau", "macedonia", "madagascar", "malawi", "malaysia", "maldives", "mali", "malta", "marshall_islands", "martinique", "mauritania", "mauritius", "mayotte", "mexico", "micronesia", "moldova", "monaco", "mongolia", "montenegro", "montserrat", "morocco", "mozambique", "myanmar", "namibia", "nauru", "nepal", "netherlands", "new_caledonia", "new_zealand", "nicaragua", "niger", "nigeria", "niue", "norfolk_island", "north_korea", "northern_mariana_islands", "norway", "oman", "pakistan", "palau", "panama", "papua_new_guinea", "paraguay", "peru", "philippines", "pitcairn_islands", "poland", "portugal", "puerto_rico", "qatar", "reunion", "romania", "russia", "rwanda", "saint_helena", "saint_kitts_and_nevis", "saint_lucia", "saint_martin", "saint_pierre_and_miquelon", "saint_vincent_and_the_grenadines", "saint_barthelemy", "samoa", "san_marino", "sao_tome_and_principe", "saudi_arabia", "senegal", "serbia", "seychelles", "sierra_leone", "singapore", "slovenia", "solomon_islands", "somalia", "south_africa", "south_korea", "south_sudan", "spain", "sri_lanka", "sudan", "suriname", "svalbard", "swaziland", "sweden", "switzerland", "syria", "taiwan", "tajikistan", "tanzania", "thailand", "togo", "tokelau", "tonga", "trinidad_and_tobago", "tunisia", "turkey", "turkmenistan", "turks_and_caicos_islands", "tuvalu", "uganda", "ukraine", "united_arab_emirates", "united_kingdom", "united_states", "uruguay", "uzbekistan", "vanuatu", "vatican_city", "venezuela", "vietnam", "virgin_islands", "wallis_and_futuna", "west_bank", "western_sahara", "yemen", "zambia", "zimbabwe")
- `source_lang` (string, nullable) — Restrict to outlets publishing in this language. (one of: "afrikaans", "albanian", "arabic", "armenian", "azerbaijani", "bengali", "bosnian", "bulgarian", "catalan", "chinese", "croatian", "czech", "danish", "dutch", "english", "estonian", "finnish", "french", "galician", "georgian", "german", "greek", "gujarati", "hebrew", "hindi", "hungarian", "icelandic", "indonesian", "italian", "japanese", "kannada", "kazakh", "korean", "latvian", "lithuanian", "macedonian", "malay", "malayalam", "marathi", "mongolian", "nepali", "norwegian", "persian", "polish", "portuguese", "punjabi", "romanian", "russian", "serbian", "sinhalese", "slovak", "slovenian", "somali", "spanish", "swahili", "swedish", "tamil", "telugu", "thai", "tibetan", "turkish", "ukrainian", "urdu", "vietnamese")
- `domain` (string, nullable) — Restrict to a single news outlet domain. (examples: "bbc.co.uk")
- `theme` (string, nullable) — Restrict to coverage tagged with this GDELT GKG theme code. (examples: "TAX_FNCACT")
- `translate` (boolean) — Machine-translate non-English coverage so it matches an English query. (default: false)
- `count` (integer, required) — Max number of results (min: 1; max: 250)
- `sort` (string) — Result ordering (default: "date_desc"; one of: "date_desc", "date_asc", "tone_desc", "tone_asc", "relevance")
- `tone_min` (number, nullable) — Only return articles with tone above this value.
- `tone_max` (number, nullable) — Only return articles with tone below this value.

## Response

### 200 — Successful Response

- `@type` (string) (default: "GdeltArticle")
- `url` (string, required)
- `url_mobile` (string, nullable)
- `domain` (string, nullable)
- `language` (string, nullable)
- `source_country` (string, nullable)
- `seen_at` (string, nullable)
- `image` (string, nullable)

## Errors

### 422 — Validation Error

The request body did not validate

What to do: Check the fields against this schema. A URN with the wrong prefix is the most common cause.

- `detail` (array)
  - `loc` (array, required)
  - `msg` (string, required)
  - `type` (string, required)
  - `input` (any)
  - `ctx` (object)

### 408

The request ran past its time limit

What to do: Raise `timeout` in the request body, up to the maximum this endpoint documents. Lowering `count` or turning off the `with_*` flags also helps, because less work finishes sooner.

### 412

The entity was not found, or a precondition failed

What to do: Retrying will not help: either the entity does not exist, or the input points at a different one.

### 429

Too many requests: a rate limit or a usage window is exhausted

What to do: When the response carries an X-Retry-After header, wait that many seconds and retry: the same number is in the body as `detail.retry_after`, and the limit clears once that window passes. The message in the body names the limit that was hit.

### 500

Something broke on our side

What to do: Retrying will not help. If it keeps happening, send us the X-Request-ID from the response headers.

### 529

Rate limit reached, or the endpoint is overloaded

What to do: Wait at least 30 seconds, then retry.

## Response envelope

Success: Array of objects (may be empty if no results)

Error: Error may coexist with partial results if it occurs mid-execution. Check X-Error header and status code.

Every response carries these headers:

- `X-Error` — Error message text (present only on error)
- `X-Request-ID` — Unique request identifier
- `X-Execution-Time` — Execution time in seconds
- `X-Result-Count` — How many records the body carries. 0 means an empty result, which is a normal answer and not by itself an error. A non-zero count can come back together with X-Error when the failure happened partway through — read this header and X-Error independently.
- `X-Total-Available-Results` — How many records exist for this query, when the endpoint can say. On a `dry_run` request this is the answer and the body is empty. It saturates: the endpoint's documented maximum means 'at least that many', any smaller number is exact.
- `X-Warning` — Present when the request body carried keys this endpoint does not document. They were ignored, so any filter you meant to apply through them did not apply. Check the spelling against this schema and retry.
- `X-Retry-After` — Seconds to wait before retrying. Present only on 429.

