How To Call A Search Api Using Rest Using Javascript From Sharepoint

How To Call A Search Api Using Rest Using Javascript From Sharepoint