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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

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
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.