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
Member
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.

Thanks,
Gaurav
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: 761
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 http://api.dhsprogram.com/#/api-data.cfm). For example:
For national estimates of the TFR:
https://api.dhsprogram.com/rest/dhs/data/FE_FRTR_W_TFR?f=htm l
If you want to add subnational estimates, you add &breakdown=subnational, e.g.
https://api.dhsprogram.com/rest/dhs/data/FE_FRTR_W_TFR?f=htm l&breakdown=subnational
If you want just other background characteristics, you add &breakdown=background, e.g. https://api.dhsprogram.com/rest/dhs/data/FE_FRTR_W_TFR?f=htm l&breakdown=background
If you want all disaggregations, you add &breakdown=all, e.g.
https://api.dhsprogram.com/rest/dhs/data/FE_FRTR_W_TFR?f=htm 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: Mon Sep 27 02:37:37 Coordinated Universal Time 2021