Note: You need to be a space administrator to see the space ID.
To find your space ID:
Navigate to the space you want to find the ID of.
Click the Settings tab > Space settings > General settings.
On the Space Settings page, you will see the Space ID under the General section.