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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
LDevi2017
Frequent Visitor

Unable convert JSON API response to Table in Power Query

Hi,

When I try to connect GitHub private repository with Power BI it's gives the result as below.

LDevi2017_0-1720003210835.png

It's not converting to Joson response/ table.

LDevi2017_1-1720003374915.png

But I can generate by using sale link in postman to download JSON format.

 

 

4 REPLIES 4
Keezz
Helper I
Helper I

The API is returning a 1
Isn't that the expected reult? The number of contributers to the repo?

Hi,

Yes. API is returning result as 1. this is not the expected result. there are around 10 columns of information with many rows.

Anonymous
Not applicable

Hi @LDevi2017 ,

Please try:

let
   source = "......"
in 
   source

Please check what this returns, if source does not return a binary file then there is a problem with your URL.

Best Regards,
Dino Tao

Hi Dino Tao,

The same URL is working to download JSON file from postman and also when I used as above mentioned 

 

 

let
   source = "URL"
in 
   #"source"

 

result given as URL which we given as source.

 

I used the below code, but result is blank

let

    apiUrl = "my_api_url",

    token="my_api_key",

    options = [Headers=[#"Authorization"="Bearer " & token ]],

    result = Json.Document(Web.Contents(apiUrl , options))

in

    #"result"

what would be the reason for the blank result.

 

Thanks,

Lakshmi

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.