Forum Discussion
How to Retrieve Tag Associations for Reports via Fabric REST API/Power BI REST API
Hi everyone,
I'm new to Microsoft Fabric and Power BI, and I’ve started exploring the REST APIs. I’ve successfully applied tags to reports via the Fabric UI, and now I’m trying to retrieve those tag associations programmatically.
I’ve reviewed the Fabric Tags API documentation, and while GET /tags returns the tag definitions (like displayName and scope), it doesn’t include any itemIds or information about which items the tags are applied to.
Is there any documented API or recommended approach to retrieve tag associations for individual reports in Fabric? Or is this only accessible via metadata scanning or Purview?
Any guidance or examples would be greatly appreciated!
Hi ShijuKuchelan,
Have you checked following endpoints?
https://learn.microsoft.com/en-us/rest/api/fabric/core/items/get-item?tabs=HTTP
https://learn.microsoft.com/en-us/rest/api/fabric/core/items/list-items?tabs=HTTP
These have been recently introduced. Before May it wasn't possible to retrieve them.
This is a sample JSON Output of the get-item endpoint:{ "id": "XXXXXXXXXX-ceb2-XXXXXXXXXX-92c3-XXXXXXXXXX", "type": "Lakehouse", "displayName": "fab_lakehouse", "description": "", "workspaceId": "XXXXXXXXXX-23b8-XXXXXXXXXX-9204-XXXXXXXXXX", "folderId": "XXXXXXXXXX-f48b-XXXXXXXXXX-acce-XXXXXXXXXX", "tags": [ { "id": "XXXXXXXXXX-3132-XXXXXXXXXX-b541-XXXXXXXXXX", "displayName": "Financial" } ] }Hope that helps
Onur
😊If this post helped you, feel free to give it some Kudos! 👍
✅And if it answered your question, please mark it as the accepted solution.
1 Reply
- OnurOzResolver III
Hi ShijuKuchelan,
Have you checked following endpoints?
https://learn.microsoft.com/en-us/rest/api/fabric/core/items/get-item?tabs=HTTP
https://learn.microsoft.com/en-us/rest/api/fabric/core/items/list-items?tabs=HTTP
These have been recently introduced. Before May it wasn't possible to retrieve them.
This is a sample JSON Output of the get-item endpoint:{ "id": "XXXXXXXXXX-ceb2-XXXXXXXXXX-92c3-XXXXXXXXXX", "type": "Lakehouse", "displayName": "fab_lakehouse", "description": "", "workspaceId": "XXXXXXXXXX-23b8-XXXXXXXXXX-9204-XXXXXXXXXX", "folderId": "XXXXXXXXXX-f48b-XXXXXXXXXX-acce-XXXXXXXXXX", "tags": [ { "id": "XXXXXXXXXX-3132-XXXXXXXXXX-b541-XXXXXXXXXX", "displayName": "Financial" } ] }Hope that helps
Onur
😊If this post helped you, feel free to give it some Kudos! 👍
✅And if it answered your question, please mark it as the accepted solution.