102

How can I find out what the chrome extension id is for an extension?

6 Answers 6

153

Use the chrome.runtime.id property from the chrome.runtime API.

Sign up to request clarification or add additional context in comments.

5 Comments

chrome.runtime.id is available to extensions, apps and legacy packaged apps.
Does chrome.runtime.id work from webpages? I can't make it work.
Before your chrome app is in the web store, can you use this to get its ID for development purposes (with the identity API)?
@DiodeDan you should just upload the app now and not publish it yet. You can read about setting the ID for your dev version.
Just to remind: This couldn't be used in page console, but should be used in extension's inspect view console. To do that, navigate to chrome://extensions, check Developer mode, and click Inspect views link.
64

You get an extension ID when you upload your extension to Google Web Store. Ie. Adblock has URL https://chrome.google.com/webstore/detail/cfhdojbkjhnklbpkdaibdccddilifddb and the last part of this URL is its extension ID cfhdojbkjhnklbpkdaibdccddilifddb.


If you wish to read installed extension IDs from your extension, check out the managment module. chrome.management.getAll allows to fetch information about all installed extensions.

4 Comments

thanks perfect, what i was looking for, one of my extensions is randomly popuping up Rubicon ads after my <body> tags in random pages i'm developing on! surprise when i saw them... UPDATE: culprit "Skype Click to Call"
I was having errors in my console and I was able to find extension but didn't know what it was. Thank you for this tip I just googled, in this case jllpkdkcdjndhggodimiphkghogcpida and it became clear which extension was messing me up. EDIT.. Oh wait, I just realize that all of the corresponding IDs are actually on the extensions page within the browser. doi.
Worth noting for LastPass (and others, just an example) that with the URL https://chrome.google.com/webstore/detail/lastpass-free-password-ma/hdokiejnpimakedhajhdlcegeplioahd that hdokiejnpimakedhajhdlcegeplioahd is the ID and not lastpass-free-password-ma
@Konrad Dzwinel My extension has not been uploaded to Chrome store, as I use it personally. I loaded it through the Developer Mode option, and yet, it still has an ID. How does the browser decide this ID and if I share this extension with a colleague for ex. will he have a different ID when he loads it using developer mode? Or the same ID?
35

If you just need to do it one-off, navigate to chrome://extensions. Enable Developer Mode at upper right. The ID will be shown in the box for each extension.

Or, if you're working on developing a userscript or extension, purposefully throw an error. Look in the javascript console, and the ID will be there, on the right side of the console, in the line describing the error.

Lastly, you can look in your chrome extensions directory; it stores extensions in directories named by the ID. This is the worst choice, as you'd have extension IDs, and have to read each manifest.json to figure out which ID was the right one. But if you just installed something, you can also just sort by creation date, and the newest extension directory will be the ID you want.

2 Comments

Perfect! This is the answer.
This answer should be marked as the solution, IMO.
8

All extension ID are listed here:

chrome://system

List

Comments

6

As Alex Gray points out in a comment above, "all of the corresponding IDs are actually on the extensions page within the browser".

However, you must click the Developer Mode checkbox at top of Extensions page to see them.

Comments

4

Extension IDs can be found in:

chrome://extensions (Chrome_Hotdog >> More_tools >> Extensions) Developer mode.

For Linux: $HOME/.config/google-chrome/Default/Preferences (json file) under ["extensions"].

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.