---
name: legacy-search-api
description: "Legacy Search API skill. Use when working with Legacy Search for api, buscaautocomplete. Covers 15 endpoints."
version: 1.0.0
generator: lapsh
---

# Legacy Search API
API version: 1.0

## Auth
ApiKey X-VTEX-API-AppKey in header | ApiKey X-VTEX-API-AppToken in header | ApiKey VtexIdclientAutCookie in header

## Base URL
https://apiexamples.vtexcommercestable.com.br

## Setup
1. Set your API key in the appropriate header
2. GET /api/catalog_system/pub/products/search -- verify access

## Endpoints

15 endpoints across 2 groups. See references/api-spec.lap for full details.

### api
| Method | Path | Description |
|--------|------|-------------|
| GET | /api/catalog_system/pub/products/crossselling/whosawalsosaw/{productId} | Get product search of who saw also saw |
| GET | /api/catalog_system/pub/products/crossselling/whosawalsobought/{productId} | Get product search of who saw also bought |
| GET | /api/catalog_system/pub/products/crossselling/whoboughtalsobought/{productId} | Get product search of who bought also bought |
| GET | /api/catalog_system/pub/products/crossselling/showtogether/{productId} | Get product search of show together |
| GET | /api/catalog_system/pub/products/crossselling/accessories/{productId} | Get product search of accessories |
| GET | /api/catalog_system/pub/products/crossselling/similars/{productId} | Get product search of similars |
| GET | /api/catalog_system/pub/products/crossselling/suggestions/{productId} | Get product search of suggestions |
| GET | /api/catalog_system/pub/products/search/{search} | Search for products |
| GET | /api/catalog_system/pub/products/search | Search for products with filter, order and pagination |
| GET | /api/catalog_system/pub/products/search/{product-text-link}/p | Search product by product URL |
| GET | /api/catalog_system/pub/products/offers/{productId} | Search product offers |
| GET | /api/catalog_system/pub/products/offers/{productId}/sku/{skuId} | Search SKU offers |
| GET | /api/catalog_system/pub/facets/category/{categoryId} | Get category facets |
| GET | /api/catalog_system/pub/facets/search/{term} | Search by store facets |

### buscaautocomplete
| Method | Path | Description |
|--------|------|-------------|
| GET | /buscaautocomplete | Product search autocomplete |

## Common Questions

Match user requests to endpoints in references/api-spec.lap. Key patterns:
- "Get whosawalsosaw details?" -> GET /api/catalog_system/pub/products/crossselling/whosawalsosaw/{productId}
- "Get whosawalsobought details?" -> GET /api/catalog_system/pub/products/crossselling/whosawalsobought/{productId}
- "Get whoboughtalsobought details?" -> GET /api/catalog_system/pub/products/crossselling/whoboughtalsobought/{productId}
- "Get showtogether details?" -> GET /api/catalog_system/pub/products/crossselling/showtogether/{productId}
- "Get accessory details?" -> GET /api/catalog_system/pub/products/crossselling/accessories/{productId}
- "Get similar details?" -> GET /api/catalog_system/pub/products/crossselling/similars/{productId}
- "Get suggestion details?" -> GET /api/catalog_system/pub/products/crossselling/suggestions/{productId}
- "Search search?" -> GET /api/catalog_system/pub/products/search/{search}
- "List all search?" -> GET /api/catalog_system/pub/products/search
- "List all p?" -> GET /api/catalog_system/pub/products/search/{product-text-link}/p
- "Get offer details?" -> GET /api/catalog_system/pub/products/offers/{productId}
- "Get sku details?" -> GET /api/catalog_system/pub/products/offers/{productId}/sku/{skuId}
- "Get category details?" -> GET /api/catalog_system/pub/facets/category/{categoryId}
- "Get search details?" -> GET /api/catalog_system/pub/facets/search/{term}
- "List all buscaautocomplete?" -> GET /buscaautocomplete
- "How to authenticate?" -> See Auth section

## Response Tips
- Check response schemas in references/api-spec.lap for field details

## CLI

```bash
# Update this spec to the latest version
npx @lap-platform/lapsh get legacy-search-api -o references/api-spec.lap

# Search for related APIs
npx @lap-platform/lapsh search legacy-search-api
```

## References
- Full spec: See references/api-spec.lap for complete endpoint details, parameter tables, and response schemas

> Generated from the official API spec by [LAP](https://lap.sh)
