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)
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: 788
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
 
Read Message
Read Message
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: Tue Apr 16 12:07:14 Coordinated Universal Time 2024