TL;DR Accept a job offer based on whether you are happy with the offer vs the expected work. Don't accept/reject an offer because it ranks high/low on some oversimplified approximated average. That approximation cannot account for your specific circumstances nor the company's.
The question presumes that there is some sort of preset universal wage standard. There isn't. The salary for your role is defined by whatever someone is willing to pay for you to execute this role. If you can't find anyone willing to offer you more, then that's what you can get.
You can calculate averages across a group, but it doesn't really matter in the sense that it doesn't impact the interview process. The company will still offer what they're willing to offer, with a maximum cap; and you'll have a minimum cap on what you'd accept.
Additionally, there is the consideration that reported averages are biased due to opt-in reporting of salary amounts. Since salary is considered privileged information, only a subset of people willing share this information, which means that you have no possible measure of knowing whether the reported salaries are a meaningfully average sampling of the salaries that people earn.
There is a reasonable expectation that those with a lower salary are more interested in the wage scale (why look it up when you earn more than enough), which means lower wages are more likely to be reported than higher ones. This would lead to the reported average being lower than the true average, which in turn means that measuring your own salary against this incorrect average is actually to your detriment.
The matchmaking process between company and applicant remains the same regardless of what others are earning. If you're not happy with what is offered, then don't accept. This applies even if the offered salary is above average. Not every person will want to work as every company just as happily. I've interviewed with companies where I was less eager to work, and this caused me to increase my minimum cap on what salary offer I'd need to sign on for the job.
Between the company with the worst/best work environment, I would happily have taken a 5-10% pay cut in order to move from worst to best. Some of your salary should be dynamically adjusted based on how much you (dis)like the general environment you'd be working in. I don't refuse to work in certain conditions I don't like, I just ask for higher compensation in return. There is of course a limit to how much of that I'm willing to take on, but usually companies will bow out due to my wage demands rather than me having to bow out when the company somehow matches my exorbitant demand.
Don't let others decide (via a global average) what should be acceptable for you.