Using Confluence Rest API, How to get Only the Parent pages in a Space, omitting all the child pages of the Parent page?

Please Suggest which Confluence Rest API, should be used to get only the parent pages in a space.

I wanted to omit all the child pages created for the parent page in confluence.