I am using the REST API to search through SharePoint using the call:
_api/search/query?querytext='contentclass:sts_site'&rowlimit=1000&startrow=0
but I am also getting all the personal sites and links to OneDrive folders.
How can I exclude them from using this REST API search query for both SharePoint online and on-premise?