This is a simple server that maintains a running instance of the Sanskrit Sandhi and Compound Splitter. Basically, it embeds this key file as a class in a super-simple Flask API with one endpoint. The endpoint (the same SERVER_URL you're looking at now: https://splitter-server-tylergneill.pythonanywhere.com/) accepts POST requests with either string or file inputs. With cURL:
curl SERVER_URL -d '{"input_text":"rājapuruṣaḥ"}' -H 'Content-Type: application/json'
or
curl -F "input_file=@/path/to/local/file
Or with Python code:
import requests; result = requests.post(SERVER_URL, json={'input_text': your_input_text})
or
import requests; result = requests.post(SERVER_URL, files={"input_file": open(your_input_filename, 'rb')})
Or you can use any other technology to make POST requests that you prefer.
Don't forget that input must already be in valid IAST. For this, you can use skrutable or any other such tool.