All Spells
Arcane | Divine | Elemental | Occult | Primal
Focus Spells | Rituals

There is a Legacy version here.

PFS StandardDetect MagicCantrip 1

Cantrip Concentrate Detection Manipulate 
Source Player Core pg. 323
Traditions arcane, divine, occult, primal
Cast [two-actions]
Area 30-foot emanation
You send out a pulse that registers the presence of magic. You receive no information beyond the presence or absence of magic. You can choose to ignore magic you're fully aware of, such as the magic items and ongoing spells of you and your allies.

You detect illusion magic only if that magic's effect has a lower rank than the rank of your detect magic spell. However, items that have an illusion aura but aren't deceptive in appearance (such as an invisibility potion) typically are detected normally.

    Heightened (3rd) You learn the rank or level of the most powerful magical effect the spell detects, as determined by the GM.
    Heightened (4th) As 3rd rank, but you also pinpoint the source of the highest-rank magic. Like for an imprecise sense, you don't learn the exact location, but can narrow down the source to within a 5-foot cube (or the nearest if larger than that).