# Vitacost Products by Category API

> Products by Category on Vitacost, as its pages list them.

- Page: https://cleanedweb.com/catalog/vitacost-products-by-category-api/
- Contract (JSON): https://cleanedweb.com/catalog/vitacost-products-by-category-api/contract.json
- Source: vitacost.com (https://www.vitacost.com/)
- Category: Commerce
- Updated: 2026-12-03

A run reads until the source ends or your `max_items`, `timeout_seconds` or budget stops it.

## Key fields

| Field | Type | Sample value |
| --- | --- | --- |
| `title` | string | `Bob's Red Mill, Baking Soda, 16 oz (454 g)` |
| `url` | string | `https://www.vitacost.com/products/bob-s-red-mill-baking-soda-16-oz-454-g-89505` |
| `product.category` | string | not in the saved sample |
| `review.title` | string | not in the saved sample |
| `product.name` | string | not in the saved sample |
| `reviewer.name` | string | not in the saved sample |
| `price.currency` | string | not in the saved sample |
| `product.description` | string | not in the saved sample |

Sample values come from one saved record, not a live run. Every field with its type, and the schemas, are in https://cleanedweb.com/catalog/vitacost-products-by-category-api/contract.json

## Inputs

- `search` (string \| array of string): Optional. Text for the site's search box. Leave it out to read everything.
- `category` (string, required): Free text: any category the site serves, written with letters, digits, underscores, hyphens and dots, up to 128 characters. A name the site does not serve is refused. For example: holiday-shop (Holiday Shop), bee-products (Bee Products), omegas-fish-oils-epa-dha (Omegas & Fish Oils (EPA DHA)), vitamins (Vitamins), bone-joint-cartilage (Bone, Joint & Cartilage), minerals (Minerals), gut-health (Gut Health), herbs (Herbs), and 121 more in https://cleanedweb.com/catalog/vitacost-products-by-category-api/contract.json. Pattern: `^[A-Za-z_0-9][A-Za-z_\-\.0-9]{0,127}$`.
- `from_url` (string): Optional. A results link copied from the site (its own address bar): a category page, a search or a filtered list. It is read as this API's own inputs and the run echoes them as \`decoded\`. Tracking and paging keys are dropped. A link from another site, or one that names a page or filter this API has no input for, is refused with the unread parts listed; it is never served from another page.
- `availability` (string \| number): Optional. Filters by availability. Options: In stock (1), Out of stock (0).
- `vendor` (string): Optional. Filters by vendor. Options: Advanced Clinicals, Annie's Homegrown, Arrowhead Mills, Badger, Bergin Fruit and Nut Company, Bob's Red Mill, Bonne Maman, Boulder Canyon, and 67 more in https://cleanedweb.com/catalog/vitacost-products-by-category-api/contract.json.
- `filter_p_m_l2category_l2category` (string): Optional. Filters the results. Options: Baby & Kids Bath, Skin & Hair, Baby & Kids Toys, Baking, Flour & Mixes, Bath & Shower, Beauty Face Masks, Body Care, Chocolate & Candy, Condiments, Sauces & Spreads, and 16 more in https://cleanedweb.com/catalog/vitacost-products-by-category-api/contract.json.
- `onsale` (string): Optional. Filters by onsale. Options: Full Price, On Sale.
- `clearance` (string): Optional. Filters by clearance. Options: Clearance, Full Price.
- `packagequantity` (string): Optional. Filters by packagequantity. Options: 360+ count, 200+ g, 200+ ml, 20+ oz, 1 - 29 count, 30 - 59 count, 60 - 89 count, 240 - 359 count, and 15 more in https://cleanedweb.com/catalog/vitacost-products-by-category-api/contract.json.
- `certificationanddiet` (string): Optional. Filters by certificationanddiet. Options: Alcohol-free, All-natural, Antibiotic-free, B-corp, Bpa-free, Casein-free, Certificate of analysis, Cholesterol-free, and 40 more in https://cleanedweb.com/catalog/vitacost-products-by-category-api/contract.json.
- `form` (string): Optional. Filters by form. Options: Bags, Balm, Dried, Granulated, Gummy, Liquid, Packet, Powder, and 7 more in https://cleanedweb.com/catalog/vitacost-products-by-category-api/contract.json.
- `gender` (boolean): Filter toggle (Neutral): true sends
- `flavor` (string): Optional. Filters by flavor. Options: Apple, Berry, Black, Cacao, Cheddar, Cheese, Cheesy, Cherry, and 30 more in https://cleanedweb.com/catalog/vitacost-products-by-category-api/contract.json.
- `price_gte` (string \| integer): Optional. Lowest value of the site's own Omit it to leave this side open.
- `price_lte` (string \| integer): Optional. Highest value of the site's own Omit it to leave this side open.
- `sort` (string): Order of the collection, as the site's own sort control offers it; omitted keeps the site's default order. Options: Best selling (best-selling), Relevance (relevance), Price: Low to high (price-ascending), Newest (created-descending), Top Rated (number-extra-sort1-descending).

`enrich_records` is on by default and adds the fields that only appear on each record's detail page. Send `false` to read list fields only. See https://cleanedweb.com/docs/run-api/

## Request

`POST https://api.cleanedweb.com/v1/catalog/public/apis/generated_a589305f4731e3b6bef0f76c/endpoints/generated_a589305f4731e3b6bef0f76c_search/run`

```bash
curl -X POST https://api.cleanedweb.com/v1/catalog/public/apis/generated_a589305f4731e3b6bef0f76c/endpoints/generated_a589305f4731e3b6bef0f76c_search/run \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Idempotency-Key: UNIQUE_REQUEST_ID" \
  -H "Content-Type: application/json" \
  -d '{
  "input": {
    "category": "holiday-shop",
    "onsale": "Full Price"
  },
  "version": 1,
  "max_items": 25
}'
```

Send an `Idempotency-Key` header with every run and save it before you send. Reuse it only to retry the same request. If the run does not end within `wait_seconds`, read the result with the same API key and key:

`GET https://api.cleanedweb.com/v1/catalog/public/apis/generated_a589305f4731e3b6bef0f76c/endpoints/generated_a589305f4731e3b6bef0f76c_search/result`

## Versions

Current: `1.0`. Pin a major with "version": N in the run body (an integer). Leave it out and the call runs on the latest major. A sunset major runs on the latest major and the response says rerouted. An unknown major answers 404 catalog_version_not_found and lists the available majors.

- v1: current, newest minor `1.0`

### Changelog

- `1.0` (major) 2026-12-02

The same changelog, as data, is in https://cleanedweb.com/catalog/vitacost-products-by-category-api/contract.json

## Use it from an AI agent

MCP server: https://api.cleanedweb.com/mcp?profile=catalog (Streamable HTTP). Sign in with a CleanedWeb account when the client asks (OAuth), or send an API key with the `read` and `run` scopes as `Authorization: Bearer`. Call `get_api` with `api_id` `generated_a589305f4731e3b6bef0f76c`, then `run_api` with the `run_with` arguments it returns. See https://cleanedweb.com/docs/mcp/

## Run it

Reading the catalog needs no credential. Running needs a CleanedWeb account and an API key with the `run` scope; the first 5,000 records are free, then $1 per 1,000 records. See https://cleanedweb.com/docs/run-catalog-api/

CleanedWeb is not affiliated with Vitacost.
