POST /api/gdelt/coverage/tone
Price: 5 credits
Sentiment distribution of GDELT news coverage for a query. Returns a histogram across the emotional tone scale: each bin has its tone value, the number of matching articles, and a few sample articles from that bin.
Tone (sentiment) histogram for a query. Returns a list of bins, each with bin (tone value), count, and a few sample articles. Use the standard query/country/language/domain/theme/time filters to scope the coverage.
access-token string requiredtimeout 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)@type string (default: "GdeltToneBin")bin number nullablecount integer nullablearticles array (default: [])@type string (default: "GdeltToneSampleArticle")url string required422 — The request body did not validate Check the fields against this schema. A URN with the wrong prefix is the most common cause.408 — The request ran past its time limit 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 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 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 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 Wait at least 30 seconds, then retry.X-Error — Error message text (present only on error)X-Request-ID — Unique request identifierX-Execution-Time — Execution time in secondsX-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.