You should only talk to your own nodes through RPC. In the conf file you need to specify a user and password and IP range for RPC to talk to.
If you need to pull other information there are various services that allow for API calls, but since access to RPC more or less means you have access to the wallet that is there you are probably not going to be able to find anyplace that allows remote calls. It's just basic bitcoin security and security in general.
-Dave
Can you link to documentation and examples?
Take a look at:
https://riptutorial.com/bitcoin/example/26000/node-configuration that more or less gives all the options that are available in the conf file.
You also have this file generator:
https://jlopp.github.io/bitcoin-core-config-generator/ I have not used it so I can't comment on how accurate it is, but I know people who have used it that say it does generate valid files.
Keep in mind when running this against your own node that it does have to be fully synced for some things. I know some (most?) commands will not work until your node has finished the IBD and if you re-start it until it finishes whatever housekeeping it has to do at startup.
What are you trying to do anyway?
-Dave