The DHS Program User Forum
Discussions regarding The DHS Program data and results
Home » Dissemination and Capacity Strengthening » Application Programming Interface (API)  » Fetching a specific recode data file from API
Fetching a specific recode data file from API [message #24668] Thu, 16 June 2022 15:35 Go to next message
srawat is currently offline  srawat
Messages: 2
Registered: June 2022
Member
Hi,

I was trying to fetch a specific recode data file (Ex. NGKR4BFL.dta) from the API but I was having trouble doing so. I am able to see the filename and the details of that file from the datasets endpoint of the API but cannot see any way to download that file through the API.

Any help is greatly appreciated.

Thank you
Re: Fetching a specific recode data file from API [message #24673 is a reply to message #24668] Fri, 17 June 2022 08:25 Go to previous messageGo to next message
Trevor-DHS is currently offline  Trevor-DHS
Messages: 803
Registered: January 2013
Senior Member
There is currently no way to directly download the datasets using the API, however, if you are using R, you can use the rdhs package (see this article) to download the datasets.
Re: Fetching a specific recode data file from API [message #24674 is a reply to message #24673] Fri, 17 June 2022 09:18 Go to previous message
srawat is currently offline  srawat
Messages: 2
Registered: June 2022
Member
Thank you very much for the reply
Previous Topic: Maternal and child health indicators by background characteristics
Next Topic: GeoJSON with no geometries
Goto Forum:
  


Current Time: Mon Nov 25 09:59:26 Coordinated Universal Time 2024