I once told a recruiter I would accept the offer from the hiring company if they offered slightly above the range - which was still below what I was offered as an “architect” for a company using a technology stack that I was good at, but was on the decline. They did the negotiating for me.
Why would I waste my time interviewing before knowing the range? It’s not proper to ask the hiring company from the offset the salary range but it is okay to ask the recruiter.