Where do I find the IDs of WordPress tags, posts or categories?

Please install the plugin Reveal IDs. You will then see the ID in a new column.

Advanced users can also find the ID in the URL of the admin pages where you edit that item.

Unfortunately, WordPress doesn’t provide an easier way. You often can avoid IDs when you use Gutenberg blocks.