Thanks for being a part of WWDC25!

How did we do? We’d love to know your thoughts on this year’s conference. Take the survey here

use user ip address

Hi, is it legal to use open APIs to get the users's country country code using the Ip address in the app? I mean I want to know the user country for the game leaderboards data, and there are sites say this is free and open. So, I have two questions, first, is this making the user calling open api to get its country code concept legal? second question, what if these sites suddenly decided that it is not legal to use their apis for commercial use, and i miss that announcement; will you remove my app from the store? or what action will you take exactly?

is it legal to use open APIs to get the users's country country code using the Ip address in the app?

You need to define what you mean by “legal”. Are you asking whether it’s:

  • Technically possible

  • Compliant with App Store policies

  • Compliant with the actual law

Once you clarify your question, I should be able to point you in the right direction.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

use user ip address
 
 
Q