How much of South Sudan's conflict mortality falls on children?
Step 1 — Find the indicator, don't invent it
Searching the official phrasing surfaces a family of series: a total, a civilian split, and slices by age, sex and lethal instrument. The identifiers tell you how they relate before you fetch anything:
- undata/sdg/VC_DTH_TOTN — total
- undata/sdg/VC_DTH_TOCVN — civilians
- undata/sdg/VC_DTH_TONCVN — non-civilians
- undata/sdg/VC_DTH_TOTN.AGE--Y0T17 — under 18
- undata/sdg/VC_DTH_TOTN.AGE--Y_GE18 — 18 and over
The last two are the same series as the first, sliced. That is the grammar doing the work: .AGE--Y0T17 is not a different indicator, it is a filter on the one above it.
curl -s -X POST \
'https://unsd-datacommons.gcp.un-icc.cloud/api/observations/series' \
-H 'Content-Type: application/json' \
-d '{"variables":["undata/sdg/VC_DTH_TOTN.AGE--Y0T17","undata/sdg/VC_DTH_TOTN.AGE--Y_GE18"],"entities":["country/SSD","country/COD"]}'Step 2 — Get the answer, and notice the silence
Conflict-related deaths by age group
SDG indicator 16.1.2, split into under-18 and 18-and-over. Two countries, two age bands — four series.
Loading…
Read with care. An age-disaggregated conflict death toll depends on the age being recorded at the time of documentation. Where it was not, the death appears under.AGE--_U (unknown) rather than in either band — so these two bands do not sum to the total.
Total conflict-related deaths, five conflict-affected countries
The same indicator, undisaggregated, across a peer group.
Loading…
Read with care. Somalia was requested and returned nothing. It is absent from the chart, not at zero. A missing series in this graph means “not reported into this database for these years”, which is a statement about reporting capacity, not about peace. Charting only the countries that answered, without saying so, would quietly turn a data gap into a finding.
Step 3 — Put it in regional context with one request
curl -s -G \
'https://unsd-datacommons.gcp.un-icc.cloud/core/api/v2/observation' \
--data-urlencode 'date=LATEST' \
--data-urlencode 'variable.dcids=undata/unodc/VIC_HOM_RT' \
--data-urlencode \
'entity.expression=africa<-containedInPlace+{typeOf:Country}' \
--data-urlencode 'select=date' \
--data-urlencode 'select=value' \
--data-urlencode 'select=variable' \
--data-urlencode 'select=entity'Reading the expression
<-containedInPlacewalks containment edges inward: things inside Africa.+makes it recursive, so sub-regions are traversed too.{typeOf:Country}keeps provinces and cities out of the result.
Swap africa for SouthernAsia, EasternAfrica or any of the 30 UN geographic regions and the same call re-targets.
Intentional homicide rate, African countries
UNODC, victims per 100,000 population — each country's most recent available year.
Loading…
Read with care. South Sudan's only reading here is over a decade old, so its position in this ranking says more about statistical capacity than about current violence — which is itself a finding worth reporting.
Step 4 — Displacement, where the count and the rate disagree
Refugees per 100,000 population, by country of origin
SDG 10.7.4 / UNHCR. A rate, not a headcount — which is what lets a small country's displacement register at all.
Loading…
Read with care. Normalised per 100,000 of the origin country's own population, Syria and South Sudan sit far above Ukraine and Afghanistan even in years when the absolute Ukrainian caseload was the largest in the world. Neither framing is wrong — but a chart of headcounts and a chart of rates support different sentences, and the axis label is the only thing telling your reader which one they are looking at.
What this case leaves you with
LATEST query returns each country's own most recent reading. Check the spread before you call it a cross-section — the panels above do it automatically and say so.<-containedInPlace+{typeOf:Country} is the single highest-leverage thing to memorise in this API.