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 is currently offline
Messages: 3
Registered: May 2019
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: ;perpage=1000

For this query, "perpage" makes the backend crash: rpage=1000

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

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: Wed Jul 24 17:02:40 Coordinated Universal Time 2024