The DHS Program User Forum
Discussions regarding The DHS Program data and results
Home » Dissemination and Capacity Strengthening » Application Programming Interface (API)  » is "perpage" query param supported for data API? (API)
is "perpage" query param supported for data API? [message #17750] Tue, 21 May 2019 17:32 Go to previous message
larshelge@baosystems.com is currently offline  larshelge@baosystems.com
Messages: 3
Registered: May 2019
Member
Per the docs, "perpage" query param controls page size:

> perpage: Indicates maximum number of rows returned. Maximum is 1000 for non-authenticated users, and 5000 for authenticated users. Default is 100

Is this supported for the "data" API endpoint? It does not appear so from this URL, as I still get 100 rows back:

http://api.dhsprogram.com/rest/dhs/v7/data?countryIds=EG& ;perpage=1000

For this query, "perpage" makes the backend crash:

http://api.dhsprogram.com/rest/dhs/data/FE_FRTR_W_TFR&pe rpage=1000

Is this a bug? If not, could support for the "perpage" param be added to the data endpoint?

Thanks!
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Child health data in API
Next Topic: How to use API to import data to R/Stata
Goto Forum:
  


Current Time: Mon Nov 25 12:04:02 Coordinated Universal Time 2024