I'm trying to find a REST API query which shows all HTML, CSS, js ect. all type of pages and documents. I'm trying to get exact same results as SharePoint default search.
Try the following query url, this will give you all the records associated with document content type.
You can also query something like below, where you are trying to find document with specific term
By default SP REST API display 10 records. Add row limits to query to include as many result items you desire.
You can also follow MSDN documentation to learn more on SP Search.
For details you can reach this article SharePoint 2013: How To Create Custom Display Templates For SharePoint Search .
You can use below REST API
To get all Documents/ Pages from site :
To get specific pages/files like CSS,JS,HTML etc :