To get the webform id in Drupal 8, you can use the following steps:
Alternatively, you can also get the webform id by inspecting the webform's HTML code. To do this, open the webform in your web browser and right-click on the page, then select "Inspect" (or a similar option, depending on your browser). In the HTML code that appears, look for an element with the attribute
data-drupal-selector="edit-webform-id". The value of this attribute will be the webform id.
I hope this helps! Let me know if you have any questions.