Gmail – How to Locate the Thread ID in New Gmail

gmail

When I use the old Gmail I use this method:

https://mail.google.com/mail/u/0/#inbox/1630209116a3af45 and thread ID is: 1630209116a3af45.

In the new Gmail, the same thread link is:

https://mail.google.com/mail/u/0/?zx=3xcdey2cogvc#inbox/FMfcgxmZVPbZvwJWCvBMvjxglSMPvsvW

and there is no option to find it.

I also looked in the HTML source of the page and the thread ID is not there.

All of my searches show only the old Gmail behavior (like this: https://support.cloudhq.net/how-to-get-thread-id-of-a-gmail-thread/).

I want to find out how I can locate the thread id.

(I also tried to find it in the "show original" option, but I can find only the message id, and it does not help.)

Best Answer

You can get the thread id from the HTML. Try searching "data-legacy-thread-id" in the HTML elements.

Or you can find it by running JavaScript code in the console:

document.querySelector('[data-legacy-thread-id]').getAttribute('data-legacy-thread-id')