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" });
Get list of the 10 most searched terms
curl \
  https://vtex.local/top_searches
Get list of the possible facets for a given query
curl \
  https://vtex.local/facets/{facets}
Get list of banners registered for query
curl \
  https://vtex.local/banners/{facets}
SDK on GitHub 📄 API Docs
SDK
ads-js
TypeScript
API
vtex.local
vtex.local:Intelligent-Search-API
At a glance
Language TypeScript
Endpoints7
Base URLhttps://vtex.local
✓ Official