male pattern baldness – How to purchase or get prescription for finasteride and minoxidil

I have early stage male pattern baldness (AGA) and am experiencing hair thinning. I live in Japan. I went to a specialist clinic here and got advice and some medicine, but they are clearly trying to rip me off on the price. I searched some generic online providers, but they require a prescription (which the clinic here didn't explicitly write, just handed me the overpriced medicine).
Is there anywhere I can buy some reasonably priced finasteride (around 1.3mg pill is ideal) and/or minoxidil (topical 5% concentration or around 2.5mg pill is ideal)?
Alternatively is there an easy way to get an online prescription (preferably from a US pharmacy/doctor) so I can use the shop that requires one?

Notably, I checked amazon, there are a few scam products with names closely resembling the medicine names, but it seems like the sale might be restricted or something. Also, I asked a random generc pharmacist about getting it, and they stated that they only carry stuff that is covered by insurance, which as cosmetic thing, hair loss is not.

by Different_Banana5186