The DHS Program User Forum
Discussions regarding The DHS Program data and results
Home » Dissemination and Capacity Strengthening » Application Programming Interface (API)  » getting indicator by only selected background characteristics
Re: getting indicator by only selected background characteristics [message #8916 is a reply to message #8331] Wed, 13 January 2016 17:08 Go to previous message
Sarah is currently offline  Sarah
Messages: 2
Registered: March 2013
Location: Calverton, MD, USA
Member
Note: The DHS API can now return csv files. This makes Stata usage much easier. The variables import seamlessly. And in my experience the numbers import in the correct format, no need for conversion. Use the "import delimited" command for a csv request.

For example, to get modern CPR by background characteristics among married women in Burkina Faso:

import delimited " http://api.dhsprogram.com/rest/dhs/data?breakdown=background &indicatorIds=FP_CUSM_W_MOD&countryIds=BF&perpag e=200&f=csv", clear

Cheers,
Sarah
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Welcome to The DHS Program API
Next Topic: Record Limits
Goto Forum:
  


Current Time: Thu Mar 28 15:17:50 Coordinated Universal Time 2024