How to Find the 04t Package ID for Any AppExchange Listing

TL;DR - Either step through the "Try It" install flow until the 04t ID appears in the Salesforce login URL, or replace appxListingDetail?listingId= with services/apexrest/v2/listings/ in the AppExchange URL to get the full listing metadata as XML.


The 04t ID is the Salesforce record ID for a specific package version. You need it to install a managed package via URL, script an unmanaged installation, or reference the exact version in a dependency. AppExchange doesn't display it on the listing page, but it's not hard to find.

Method 1: The long install flow

Step 1: Open the listing and click "Try It"

Go to the AppExchange listing and click Try It (not "Get It Now" - that flow asks you to log in first and hides the URL).

AppExchange listing for Org Check with the Try It button highlighted

Step 2: Choose a trial type

Select Try in your sandbox (or whichever environment suits you) and click Continue to Installation.

Start Your Trial page with Continue to Installation button highlighted

Step 3: Confirm the package details

AppExchange shows a confirmation page with the package name and version. Click Log In & Install.

All set page showing package details with Log In & Install button highlighted

Step 4: Read the 04t ID from the URL

Salesforce redirects to a login page for your org. Before you even log in, the install URL in the address bar already contains the package ID:

https://test.salesforce.com/install/installPackage.apexp?p0=04t...

The value of the p0 parameter is the 04t ID you're looking for.

Salesforce login page showing the install URL with the 04t ID in the address bar


Method 2: The URL hack

Apply the following URL hack on the AppExchange listing URL and hit Enter:

Replace appxListingDetail?listingId= with services/apexrest/v2/listings/.

-https://appexchange.salesforce.com/appxListingDetail?listingId=a0N4V00000HA0X2UAL
+https://appexchange.salesforce.com/services/apexrest/v2/listings/a0N4V00000HA0X2UAL

AppExchange listing URL in the browser address bar

The browser returns the full listing metadata JSON in a XML response - including the packageId field, which is the 04t ID.

Browser showing raw XML response from the AppExchange listings API