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
- Option 1: Adding “_api/site/id” to Site URL
- Option 2: Using Graph Explorer
- Option 3: Using Power Automate
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:
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.
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.
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:
Paste the GET query in the field provided:
Click Run Query:
Step 4: Copy Site ID
In the Response preview section, look for the name of site:
Copy the string of numbers and letters after “sharepoint.com,” and before the second “comma (,)”. That’s your Site 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.
Click + Create:
Select Instant cloud flow:
Write the [1] Flow name, select [2] Manually trigger a flow, and click [3] Create:
Step 2: Send an HTTP request to SharePoint
Click the plus icon:
Look for Send an HTTP request to SharePoint and select it:
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:
Write _api/site in the Uri field:
Under Advanced parameters, choose Headers:
Write [1] Accept as the key and [2] application/json;odata=nometadata as the value:
Once done, click Save:
Step 3: Test the flow
Select Test:
Choose [1] Manually and click [2] Test:
Click Continue:
NOTEIf you aren’t logged in to SharePoint yet, you will be prompted to do so.
Then, click Run Flow:
Select Done:
Step 4: Copy Site ID
Click Send an HTTP request to SharePoint:
Scroll down to Outputs and click Show raw outputs:
Look for Id. The numbers and letters inside is your Site Id.
Awesome! You now have the Site ID.
Related articles:
- How to Find a SharePoint List / Library ID (Modern Experience)
- How to Find a SharePoint List / Library ID (Classic Experience)
- Tenant Renaming (Domain Change) and ShortPoint Compatibility