Ionic 4 and root page

Hi All

I am using ionic 4.

I would like to know how can i select the first page that loads up after the splash screen.

I would like to use any api to query some data at load time, once the data reply is returned then switch off the splash screen and then load the correct first page.

I have been searching but not found anything that can help me.

Thank You