Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
mnegrisoli
Frequent Visitor

Get report public URL from Rest API

Hi !!! Is it possible to get the public URL embed from specific report by PowerBI Rest API (.NET Microsoft.PowerBI.Api.V2) ?

 

While get Reports in method GetReportsInGroup, reports have 4 properties, but no one have he public URL (DataSetId, EmbedUrl, Id, Name and WebUrl)

 

Thanks, 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

HI @mnegrisoli ,

If you mean share url which share with 'publish to web' feature, current REST api is impossible to get that url.

For embed token, you can refer to following link:

Embed Token

Regards,

Xiaoxin Sheng

View solution in original post

5 REPLIES 5
mnegrisoli
Frequent Visitor

Hi !!! Is it possible to get the public URL embed from specific report by PowerBI Rest API (.NET Microsoft.PowerBI.Api.V2) ?

 

While get Reports in method GetReportsInGroup, reports have 4 properties, but no one have he public URL (DataSetId, EmbedUrl, Id, Name and WebUrl)

 

Thanks, 

Anonymous
Not applicable

HI @mnegrisoli ,

If you mean share url which share with 'publish to web' feature, current REST api is impossible to get that url.

For embed token, you can refer to following link:

Embed Token

Regards,

Xiaoxin Sheng

Thank you @Anonymous 

 

It is possible to get a list of all embeded codes from my reports in a workspace (by export via CSV or XLS for example) on Admin Portal or another way ? I have 400 embeded public url´s reports and I need this list.

@mnegrisoli 

Yes, it's possible. 

By running the following code in python

import msal
import requests
import json

client_id = ""
client_secret = ""
tenant_name = "" 
workspace_id = "" 

authority_url = "https://login.microsoftonline.com/" + tenant_name 
scope = ["https://analysis.windows.net/powerbi/api/.default"]

# Connect the app
app = msal.ConfidentialClientApplication(client_id, authority=authority_url, client_credential=client_secret)
result = app.acquire_token_for_client(scopes=scope)
access_token = result['access_token']

# header
header = {'Content-Type':'application/json',
          'Authorization':f'Bearer {access_token}'}
print("Access token granted")

url = f"https://api.powerbi.com/v1.0/myorg/groups/{workspace_id}/reports"
response = requests.get(url=url, headers=header)

if response.status_code == 200:
    workspace_details = pd.DataFrame(response.json()["value"])
    workspace_details.to_csv('workspace_details.csv')
    print('Workspace detailed captured successfully')
else:
    print(f'Failed to capture workspace details: {response.json()}')

, you will get the details of the given workspaceId. 

Anonymous
Not applicable

I'm asking just in a case...

May be is it possible to create a public web link for report via REST API?

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.