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

# Best Buy Products API

> Best Buy products with title, brand, model, UPC, URL and price. Search by keyword or pass product URLs.

`POST /v1/data/bestbuy/products/run`

**Pricing:** $0.004 per product ($4.00 per 1,000).

## Ways to call it

* **Search Query**: set `searchQuery` (optional: `maxResults`, `sortBy`, `minPrice`, `maxPrice`)
* **URLs**: set `urls` (optional: `maxResults`)

## Request

Send the inputs under `params`. Only the keys below are accepted; any other key returns `422 invalid_params`.

**searchQuery** `string`

Keyword to search Best Buy for, e.g. 'airpods pro'. Results come back in Best Buy's own ranking.

**urls** `string[]`

Best Buy product page URLs, e.g. [https://www.bestbuy.com/site/-/6505729.p](https://www.bestbuy.com/site/-/6505729.p). One or more.

**maxResults** `integer` (default: 100)

How many products to return in total. Defaults to 100; use 0 for all.

**sortBy** `string` (default: Best-Match)

Order of the results. Best match (Best Buy's default) if left blank.

Allowed values: `Best-Match` (Best match (Best Buy default)), `Best-Selling` (Best selling), `Best-Discount` (Best discount), `Price-Low-To-High` (Price: low to high), `Price-High-To-Low` (Price: high to low), `Customer-Rating` (Customer rating), `New-Arrivals` (New arrivals).

**minPrice** `integer`

Only products priced at or above this, in whole US dollars, e.g. 100.

Min `0`.

**maxPrice** `integer`

Only products priced at or below this, in whole US dollars, e.g. 500.

Min `0`.

## Example

```bash cURL theme={null}
curl -X POST "https://api.mindcase.co/v1/data/bestbuy/products/run?wait=true" \
  -H "Authorization: Bearer $MINDCASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "params": {
    "searchQuery": "airpods pro 3"
  }
}'
```

```python Python theme={null}
import os, requests

r = requests.post(
    "https://api.mindcase.co/v1/data/bestbuy/products/run",
    params={"wait": "true"},
    headers={"Authorization": f"Bearer {os.environ['MINDCASE_API_KEY']}"},
    json={"params": {
    "searchQuery": "airpods pro 3"
}},
)
job = r.json()
rows = job.get("data", [])  # if job["status"] == "running", poll /v1/jobs/{job_id}/results
```

```javascript Node.js theme={null}
const r = await fetch("https://api.mindcase.co/v1/data/bestbuy/products/run?wait=true", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.MINDCASE_API_KEY}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({ params: {
  "searchQuery": "airpods pro 3"
} }),
});
const job = await r.json();
const rows = job.data ?? []; // if job.status === "running", poll /v1/jobs/{job_id}/results
```

## Response fields

Each row in `data` is one product, keyed by these fields.

| Field | Name | Type |
| - | - | - |
| `sku` | SKU | text |
| `title` | Title | text |
| `brand` | Brand | text |
| `model` | Model | text |
| `upc` | Upc | text |
| `productUrl` | Product URL | url |
| `price` | Price | number |
| `currency` | Currency | text |
| `listPrice` | List Price | number |
| `savings` | Savings | number |
| `savingsPercent` | Savings Percent | number |
| `onSale` | On Sale | boolean |
| `condition` | Condition | text |
| `availability` | Availability | text |
| `inStock` | In Stock | boolean |
| `rating` | Rating | rating |
| `reviewCount` | Review Count | number |
| `searchRank` | Search Rank | number |
| `isSponsored` | Is Sponsored | boolean |
| `sellerType` | Seller Type | text |
| `soldByBestBuy` | Sold By Best Buy | boolean |
| `openBoxLowestPrice` | Open Box Lowest Price | number |
| `openBoxOffers` | Open Box Offers | object\_array |
| `financeMonthly` | Finance Monthly | number |
| `financeMonths` | Finance Months | number |
| `isNewArrival` | Is New Arrival | boolean |
| `badges` | Badges | array |
| `categoryPath` | Category Path | array |
| `mainImage` | Main Image | image |
| `images` | Images | array |
| `description` | Description | text |
| `highlights` | Highlights | array |
| `specifications` | Specifications | object |
| `dimensions` | Dimensions | object |

## Example response

Abridged: long text and lists are shortened.

```json theme={null}
{
  "job_id": "7f3a1c2e-0b9d-4c55-9a51-3f2e8d1b6a40",
  "agent": "bestbuy/products",
  "status": "completed",
  "row_count": 1,
  "truncated": false,
  "data": [
    {
      "rating": 4.8,
      "savingsPercent": 0,
      "savings": 0,
      "reviewCount": 11943,
      "images": [
        "https://pisces.bbystatic.com/image2/BestBuy_US/images/products/c3abe0d2-3129-4e47-8904-aadaf47eb4af.jpg"
      ],
      "financeMonths": null,
      "badges": [],
      "condition": "new",
      "sellerType": "1P",
      "dimensions": {
        "height": "1.22 inches",
        "width": "0.76 inches",
        "weight": "0.2 pounds"
      },
      "availability": "ADD_TO_CART",
      "brand": "Apple",
      "mainImage": "https://pisces.bbystatic.com/image2/BestBuy_US/images/products/c3abe0d2-3129-4e47-8904-aadaf47eb4af.jpg",
      "model": "MFHP4LL/A",
      "inStock": true,
      "soldByBestBuy": true,
      "isNewArrival": false,
      "description": "AirPods Pro 3. Up to 2x more Active Noise Cancellation than AirPods Pro 2. Now with heart rate sensing, Live Translation, longer battery life, and advancemen...",
      "openBoxOffers": [
        {
          "condition": "Fair",
          "price": 211.99,
          "savings": 38
        },
        {
          "condition": "Good",
          "price": 219.99,
          "savings": 30
        }
      ],
      "financeMonthly": null,
      "onSale": false,
      "highlights": [
        "WORLD’S BEST IN-EAR ACTIVE NOISE CANCELLATION—Reduces up to 2x more unwanted noise than AirPods Pro 2 so you can stay fully immersed in the moment.&#185;",
        "BREAKTHROUGH AUDIO PERFORMANCE—Experience breathtaking, three-dimensional audio with AirPods Pro 3. A new acoustic architecture delivers transformed bass, de..."
      ],
      "specifications": {
        "Noise Cancelling (Active)": "true",
        "Connection Type": "Wireless",
        "Wireless Connectivity": "Bluetooth",
        "True Wireless": "true",
        "Water Resistant": "true",
        "Built-In Microphone": "true",
        "Carrying Case": "true",
        "Headphone Fit": "In-Ear",
        "Battery Life": "8 hours",
        "Works With": "Apple Home",
        "Ear Tip Sizes Included": "Extra small, Small, Medium, Large",
        "Brand": "Apple",
        "Model Number": "MFHP4LL/A",
        "Product Name": "AirPods Pro 3, Wireless Active Noise Cancelling Earbuds with Heart Rate Sensing Feature",
        "Color": "White",
        "Ear Cushions": "false",
        "Series": "Airpods Pro 3",
        "Sound Isolating": "true",
        "Environmental Noise Control": "true",
        "Bluetooth Version": "5.3",
        "Controls": "Call, Mute, Track selection, Voice assistant, Volume",
        "Body Metrics Measured": "Heart rate",
        "Bone Conducting Technology": "false",
        "AI Translation": "Language translation",
        "Style": "General use"
      },
      "searchRank": 1,
      "isSponsored": false
    }
  ]
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.