# How to Find Your Shopify Product and Variant IDs for Bulk Digital Product Creation

To use our bulk digital product creation feature in Big Digital Download, you’ll need the **Shopify product ID** and **variant ID** for each item you want to link. Below are two simple methods to gather these IDs quickly.

### Method 1: Extract IDs from Your Sitemap with ChatGPT

1. In your browser, navigate to

   ```
   https://[your–shop-domain]/sitemap.xml
   ```
2. Locate the `<loc>` entries under `/products/`. Each URL follows the pattern

   ```
   https://[your–shop-domain]/products/[product-handle]?variant=[variant-id]
   ```
3. Copy the entire products section of your sitemap.xml.
4. Open ChatGPT and use this prompt to pull out only the product name, product ID, variant ID, and variant name:

   ```
   Extract a list of items from the following XML.  
   For each product, provide:  
   - Product Name  
   - Product ID  
   - Variant ID  
   - Variant Name  
   Here is the XML:  
   [paste your products section of sitemap.xml here]
   ```
5. Review ChatGPT’s output and export it into your CSV or spreadsheet for your bulk upload.

### Method 2: Export IDs Using a Shopify App

1. From your Shopify admin, go to **Apps** > **Visit Shopify App Store**.
2. Search for **Product Data Exporter** and install the app (it offers a free plan and trial).
3. Open Product Data Exporter and run a **Product Export**.
4. In the export settings, include **Product ID**, **Variant ID**, **Product title** and **Variant Title**.
5. Download the CSV file and use those columns in your bulk digital product import.

By following either of these methods, you’ll have all the product and variant IDs you need to link your existing Shopify products to new digital downloads in bulk.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://penida.gitbook.io/big-digital-download/most-asked-questions/how-to-find-your-shopify-product-and-variant-ids-for-bulk-digital-product-creation.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
