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  |
Trevor-DHS
Messages: 805 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
|
|
|
Goto Forum:
Current Time: Fri Feb 21 08:12:26 Coordinated Universal Time 2025
|