Showing posts with label get all sub sites using rest api. Show all posts
Showing posts with label get all sub sites using rest api. Show all posts

Friday, March 3, 2017

Get all sub sites in a site using rest api in SharePoint

You can get all sub sites in a site using rest api in SharePoint.

Here is the URL to get all sub sites

http://yoursite/_api/Web/webinfos

This will give you the properties of sub site like :-

  • Title
  • Description
  • Web template used for the site (e.g. Team site, project site etc) 
  • Server relative url 
  • Date of creation etc in json format



Happy Coding !!!