How do I find a vocabulary ID for use with tokens I need the Id for tokens. I know in Drupal 7 it is based on the label but when using tokens for rules the label doesn't work in the identifier. I don't need to find it programmatically. Is there another way?
Sure, just pop into the taxonomy_vocabulary table in the database and see what vid is associated with the correct vocabulary.

For the record if you do need to get it programmatically you can do so like this:

$vocab = taxonomy_vocabulary_machine_name_load('vocab_name');
$vid = $vocab-&gt;vid;