I think Splunk Custom command will help you. You just create a custom command and write some python code to call APIs and display values as a result. There are few links which can be helpful you to create custom command.
This is very common and is simple to do. You can make you life even easier if your script returns a date and key=value pairs as its response, as Splunk would need no further extractions to fully interpret and index your data.