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 Go to next message](/theme/default/images/down.png) |
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 Go to previous message](/theme/default/images/up.png) |
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: Mon Feb 17 03:59:06 Coordinated Universal Time 2025
|