In general, item IDs can be easily found in-game by writing help "NAME", where the NAME can be basically anything.
So writing help "summon sword" will for example create a list of all things in-game containing this in their name, in this case all the spell books.
And to provide a specific answer, Summon Sword V book is 137981, and curiously enough I couldn't find any Fire Palm Extract, could it be Lotus Extract? If so, the ID is 58CFB.