# Amazon Query Command (/query)

This command allows you to query an Amazon product, using its [Amazon Standard Identification Number (ASIN)](https://gepard.io/ecommerce-strategy/what-is-asin-in-amazon). The command provides you with an array of data in regard to the product, its sales, ratings, and more.

## Usage

### Locating the ASIN of an Amazon product

Firstly, find a product you want to query on Amazon.

<figure><img src="https://1818776014-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2isSajtVK1Gg2XPq7dYN%2Fuploads%2F8mZCjOXgjKbMFXnQX6Ax%2Fimage.png?alt=media&#x26;token=f312e82d-9069-4ec9-996a-d580cec8cc21" alt="Example Amazon product"><figcaption><p>Example Amazon product</p></figcaption></figure>

You will notice in the URL of the page, there is a special identifier, this is the ASIN. They usually have the same format.

<figure><img src="https://1818776014-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2isSajtVK1Gg2XPq7dYN%2Fuploads%2FFSb6G8pLXYXPn6m70gXd%2Fimage.png?alt=media&#x26;token=c94dce06-7054-4683-9be7-83271de9fa80" alt=""><figcaption><p>Amazon URL containing ASIN</p></figcaption></figure>

In this example, the ASIN is **B07NL27TCK**.

### Running the /query command

Now on the Discord server running the Mercury Dynamics bot, begin typing the command like so:

<figure><img src="https://1818776014-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2isSajtVK1Gg2XPq7dYN%2Fuploads%2F9EQuiIeJnYdsSF5khZJp%2Fimage.png?alt=media&#x26;token=efa94aae-c1b3-429a-8d4a-cc32d6df82e6" alt=""><figcaption><p>Query command populated for the example</p></figcaption></figure>

#### **You may also query an Amazon product using its barcode**

It is also important to note that you can use the query command to locate products based on their barcode. Below is an example of this:

<figure><img src="https://1818776014-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2isSajtVK1Gg2XPq7dYN%2Fuploads%2FHOe7PokoxbnnNOsggmAg%2Fimage.png?alt=media&#x26;token=fc739908-e153-4ebc-a14c-b72b01cbc57f" alt=""><figcaption><p>Example product query using a barcode</p></figcaption></figure>

There are three parameters for this command:

* Extension - This is the corresponding Amazon country that will be queried for the product (remember ASINs in different regions won't always be the same)
* Identifier - This is the product ASIN or Barcode
* Public - This defines whether your results will be posted for everyone to see, or just for yourself

If ran correctly, you should receive a result like below.

<div align="left"><figure><img src="https://1818776014-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2isSajtVK1Gg2XPq7dYN%2Fuploads%2FULmSSwv9ItZKepRN8r0z%2Fimage.png?alt=media&#x26;token=1860bb07-8326-48f4-967a-ac8a4f3ad8b8" alt=""><figcaption><p>Example /query results</p></figcaption></figure></div>
