How can we help you today?

How to Get Your SharePoint Site ID

A Site ID is a unique string of numbers and letters that identifies a specific SharePoint site. This article will show you three options to retrieve it.


TABLE OF CONTENTS


Retrieving Site ID

Follow the option that best suits your needs:


Option 1: Adding “_api/site/id” to Site URL

Step 1: Copy URL

Copy the URL below:

https://yourdomain.sharepoint.com/sites/yoursite/_api/site/id

Then, replace https://yourdomain.sharepoint.com/sites/yoursite with your site’s URL.


Step 2: Paste URL

Paste the URL in the address bar and enter:


paste in address bar


Step 3: Copy Site ID

You will be redirected to the page below. Copy the string of numbers and letters inside “Edm.Guid”>. That’s your Site ID.


copy


Awesome! You now have your Site ID.


Option 2: Using Graph Explorer

Step 1: Open Graph Explorer

Go to Graph Explorer:


NOTEBefore proceeding, make sure you log in to Graph Dev Center. You can only access the Graph Explorer if you have the necessary permissions.


Graph Explorer


Step 2: Copy and modify the GET Query

Copy the GET query below:

https://graph.microsoft.com/v1.0/sites?search=site


Replace site with your site domain.


Step 3: Paste GET Query

Make sure that it is set to GET:


GET


Paste the GET query in the field provided:


paste get query


Click Run Query:


Run Query


Step 4: Copy Site ID

In the Response preview section, look for the name of site:


site name


Copy the string of numbers and letters after “sharepoint.com,” and before the second “comma (,)”. That’s your Site ID.


copy id


Congratulations! You have successfully retrieved your Site ID.


Option 3: Using Power Automate

Step 1: Create a Flow in Power Automate

Go to Power Automate:


NOTEBefore proceeding, make sure you log in to Power Automate. You can only access it if you have the necessary permissions.

Power Automate


Click + Create:


+ Create


Select Instant cloud flow:


instant cloud flow


Write the [1] Flow name, select [2] Manually trigger a flow, and click [3] Create:


create flow


Step 2: Send an HTTP request to SharePoint

Click the plus icon:


plus icon


Look for Send an HTTP request to SharePoint and select it:


Send an HTTP request to SharePoint


Choose the [1] Site Address of the SharePoint site that you want to get the Site ID of, and select [2] Get as the method:


Site Address and Method


Write _api/site in the Uri field:


Uri


Under Advanced parameters, choose Headers:


Headers


Write [1] Accept as the key and [2] application/json;odata=nometadata as the value:


Key and Value


Once done, click Save:


Save


Step 3: Test the flow

Select Test:


Test


Choose [1] Manually and click [2] Test:


Manually and Test


Click Continue:


NOTEIf you aren’t logged in to SharePoint yet, you will be prompted to do so.

Continue


Then, click Run Flow:


Run Flow


Select Done:


Done


Step 4: Copy Site ID

Click Send an HTTP request to SharePoint:


Send an HTTP request to SharePoint


Scroll down to Outputs and click Show raw outputs:


Show raw outputs


Look for Id. The numbers and letters inside is your Site Id.


id


Awesome! You now have the Site ID.


Related articles:





Did you find it helpful? Yes No

Send feedback
Sorry we couldn't be helpful. Help us improve this article with your feedback.

World's best intranet sites are designed using ShortPoint

Get started today! Learn more
See all 27 topics

Start a trial

Ignite your vision. Install ShortPoint directly on your site, or play in sandbox mode. No credit card required.

Get started today

World’s best intranet sites are designed using ShortPoint

Thousands of companies using ShortPoint everyday to design, brand and build award winning intranet sites.

Get started Learn more