Is there any REST API to get all the Site and site Collections from Sharepoint Online

Hi,

I have one SharePoint Online tenant. We are using REST API to integrate SharePoint to our internal System.

For my use case I need to get all the SharePoint sites ans Sitecollections. From each SiteCollection I need all the subsites under this.

I have used below REST Query

http://<Base site url>/_api/web

This doesn't give me all the Site collections

Could any one please give me some way to get all the Site collections and sites from my sharepoint tenant through REST API.

Thanks,

March 29th, 2015 4:18pm

Hi,

You can use the Azure AD Graph API to go beyond the Site and tenancy details through REST API

have a look on this li

March 30th, 2015 12:31am

Hi,

I have gone through the documentation of Azure AD graph API. Not finding which call will give me the all sitecollection detail.

Could you please point me to that direction.

Thanks,

Abhiram

March 31st, 2015 9:12am

Hi Abhiram,

There seems no such endpoint in SharePoint REST API can retrieve a list of site collections in a SharePoint Online tenant:

https://msdn.microsoft.com/en-us/library/office/jj860569.aspx#Reference

If Client Object Model can be an option for you, you can use Tenant object to achieve what you want:

http://social.technet.microsoft.com/wiki/contents/articles/24050.perform-basic-admin-operations-using-csom-in-sharepoint-online.aspx#Scenario_3_Fetch_All_Site_Collections  

Anyway, I would suggest you submit a feedback to the Office Developer Platform if there any expectation about the future version of REST API of Office 365 SharePoint Online:

http://officespdev.uservoice.com/

It is a place for customers provide feedback about Microsoft Office products. Whats more, if a feedback is high voted there by other customers, it will be promising that Microsoft Product Team will take it into consideration when designing the next version in the future.

Thanks 

Patrick Liang

Free Windows Admin Tool Kit Click here and download it now
March 31st, 2015 11:43am

Hi Patrick,

Thanks a lot for your reply.

I understand that existing REST end point will not help me to get all the Sitecollections. Basically I want to get all the Sites, SiteCollection detail from my SharePoint Online. If I use CSOM API, then I should write my program in c# right ? 

My project is written in java. Is there any way from java process  to get all the sites and site collection detail of a SharePoint online .

Thanks,

April 2nd, 2015 3:11am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics