The DHS Program User Forum
Discussions regarding The DHS Program data and results
Home » Dissemination and Capacity Strengthening » Application Programming Interface (API)  » API list of surveys with GPS datasets is incomplete (API list of surveys with GPS datasets is incomplete)
Re: API list of surveys with GPS datasets is incomplete [message #30468 is a reply to message #30441] Wed, 04 December 2024 09:47 Go to previous message
Blake-DHS is currently offline  Blake-DHS
Messages: 2
Registered: March 2022
Member
You cannot specify a fileType in a surveys call, only in a datasets call. Below is the correct call for each.

https://api.dhsprogram.com/rest/dhs/surveys?surveyCharacteri sticIds=26&surveyStatus=completed&f=html
https://api.dhsprogram.com/rest/dhs/datasets/?fileType=GE&am p;surveyStatus=completed&f=html

The number of surveys with GPS data collected will not match the number of geospatial datasets available because not all GPS data collected is publicly released for various reasons.

https://dhsprogram.com/data/available-datasets.cfm

If the surveyStatus is not specified, the default is surveys with data available in the API. Not all completed surveys have data in the API which is why the total would be less. Pending surveys also do not have data in the API until they are marked as completed.


Blake Zachary, The DHS Program
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: How to web scrape data on python from the DHS program API
Next Topic: Relative standard errors and design effects across surveys
Goto Forum:
  


Current Time: Fri Jun 20 16:30:19 Coordinated Universal Time 2025