Getting Tracked Entity Instances using Web API in 2.28

Hi. I have noticed when I use the GET method for tracked entity instances, I’ve noticed only 50 TEIs are being returned regardless of the organisation unit. I’m using Version 2.28. An example of the uri is:

http://localhost:8080/dhis/api/26/trackedEntityInstances.json?ou=d4tHjhKMFAG&program=l8EcJmSUkA5

Anyone noticed this or has a work around?

3 Likes

Hi @vikwato, have you tried adding &paging=false at the end of the request?

It would look like this:
http://localhost:8080/dhis/api/26/trackedEntityInstances.json?ou=d4tHjhKMFAG&program=l8EcJmSUkA5&paging=false

3 Likes

Thank you. Worked like a charm

3 Likes