There are several ways to get the URLs from your application.
You could write a couple of automated tests that navigate through your application and get the URLs using locator strategies from the UI.
Appium - for both Android and iOS apps
XCode - for iOS apps
Espresso - for Android apps
However using this approach would make your tests really ...
The details will depend on what technology your app is built upon, but the core point is to create a test that will run the command:
ping -c 1 *URL*
for each URL you want to check. This will make ping stop after one request only.
If we are talking about a JVM-based stack, this article may help to understand how to run Bash commands with Java, but if you are ...