Skip to main content

Commonly used REST API URLs in SharePoint 2013

In SharePoint 2010 Rest API was limited to for fetching the list data, in SharePoint 2013 Rest API covers all the functionality covered by CSOM. Please find below a list of all the Sharepoint Rest API end points.

_spPageContextInfo.webServerRelativeUrl will return the relative url which can be combined with _api part.
  
Rest API URL
Description
Site collection object
Site object
Site collection URL property
Site list collection
Site lists collection Method
List items collection, selects all the fields in the Contacts list
$select=Title

Select title field in contacts list
$select=Title,Description&$order=Modified

Select title and description field and order by last modified date.
$filter=FirstName eq ‘Dinesh’
Returns the item from the contact list for which the first name is Dinesh
$filter=startswith(FirstName,’D’)
Returns all items from the contacts list for which the first name starts with D
$filter=month(Modified) eq 4
Returns all items from the contacts list modified in April.
Returns the first five items in the contacts list.
getmyProperties
For getting the user profile properties
getmyProperties(@v)?@v=’Dinesh’
For getting the user profile properties of the Dinesh.
For getting all the groups of a site object.
For getting all the users of a group.
Used to run search queries by using HTTP Get
Used to run search queries by using HTTP post to overcome Url length limitations
Used to retrieve query suggestions by using Http Get



These are some of the basic REST API urls which we use frequently. I will be updating the above list with some more REST API urls. 

Comments