Are u asking about legion artifacts? Those u level with relics. Relics are easiest to get by farming world quests that reward a relic u need or going to a dungeon and solo-ing it. U’ll get lvl 50 relics at max level.
If u are referring to Heart of Azeroth which is from BFA, then any content will give u AP.