> For the complete documentation index, see [llms.txt](https://docs.mercury-dynamics.co.uk/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.mercury-dynamics.co.uk/bot-commands/tesco-query-command-tesco.md).

# Tesco Query Command (/tesco)

The Tesco query command provides stock information, regarding specific products in designated areas.

## Usage

### Finding a Tesco product number

Firstly, find the product you want to query on the Tesco website, below is an example.

<figure><img src="/files/fE1WXk7wllKfC8bsfbpu" alt=""><figcaption><p>Example Tesco product</p></figcaption></figure>

<figure><img src="/files/YTcntmYk5S8YUavWnlv4" alt=""><figcaption><p>Tesco product URL</p></figcaption></figure>

Now, looking in the URL, you can find the [Tesco Product Number (TPN)](https://edwardcallow.co.uk/tesco-jargon/t.html#tesco-product-number-tpn). In this example, that is **308103753**.

### Running the /tesco command

Now in the Discord server running Mercury Dynamics bot, type the following command:

<figure><img src="/files/yR00KpJoaPetwN0c06a4" alt=""><figcaption><p>Example Tesco command</p></figcaption></figure>

The parameters of this command are below:

* storetype - This defines what kind of store you want to search in (autocompleted)
* postcode - This is the postcode you want to base your search around
* identifier - This is the TPN
* public - This defines whether your command/results are seen by only yourself, or others
* radius - This is how far from the defined postcode the bot should search (autocomplete)

If done correctly, you should receive a result like so:

<div align="left"><figure><img src="/files/CnfRxajY4bijIH5cPwZX" alt=""><figcaption><p>Example Tesco results</p></figcaption></figure></div>
