The DHS Program User Forum
Discussions regarding The DHS Program data and results
Home » Data » Dataset access » Accessing DHS data using API.
Accessing DHS data using API. [message #2772] Fri, 22 August 2014 06:26 Go to previous message
adiallo5 is currently offline  adiallo5
Messages: 1
Registered: March 2013
Location: Tunis
Member
Hi,
I am trying the stata code example shown in the following link ( http://api.dhsprogram.com/?utm_content=buffer57c2d&utm_m edium=social&utm_source=twitter.com&utm_campaign=buf fer#/samples-stata.html).
However, when trying this, Stata responds:

. * Call the API and get just the variables of interest
. insheetjson surveyid value using "http://api.dhsprogram.com/rest/dhs/data/20171000,KE.j
> son", table(data) col(SurveyId Value)
Unable to find data. Bad result selector 'data'?
Empty result returned; Nothing to do.


My question is:
- how to get the data values or references - I don't know if this phrased correctly - (in this case, "20171000,KE").
- is there a link or table somewhere with the list of countries, data, indicators, etc., and their reference?

I hope this is clear enough.

Best regards.

Amadou-
 
Read Message
Read Message
Read Message
Previous Topic: dataset
Next Topic: Zambia MIS 2012 dataset
Goto Forum:
  


Current Time: Thu Apr 25 07:32:10 Coordinated Universal Time 2024