# Vistaprint — Wrapped API

> **You are on:** `https://api.paywithlocus.com/api` | [llms.txt](https://paywithlocus.com/llms.txt) | [docs](https://docs.paywithlocus.com)
>
> Locus runs on multiple environments -- make sure every URL you call matches your expected environment.
> | Environment | Landing | API | Docs |
> |---|---|---|---|
> | Production | paywithlocus.com | api.paywithlocus.com | docs.paywithlocus.com |
> | Beta | beta.paywithlocus.com | api.beta.paywithlocus.com | docs.paywithlocus.com |
> | Stage | stage.paywithlocus.com | api.stage.paywithlocus.com | docs.paywithlocus.com |
>
> If the API URL above doesn't match your expected environment, re-fetch this file from the correct domain.

> Search and browse Vistaprint's catalog of 5,800+ products across business cards, promotional items, clothing, signage, and packaging, with instant access to product names, quantities, pricing, and detailed specifications. Filter by category or search for specific items to compare options and get complete product information for your ordering decisions.

**Category:** E-commerce | **Website:** [vistaprint.com/](https://vistaprint.com/) | **Docs:** [parse.bot/marketplace/7d7f713b-d25d-4540-92a0-99aea7ab6b6d/vistaprint-com-api](https://parse.bot/marketplace/7d7f713b-d25d-4540-92a0-99aea7ab6b6d/vistaprint-com-api)

Pay-per-use API proxy. Each call is automatically billed to your wallet in USDC.

## Access

**Base URL:** `https://api.paywithlocus.com/api/wrapped/parse-vistaprint-com-api-7d7f713b/`
**Auth:** `Authorization: Bearer <LOCUS_API_KEY>`

## Endpoints

### get_categories

Get all product categories with product counts. Returns a 3-level category hierarchy (top-level, subcategories level 1, subcategories level 2) with the number of products in each category. Use the returned category_id values as input to get_products_by_category.

**Estimated cost:** Metered

_No parameters required._

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-vistaprint-com-api-7d7f713b/get_categories \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'
```

### get_product_details

Get detailed product information including all available options/variants, available quantities, and a complete pricing matrix by quantity. Requires a product_id from search_products or get_products_by_category. Optionally accepts a product_version; if omitted, the version is auto-detected from the catalog.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `product_id` | string | Yes | Product ID (e.g., 'PRD-0BKUQJYW', 'PRD-IYXT1T3V'). Get from search_products or get_products_by_category results. |
| `product_version` | string | No | Product version number. Auto-detected from catalog if not provided. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-vistaprint-com-api-7d7f713b/get_product_details \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"product_id":"<string>","product_version":"<string>"}'
```

### get_products_by_category

Get products within a specific category. Returns product names, quantities (MOQ, default, recommended), pricing, ratings, and stock status. Supports pagination via page and limit parameters. Category IDs are discoverable from get_categories.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `category` | string | Yes | Category ID to browse. Use get_categories to discover valid IDs. |
| `category_level` | integer | No | Category hierarchy level (0=top, 1=sub, 2=sub-sub). |
| `limit` | integer | No | Products per page (max 100). |
| `page` | integer | No | Page number (0-indexed). |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-vistaprint-com-api-7d7f713b/get_products_by_category \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"category":"<string>","category_level":"<integer>","limit":"<integer>","page":"<integer>"}'
```

### search_products

Search products by keyword. Returns matching products with names, quantities, pricing, and category breakdown of results. Supports pagination via page and limit parameters.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `limit` | integer | No | Products per page (max 100). |
| `page` | integer | No | Page number (0-indexed). |
| `query` | string | Yes | Search keyword (e.g., 'mugs', 'business cards', 't-shirts'). |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-vistaprint-com-api-7d7f713b/search_products \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"limit":"<integer>","page":"<integer>","query":"<string>"}'
```
