Use both GetSpellBookItemInfo and GetSpellLink to get spell identifiers.
Scan flyouts, mounts and critters.