The DHS Program User Forum
Discussions regarding The DHS Program data and results
Home » Topics » General » DHS API Data vs StatCompiler (Need clarity about the data in DHS API vs that provided in StatCompiler)
DHS API Data vs StatCompiler [message #23420] Tue, 14 September 2021 01:46 Go to next message
Gaurav is currently offline  Gaurav
Messages: 1
Registered: September 2021
Hi, I am using DHS API to get DHS Country data. When I compare this data with Statcompiler data for few indicators as sample, I see that API data is less and missing the detailed level variables.
Can I please get the clarity if StatCompiler has more detailed data vs API and if yes, is there any API support to get detailed level data from StatCompiler.
Sharing samples files for comparing the two data for an indicator.

Re: DHS API Data vs StatCompiler [message #23430 is a reply to message #23420] Tue, 14 September 2021 10:50 Go to previous message
Trevor-DHS is currently offline  Trevor-DHS
Messages: 781
Registered: January 2013
Senior Member
All data in the DHS STATcompiler comes from the DHS API. The API, though, by default, displays national estimates. To get the disaggregated data, you need to add the breakdown parameter (see For example:
For national estimates of the TFR: l
If you want to add subnational estimates, you add &breakdown=subnational, e.g. l&breakdown=subnational
If you want just other background characteristics, you add &breakdown=background, e.g. l&breakdown=background
If you want all disaggregations, you add &breakdown=all, e.g. l&breakdown=all
Previous Topic: DHS 6 Dom. Republic - Variables Missing from Map and Recode Guide
Next Topic: Changes in definition of years of education over time for Cameroon?
Goto Forum:

Current Time: Wed Oct 4 02:56:17 Coordinated Universal Time 2023