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

Data Days is here! Join us now for 60+ days of learning, challenges, and connection. 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
Fabric Data Days is here Carousel

Fabric Data Days 2026

Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.

May Power BI Update Carousel

Power BI Monthly Update - May 2026

Check out the May 2026 Power BI update to learn about new features.

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.