This post will guide you how to do a SharePoint 2013 Search using REST and JavaScript. This example shows the way to do a search using the SharePoint 2013 REST API. during this sample we are going to produce a page with a search box that displays results in a grid. to get started, produce a new SharePoint-hosted app. Then, you need to grant permissions to the App to use a search.SharePoint-2013-Hosting

Develop the project using the subsequent method within the NAPA Tool

  • On your Developer site, open the “Napa” office 365 Development Tools then select Add New Project.
  • Select the App for SharePoint template, name the project create site then select the create button
  • Replace APP.js with the following source code below.
  • Publish Your App.


The following is an important procedure to be done before creating the app. Specify the permissions that your app needs as in the following. Choose the Properties button at the bottom of the page. In the Properties window, choose Permissions. In the Content category, set the Write permissions for the Tenant scope. In the Social category, set the Read permissions for the User Profiles scope. Then, close the Properties window.


Now, edit the Default.aspx to add the HTML for our search box and button as well as a div tag to hold the results. Write the following code:

Now, you should edit App.js to include your script to query the search and display the results. Add a click event handle to your document ready function. Then, write the following code:







SharePoint 2013 Hosting Recommendation’s SharePoint 2013 Hosting solution offers a comprehensive feature set that is easy-to-use for new users, yet powerful enough for the most demanding web developer expert. Hosted SharePoint Foundation 2013 is the premiere web-based collaboration and productivity enhancement tool on the market today. With SharePoint 2013 Foundation, you can quickly access and manage documents and information anytime, anywhere though a Web browser in a secure and user friendly way. SharePoint hosting services start at only at €9.99/mo, allowing you to take advantage of the robust feature set for a small business price. offers a variety of hosted SharePoint Foundation 2013 plans as well as dedicated SharePoint 2013 Foundation options.

hostforlife banner