> ## Documentation Index
> Fetch the complete documentation index at: https://www.anything.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# UPC Database

> Access product information through UPC barcodes

UPC Database API allows you to retrieve detailed product information using UPC/EAN barcodes, enabling you to build product lookup and inventory management applications.

## Overview

<CardGroup cols={2}>
  <Card title="Create Account" icon="user">
    Sign up for a UPC Database account
  </Card>

  <Card title="Get API Key" icon="key">
    Generate your UPC Database API key
  </Card>

  <Card title="Copy into Anything" icon="plug">
    Add your API key to Anything's secrets
  </Card>
</CardGroup>

## Account Creation

<Steps>
  <Step title="Visit UPC Database Website">
    Go to [upcdatabase.org](https://upcdatabase.org/) and click "Sign Up"

    <img src="https://mintcdn.com/create/gRjeYBLWcrADikTp/images/upcdb/homepage.png?fit=max&auto=format&n=gRjeYBLWcrADikTp&q=85&s=c40f753c4239cb8f54856e0604df90f4" style={{ borderRadius: '0.5rem', width: '624px', height: '303px' }} width="2294" height="1052" data-path="images/upcdb/homepage.png" />
  </Step>

  <Step title="Register for an Account">
    * Fill in your email and password
    * Complete the verification process
    * Select your subscription plan
  </Step>
</Steps>

## Generate API Key

<Steps>
  <Step title="Access Your Dashboard">
    1. Log in to your UPC Database account
    2. Navigate to the "API Keys" section
  </Step>

  <Step title="Create API Key">
    1. Click "New Token"
    2. Name your key (e.g., "Anything Integration")

    <img src="https://mintcdn.com/create/gRjeYBLWcrADikTp/images/upcdb/apigen.png?fit=max&auto=format&n=gRjeYBLWcrADikTp&q=85&s=dcfe83308bf129f9801674c3ed2bdbff" style={{ borderRadius: '0.5rem' }} width="2222" height="1064" data-path="images/upcdb/apigen.png" />
  </Step>

  <Step title="Copy Your API Key">
    1. Copy the generated API key

    <Warning>
      Keep your API key secure - it grants access to your UPC Database account and quota
    </Warning>
  </Step>
</Steps>

## Add to Anything project

<Steps>
  <Step title="Add the integration">
    1. In your Anything project, type `/` in the chat
    2. Select "UPC Database" from the menu
  </Step>

  <Step title="Add your API key">
    1. Paste your API key into the "UPCDB\_API\_KEY" field

    <Tip>
      Need a new key? Generate one in your UPC Database dashboard.
    </Tip>
  </Step>

  <Step title="Use it">
    You can now use prompts with the integration to access product information.

    Some examples:

    * `Look up product details by UPC using /UPCDatabase`
    * `Create an inventory management system with /UPCDatabase`
    * `Build a product scanner app using /UPCDatabase`

    <Warning>
      The API limits how often your app can fetch data. If your app loads the same data often, ask the agent to save it locally so it doesn't re-fetch every time.
    </Warning>

    Example prompt for optimization:

    ```
    When using /UPCDatabase, save the product data so my app doesn't have to fetch it again
    ```
  </Step>
</Steps>

<Tip>
  Your UPC Database integration is now ready! Use the `/UPCDatabase` command in chat to access product information.
</Tip>
