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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
alamhaz
Helper I
Helper I

API not showing data

Dear all 

I want to get data from API in web its showing data as shown but in power bi when i want to connect with web then instead of taking this as json its take it as csv.document, and i am not getting data the web i am using is 

https://portal.payasyoutrack.com/api2.ashx?op=Report&subop=DeviceHealth&groupIDs=0&ticket=xxxxxxxx

Please guide me how can i get data from API as i am new in this i dont know where is error.

and data i am getting on web is .web cap.JPG

7 REPLIES 7
v-henryk-mstf
Community Support
Community Support

Hi @alamhaz ,

 

I make a test:

Try using Get Data -> Web->advanced. It will detect that it's a delimited file and load in the CSV for you. You need to provide the correct url as required to get the data correctly

vhenrykmstf_0-1625022303841.pngvhenrykmstf_1-1625022308114.png

For the url you provided, you need to enter the corresponding credentials, which cannot be obtained directly

vhenrykmstf_2-1625022610423.png

 

Refer to the following blog link, which can help you:

Importing data from JSON files and Power BI Rest APIs into Power BI (sqlshack.com)

Read API Data with Power BI using Power Query (mssqltips.com)


If the problem is still not resolved, provide detailed operation steps screenshots, I will answer you as soon as possible. Looking forward to your reply.

Best Regards,
Henry

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hi I can data in power bi that was problem of date i solved it but now the problem is that data is comming in only one column see the below SS, in web data is in rowset but when i import into power bi all data is in one column without heading of col, which is confusing.Capture web2.JPGCapture prbi.JPG

Hi @alamhaz ,

 

Import irregular data models, you can refer to this pbix file, and you can use transform table.

vhenrykmstf_0-1625130707869.pngvhenrykmstf_1-1625130730963.png


Let me know the result immediately, looking forward to your reply.

Best Regards,
Henry

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

Below is the sample pbix file.

I tried it but its not working 

If i expend using column it only give column name no data , but if i expend using rowset it only give data no colunm name check SS Capture exteract column.JPGrowset data.JPG

Hi @alamhaz ,

 

Did you encounter difficulties in the process of transform? Can you provide test data (delete sensitive information)? I will answer you as soon as possible.


Best Regards,
Henry

 

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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.

Top Solution Authors