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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
johnagillespie
Advocate I
Advocate I

Querying Pingdom

Has anyone successfully queried Pingdoms API? https://www.pingdom.com/resources/api

 

The API requires both Basic authentication and an API key. How do I do that?

6 REPLIES 6
ripley21
New Member

I have managed to get it working for my organisation, with dual authentication. 

Are you able to provide any sample code?

ripley21
New Member

We have managed to do this in our organisation, not 100% how we got the app and the auth keys but i'll take a look if you still want to do this, 

 

They are not mentioning multi factor authentication, so it should be doable in Power BI. Unfortunatelly they want my credit card details for a trial account so I can't test the script below.

let
    header = [  #"App-Key"="zoent8w9cbt810rsdkweir23vcxb87zrt5541"],
    response = Web.Contents("https://api.pingdom.com/api/2.0/checks",[Headers=header]),
    out = Json.Document(response,1252)
in
    out

 

But based on the PHP example from

https://www.pingdom.com/resources/api#php+code+example

I bet that you should get some meaningfull results.

 

By the way. When Power BI prompts you for authentication , make sure to select basic and enter your credentials. That should be sufficient.

ripley21
New Member

We have managed to do this in our organisation, not 100% how we got the app and the auth keys but i'll take a look if you still want to do this, 

 

Greg_Deckler
Super User
Super User

I am not aware of a way to do dual authentication in Power Query data sources.


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Solution Authors
Top Kudoed Authors