web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Pages / Using external APIs in...
Power Pages
Answered

Using external APIs in Power Pages - Where and how to store the API-Key?

(0) ShareShare
ReportReport
Posted on by 2,434 Super User 2025 Season 2
Hi all,
 
I need to fetch IP-Adresses of my power pages visitors and would like to use one of the usually used APIs (ipify for example)
Every API needs an API key, is there a proper way to not store the API-Key publicly inside my power pages code?
 
Webressources or env variables are not going to work in my opinion as they are fetched and displayed anyway without securing my key.
 
Any suggestion is appreciated.
 
Categories:
I have the same question (0)
  • Verified answer
    oliver.rodrigues Profile Picture
    9,368 Most Valuable Professional on at
    I took a quick look here at ipfy and it seems that it doesn't require an API Key at all, am I right?
     
    If you need to provide an API Key, my question here is how is that used:
    • if you will end-up passing the API Key in the request anyway, I feel like it will always be exposed
    • if you need the API Key to generate a Token, you can store the API within Dataverse Environment Variables, and make a Power Pages - Cloud Clow call so you can generate the Token within the Cloud Flow, and then use the Token in Power Pages to make the other API Calls - this way the API Key wouldn't be exposed, just the Token
    • you could perform the call via server-side using Cloud Flows, however that would probably end-up picking the IP Address of the Azure Cloud Flow instance, rather than the Portal User - so I think that wouldn't work
  • Lucas001 Profile Picture
    2,434 Super User 2025 Season 2 on at
    Thanks for your answer. Seems like you are right for ipfy.
    For that case a flow would not solve the issue as I would need the Ip of the user. Will test it with ipfy.
    Thanks for your suggestions.
     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Pages

#1
Fubar Profile Picture

Fubar 74 Super User 2025 Season 2

#2
Jerry-IN Profile Picture

Jerry-IN 55

#3
sannavajjala87 Profile Picture

sannavajjala87 31

Last 30 days Overall leaderboard