In APA 7th, use a DOI whenever one is available, even if the article also has a URL.
If there is no DOI:
Do not include a URL for articles retrieved from academic databases (e.g. ProQuest, EBSCOhost, ScienceDirect). The reference should end after the page range.
Include a URL if the article is available on a website or online journal and the URL will take readers directly to the article.
We acknowledge the Australian Aboriginal and Torres Strait Islander peoples as the first inhabitants of the nation and acknowledge Traditional Owners of the lands where our staff and students, live, learn and work.