Using ads-js with vtex.local

TypeScript integration

✓ Official SDK
Install
npm install ads-js
Quick start
import Ads_js from 'ads-js';

const client = new Ads_js({ apiKey: "YOUR_API_KEY" });
Product Search Autocomplete
curl \
  -H "X-VTEX-API-AppKey: $API_KEY" \
  https://vtex.local/buscaautocomplete
Search for Products with Filter, Order and Pagination
curl \
  -H "X-VTEX-API-AppKey: $API_KEY" \
  https://vtex.local/api/catalog_system/pub/products/search
Search by Store Facets
curl \
  -H "X-VTEX-API-AppKey: $API_KEY" \
  https://vtex.local/api/catalog_system/pub/facets/search/{term}
SDK on GitHub 📄 API Docs
SDK
ads-js
TypeScript
API
vtex.local
vtex.local:Search-API
At a glance
Language TypeScript
Endpoints15
Base URLhttps://vtex.local
✓ Official