Retrieving all targets associated with a disease using the API (pagination)

You might find this example useful: