The DHS Program User Forum
Discussions regarding The DHS Program data and results
Home » Dissemination and Capacity Strengthening » Application Programming Interface (API)  » API query relocated (API error)
Re: API query relocated [message #30477 is a reply to message #30418] Thu, 05 December 2024 13:49 Go to previous message
Trevor-DHS is currently offline  Trevor-DHS
Messages: 805
Registered: January 2013
Senior Member
I was able to run the code without much trouble, but with a couple of minor corrections:
1) Make sure there are no spaces in the URL (the userforum adds spaces sometimes - just remove them). Remove the space before HTTP, and remove each of the other spaces that are shown.
2) The perpage setting should have only 1 equals sign.
I'm attaching a file with the corrected version.
  • Attachment: APIcall.txt
    (Size: 0.42KB, Downloaded 35 times)
 
Read Message
Read Message
Previous Topic: Relative standard errors and design effects across surveys
Next Topic: Problem opening geojsons using API
Goto Forum:
  


Current Time: Mon Mar 3 03:49:58 Coordinated Universal Time 2025