I got it to work so I will share my victory with you.
This code works if you need to get the Site collections paths, title etc.
var queryUrl = spAppWebUrl + "/_api/search/query?querytext='sharepoint'&trimduplicates=false&rowlimit=400&refinementfilters='contentclass:equals("STS_Site")'
$.ajax({ url: queryUrl, method: "GET", headers: { "Accept": "application/json; odata=verbose" }, success: onQuerySuccess, error: onQueryError });
});
function onQuerySuccess(data) {
var results = data.d.query.PrimaryQueryResult.RelevantResults.Table.Rows.results;
$("#resultsDiv").append('<table>');
$.each(results, function () {
$("#resultsDiv").append('<tr>');
$.each(this.Cells.results, function () {
if (this.Key == "Title") {
$("#resultsDiv").append('<td>' + this.Value + '</td>');
}
if (this.Key == "Path") {
$("#resultsDiv").append('<td>' + this.Value + '</td>');
}
});
$("#resultsDiv").append('</tr>');
});
$("#resultsDiv").append('</table>');}