Forum Discussion

halcyon57a's avatar
halcyon57a
New Member
11 months ago
Solved

Extract API info from Notebooks

Hi I am using the Fabric API to trawl through all workspaces on a tenant, identifying Python notebooks and trying to read these to see if they access an API.  If one exists, then list it out.   The N...
  • V-yubandi-msft's avatar
    11 months ago

    Hi halcyon57a ,

    Thank you for your post in the Fabric community, and  In addition to tayloramy  earlier response. Fabric’s public API does allow you to retrieve complete notebook definitions, including all code cells. If you’re only getting metadata, that could be why the results appear blank you need to use the correct endpoint for full content.

    You can refer to the official documentation: Manage and execute Fabric notebooks with public APIs - Microsoft Fabric | Microsoft Learn

     

    This guide explains how to list notebooks, access their full content, and handle formats such as .ipynb, .py, and .sql. For .ipynb notebooks.

    Regards,
    Yugandhar.