How to allow user input in parameter in post API call

https://ethereum.stackexchange.com/questions/144895/how-to-allow-user-input-in-parameter-in-post-api-call

Instead of hardcoding it, I want users to be able to input their wallet address in API post parameters.

Here’s the code – but the wallet address in hardcoded:

const axios = require("axios");
const { utils, BigNumber } = require("ethers");
// copy-paste your URL provided in your Alchemy.com dashboard
const ALCHEMY_URL =
  "https://eth-goerli.g.a......";
axios
  .post(ALCHEMY_URL, {
    jsonrpc: "2.0",
    id: 1,
    method: "eth_getBalance",
    params: [
      "0x........", // Ethereum address
      "latest", // get latest account balance of the address
    ],
  })
  .then((response) => {
    const result = BigNumber.from(response.data.result);
    console.log(result);
    console.log(result.toString());
    const numberString = utils.formatEther(result);
    console.log(numberString);
  });