APA recommends citing the DOI, if available. Not all journal articles have been assigned a DOI.
Publication manual of the American Psychological Association : the official guide to APA style, 7th Ed. Reference Desk BF76.7 .P83 2020