You asked
Best camera for the canon rf 24mm f 1 8 macro is stm?
The Canon RF 24mm f/1.8 Macro IS STM is a full-frame lens, so I'd pair it with a full-frame body. You can use it on APS-C too, but it then frames like a 38mm lens, which loses much of the wide view it's good for. The sensor sizes guide explains the crop.
For most people, I'd go with the Canon EOS R6 Mark II as an all-rounder. If you want more resolution for macro detail, the Canon EOS R5 Mark II is the one to look at. On a tighter budget, the Canon EOS RP is a full-frame body that still works well with this lens.
See the full Canon RF 24mm f/1.8 Macro IS STM page for every camera it fits.
Written by Claude from this site's pages.