Problem with jsonrpc api

hi, i have a problem with JsonRPC API. I just don’t understand how my url should look like. For example i want to get last block height, so i should use https://docs.nkn.org/docs/jsonrpc-api-reference#getlatestblockheight. But what next? There no any example of using in api site. Please give avaliable example that will definitly work if i would change ip of node on mine