Tried the following code.
download.file("https://www.nasdaq.com/api/v1/historical/AAPL/stocks/2020-09-09/2020-10-09", destfile = "./data.csv&qu