scavio
v0.117.0
Published
TypeScript SDK for the Scavio API — real-time structured web data across 204 platforms on one API key: Google SERP, ChatGPT, Gemini, Amazon, Walmart, Costco, Best Buy, TCGplayer, Nintendo eShop, H&M, Zara, Uniqlo, ASOS, Fashion Nova, Argos, Media Expert,
Maintainers
Keywords
Readme
Scavio
TypeScript SDK for the Scavio API — real-time structured web
data across 204 platforms on one API key, plus extract() to read
any URL as clean Markdown, and extract.map() / extract.crawl() /
extract.batch() to map, crawl and batch-extract whole websites.
Structured JSON in, structured JSON out. No per-site parsers to maintain.
- Search and SERP — Google (organic, news, maps, shopping, flights, hotels, trends, AI Mode)
- AI assistants — ChatGPT and Gemini answers with the sources they cite and the products they recommend
- E-commerce — Amazon, Walmart, Costco, Lowe's, Sam's Club, BJ's Wholesale Club (US, coupons and the club directory), Canadian Tire, SportChek and Mark's (Canada, prices with the was price and sale end date, units at the assigned store; Mark's also in French via L'Equipeur), RONA (Canada, store prices for up to 60 articles at one store with exact units, stores, stock near a store), Dollar General, Dollar Tree (US case prices next to unit prices, units at a store and its nearby stores), Discount Tire (US tire prices by store, tires that fit a vehicle, exact units at the stores near a ZIP), Vevor (tools and equipment prices on 13 storefronts in their own currencies, was price only during a deal, shipping by state), Sephora (US and Sephora Canada: CAD prices, sale prices, dated offers, stores), Ulta Beauty, Dermstore (US and Canada skincare prices, RRP and offer text per brand, offers with end times), Space NK (UK, Ireland, the Netherlands, Australia), Lookfantastic (10 country sites, 22 currencies), Cult Beauty, YesStyle (prices per shipping country), Notino (27 storefronts, 30-day lowest price), Douglas (15 storefronts, RRP and 30-day low), Boots (UK and Ireland, store availability), ALDI, Micro Center, Newegg (US, Canada and 9 Global storefronts, every seller's offer), Sweetwater (US, units on hand and serial-numbered instruments), Walgreens, CVS, Whole Foods, Kroger (with QFC, Fred Meyer and Jay C Food Stores), Publix, Meijer (Midwest grocery, store prices, aisles, weekly ad and mPerks coupons), AliExpress (search, category, product with SKU variants, translated reviews, sellers), METRO / Makro (cash-and-carry wholesale in 19 European markets, net and gross prices per store and pack, quantity tiers and promotions), Ankorstore (European wholesale marketplace, retail prices, margin bands and brand terms; no wholesale prices), Veepee marketplace (France, the 30-day low or comparison price, sellers and delivery terms), IKEA (55 markets), Wayfair (US, Canada, UK, Ireland), Ashley Furniture (US, plus Canada, Mexico, the Philippines, Saudi Arabia and Turkey), Maisons du Monde (France, Belgium, Luxembourg, the Netherlands, Germany, Spain, Italy, Portugal, Switzerland), Harbor Freight, AutoZone, O'Reilly Auto Parts (part-number cross-reference, store stock near a ZIP), RockAuto (parts by vehicle for every brand and tier, 15 display currencies), Ace Hardware (prices by store, units on hand, weekly ad), Tractor Supply (prices by store and price zone, store stock), Michaels (US and Canada, units at the stores near a ZIP), Nike (62 storefronts in 42 countries, sizes with GTIN, release calendar), Staples (US office supplies, price per unit and cost per page, units at the stores near a ZIP; Canada search and product), Instacart (US and Canada, prices by store at a ZIP), PC Express (Canada, the same product code priced at each Loblaw banner's default store: Real Canadian Superstore, No Frills, Loblaws, Maxi and 6 more; deal end dates, PC Optimum offers, pickup stores), PetSmart, Petco, iHerb, Chewy, Menards, Nordstrom, Nordstrom Rack, Best Buy (US and Best Buy Canada: exact units per store, EHF by province), Macy's, Saks Fifth Avenue, Kohl's, JCPenney, Belk (US, coupons and exact store units), Dick's Sporting Goods, Academy Sports + Outdoors (US, exact units per store), REI (US, store pickup status near a ZIP), L.L.Bean (US, Canada and 12 countries, exact store units), Foot Locker, Zappos and 6pm (exact warehouse units per size, width and color), Fanatics, Gap Inc. (Gap, Old Navy, Banana Republic, Athleta; US and Canada, store stock by size), Abercrombie & Fitch and Hollister (16 storefronts, exact store units), Bath & Body Works (US and Canada, offers and store pickup), Williams Sonoma, Pottery Barn, West Elm and the other Williams-Sonoma, Inc. brands (online stock ranges, delivery dates and store pickup), Bed Bath & Beyond (US, online stock and delivery dates), QVC and HSN (today's special, program guide and prices in 5 QVC markets), Argos (UK, store stock by postcode), Media Expert (Poland, Omnibus 30-day low and store stock), Action (19 storefronts in 16 countries, weekly deals), HEMA (the Netherlands, Belgium, France, Germany; store stock per store), Carrefour, Allegro, bol.com (the Netherlands and Belgium), Trendyol (Turkey plus 34 international storefronts), H&M (47 countries), Zara (102 storefronts), Uniqlo (41 markets), ASOS (235 countries), Fashion Nova (104 countries), Mercado Libre, KaBuM! (Brazil, card and Pix prices, offers with units left), Magazine Luiza (Brazil, Pix prices, coupons and deal end times), Casas Bahia with Extra and Ponto (Brazil, every seller's price), Buscape and Zoom (Brazil price comparison, store offers and daily price history), Drogasil and Droga Raia (Brazil pharmacy retail, store pickup), Leroy Merlin (Brazil regional prices and store units, plus Italy, Spain, Portugal, Poland, Romania and France), Natura (beauty prices and shades in Brazil, Argentina, Chile, Colombia, Mexico and Peru), O Boticario and Eudora (Brazil beauty, card and Pix prices, store pickup), Centauro (Brazil sporting goods, prices per size, freight and store pickup by CEP), Enjoei (Brazil second-hand fashion, shops, sold listings and buyer reviews), Atacadao (Brazil cash-and-carry, store prices with quantity tiers, stores and flyers), Carrefour Brasil (grocery prices by CEP and the marketplace, delivery and coupons), Terabyteshop (Brazil PC parts, card and Pix prices, coupons and the PC builder), Cobasi (Brazil pet supplies, prices per size, subscription prices, pickup and delivery by CEP), Netshoes (Brazil sporting goods, every seller's offer per size, online stock and shipping by CEP), Estante Virtual (Brazil used and new books, copies, ISBN lookup, sebos and shipping by CEP), C&A Brasil (Brazil fashion, prices per size, delivery quotes and pickup points by CEP), Lojas Renner (Brazil fashion, stock levels, store card installments and stores by CEP), Pichau (Brazil PC parts, card and Pix prices, deals with units left, benchmarks and coupons), Dafiti (Brazil fashion marketplace, units per size, delivery type and partner stores), Riachuelo (Brazil fashion, sold-out flags and units per size, campaign deals and reviews), Petz (Brazil pet store, subscription and Clubz member prices, stock units and stores), Global Industrial (US and Canada industrial equipment and MRO, pack and per-piece prices, quantity breaks, clearance), MSC Industrial Supply (US metalworking and MRO, prices per quantity, unit prices, clearance, distribution locations), Zoro (US industrial and business supply, unit and order-multiple prices, availability, review summaries), B-Stock (liquidation lots, current bids, retail value, manifest previews), McMaster-Carr (US industrial supply, pack and per-piece prices, specs), Sally Beauty and CosmoProf (US and Canada beauty supply, online units, exact store stock, reviews), Liquidation.com (US liquidation auctions, manifests, a seller's closed lots), Ferguson (US plumbing, HVAC and waterworks distributor, product prices, specs and documents), SupplyHouse.com (US plumbing, HVAC and electrical supply, unit and box prices, lead times per warehouse, reviews and Q&A), DigiKey (electronic components in the US, Canada and Germany, price breaks per packaging, stock, lead times), Mouser Electronics (electronic components in the US and UK, price tables, stock, on-order dates, factory lead times), RS Components (electronic and industrial components in the UK, Germany and Australia, unit and pack prices, stock per market with ship dates), eBay, Rakuten (cash back rates and coupons in the US, UK and Canada), Target, Home Depot (US and Home Depot Canada: prices and exact units per store), TikTok Shop
- Trading cards — TCGplayer (Pokemon, Magic: The Gathering, Yu-Gi-Oh!, One Piece, Lorcana and 60+ more games)
- Video games — Nintendo eShop (one game's price, sale price and sale end date in 46 countries, deals, releases and DLC)
- Second-hand marketplaces and classifieds — Vinted (27 country sites, local currency and language), Mercari (US and Japan, sold prices), Depop (9 storefronts, shop sold prices), Poshmark (US and Canada, sold prices, closets), OfferUp (US local listings around a ZIP, asking prices by city, cars and trucks), thredUP (US store, estimated retail, sold listings), OLX (7 OLX Europe sites)
- Cars — Cars.com, Autotrader (KBB fair price range), CarGurus (expected price and deal rating; US, Canada, UK), CarMax (no-haggle prices, recent offers per model year), Carvana (prices, KBB values, shipping costs), TrueCar (price rating, dealer fees, national price stats), Edmunds (deal rating, Edmunds Suggested Price per trim, appraisal values), Kelley Blue Book (car values at a ZIP, 17 price types)
- Collector-car auctions — Bring a Trailer (results, sale prices and model price history)
- Liquidation auctions — Nellis Auction (open lots in 6 US shopping locations with the current bid and Nellis's own Estimated Retail Price, a sold lot's final price by id, bid history without bidder names), EstateSales.net (estate sales near a ZIP with their dates, the companies running them and marketplace items)
- Real estate and travel — Zillow, Redfin, Realtor.com, Rightmove, Trulia (neighborhood survey and market snapshot), StreetEasy (NYC listings and market data), Rent.com and Apartment Guide, RentCafe (US and Canada), Movoto (listings and market trends), HotPads (rents, rent history, fees), Apartment List (rent report), Compass, AffordableHousing.com (Section 8 rentals, waiting lists, housing authorities), Lennar (new homes, promotions), Extra Space Storage and Public Storage (self-storage unit prices), U-Haul (truck rental rates and self-storage in the US and Canada), Booking, Airbnb, Vrbo, Expedia (hotel prices for your dates, price calendars), Tripadvisor
- Reviews and local — Trustpilot, Reclame Aqui (Brazil company reputation and complaints), Goodreads (book ratings and reader reviews), Barnes & Noble (book prices, bestsellers and store pickup), ThriftBooks (used book prices per format and condition), Yelp, G2, Capterra, Glassdoor, App Store, Google Play
- Jobs and companies — Indeed, Glassdoor, SEC EDGAR, Companies House, Company Enrich (contacts and owner from a website or a Google Maps place)
- Ads transparency — Google Ads Transparency Center, Meta Ad Library
- Social and video — YouTube, TikTok, Instagram, Threads, X, LinkedIn, Reddit, Kuaishou
- Any other page —
extract()turns a URL into Markdown, plain text or raw HTML - Whole websites —
extract.map()lists a site's URLs,extract.crawl()crawls a site,extract.batch()extracts a list of URLs in one job
Install
npm install scavioSign in without copying a key
npx -y scavio@latest loginPrints a link and a code and opens your browser. Sign in at dashboard.scavio.dev
(or create a free account, 50 credits, no card), check that the page shows the
same code, and click Approve. The CLI saves an API key named after your machine
(CLI - <hostname>) and never prints it:
~/.config/scavio/credentials.json(owner-only), andSCAVIO_API_KEYin your shell startup file (~/.zshrcor$ZDOTDIR/.zshrc,~/.bashrcand on macOS~/.bash_profile, fishconf.d/scavio.fish, or the Windows user environment). Skip this with--no-profile.
Logging in again on the same machine reuses that machine's key. A program
cannot set variables in the shell that started it, so run source ~/.zshrc
(or your shell's file) or open a new terminal to use the key right away, and
restart any AI agent that was already running. new Scavio() reads
SCAVIO_API_KEY.
AI coding agents (Claude Code, Codex, Pi, Cursor and others) can run it for you.
When its output is not a terminal, login prints the link and exits at once so
the agent can show it to you; the agent then runs login --wait, which waits up
to 60 seconds per run.
| Command | What it does |
|---|---|
| scavio login | Start a login (in a terminal it also waits for approval) |
| scavio login --wait | Finish a login an agent started. Exit 0 logged in, 2 still pending (run again), 3 denied, 1 expired or error |
| scavio status | Check the saved or exported key works, without printing it |
| scavio logout | Remove the saved key and the shell line (revoke it at dashboard.scavio.dev/api-keys) |
Options: --force (log in even if SCAVIO_API_KEY already works),
--no-profile, --no-browser, --timeout <seconds> for --wait.
Quick Start
import { Scavio } from "scavio";
const client = new Scavio({ apiKey: "sk_..." });
// Google search
const results = await client.search({ query: "web scraping api" });
// Amazon product lookup
const product = await client.amazon.product({ asin: "B09V3KXJPB" });
// Read any page as Markdown
const page = await client.extract({ url: "https://example.com/pricing" });
// Check usage
const usage = await client.getUsage();Configuration
const client = new Scavio({
apiKey: "sk_...", // or set SCAVIO_API_KEY env var
baseUrl: "https://api.scavio.dev", // default
timeout: 30_000, // ms, default
maxRequestsPerSecond: 1, // 1-50, default 1
maxRetries: 2, // default 2, set 0 to disable
});maxRetries is the number of extra attempts after the first request, applied
only to transient failures — HTTP 429, 500, 502, 503, 504 and network or timeout
errors. Backoff is exponential with full jitter, capped at 8s, and a
Retry-After header is honored when the API sends one. Non-transient errors
(400, 401, 402, 404, 422) are never retried.
maxRequestsPerSecond throttles the client so it never sends more than N
requests in any one-second window. Your plan also has a server-side concurrency
limit on simultaneous in-flight requests: 1 on free and pay-as-you-go, 5 on
Project, 10 on Bootstrap, 15 on Startup, 50 on Growth, and unlimited on
Enterprise.
Every request carries X-Client-Source: scavio-js. From Node.js (and other
server runtimes) it also sends User-Agent: scavio-js/<version> (since 0.18.1);
browsers do not allow a script to set User-Agent, so it is omitted there.
API Reference
Extract (any URL)
extract() is a core endpoint, not a platform, so it lives on the client itself.
It reads any page and hands it back as readability Markdown, plain text or raw
HTML — the read-a-page primitive an agent or a RAG ingest needs.
const page = await client.extract({
url: "https://example.com/pricing",
format: "markdown", // "html" | "markdown" | "text", default "markdown"
mode: "normal", // "normal" | "advanced" | "ultra", default "normal"
});
page.content; // the page body
page.content_length; // characters returnedCredits depend on mode, not on a flat per-call price: normal costs 1,
advanced costs 1, ultra costs 2. Billing happens only on a successful
extraction — a dead link, bot wall or timeout costs nothing.
normalis the default. Start here.advancedrenders the page's JavaScript. Use it when the content is built client-side.ultrais the hardest-page tier. Use it only when a page blocks the other two.
html is the raw page. markdown is a readability extraction with the
boilerplate stripped. text is that markdown flattened to plain text. URLs are
http(s) only, a bare host is upgraded to https, and loopback, private,
link-local and cloud-metadata hosts are rejected with a 400.
Website map, crawl and batch extract (new in 0.23.0)
extract is also a namespace: calling it reads one page, exactly as before
(client.extract({ url }) sends the same request it did in 0.22), and its
methods work on whole sites and URL lists, with each page returned exactly
like Extract.
// Map: every URL on a site, from its sitemaps and start page. 1 credit.
const map = await client.extract.map({
url: "https://example.com",
limit: 500, // 1-5,000, default 1,000 (plan caps apply)
sitemap: "include", // "include" | "only" | "skip"
include_paths: ["/blog/**"], // optional path globs
});
map.data.links; // [{ url, source: "sitemap" | "page", lastmod? }]
map.data.truncated; // true when more URLs exist than `limit`
// Crawl: start a job, then poll it (polling and cancelling are free).
const job = await client.extract.crawl(
{ url: "https://example.com/docs", max_pages: 50, max_depth: 3, format: "markdown" },
{ idempotencyKey: "docs-crawl-2026-10-12" }, // optional; one is generated when omitted
);
job.data.id; // "crawl_..."
job.data.status_url;
const page = await client.extract.crawlStatus(job.data.id, { limit: 25 });
page.data.status; // "queued" | "running" | "completed" | "failed" | "cancelled"
page.data.pages; // { discovered, queued, succeeded, failed, skipped }
page.data.results; // [{ url, depth, status, status_code, content, ... }]
page.data.next_cursor; // pass as { cursor } for the next page, null at the end
await client.extract.cancelCrawl(job.data.id); // 409 once the crawl has finished
// Or wait for it: polls until done and returns every result in one response.
const done = await client.extract.crawl(
{ url: "https://example.com/docs", max_pages: 20 },
{ wait: true, pollInterval: 2000, waitTimeout: 600_000 },
);
done.data.results.length;
// Batch: extract a list of URLs in one job (results in input order).
const batch = await client.extract.batch({
urls: ["https://example.com/a", "https://example.com/b"],
mode: "normal",
});
batch.data.invalid_urls; // rejected up front, never billed
await client.extract.batchStatus(batch.data.id);
await client.extract.cancelBatch(batch.data.id);Pricing. Map costs 1 credit. Crawl and batch bill per successful page
at Extract's price for the tier: normal 1, advanced 1, ultra 2. Failed
and skipped pages are free, starting, polling and cancelling a job are free,
and credits are taken page by page: if your balance runs out the job stops
cleanly with stopped_reason: "insufficient_credits".
Plan limits.
| Plan | Max pages per crawl | Active jobs | URLs per batch | |------|--------------------:|------------:|---------------:| | Free | 10 | 1 | 10 | | PAYG | 100 | 1 | 50 | | Project | 500 | 2 | 100 | | Bootstrap | 2,000 | 3 | 500 | | Startup | 5,000 | 5 | 1,000 | | Growth | 10,000 | 10 | 1,000 |
Starting a job above your plan's active-job limit is a 429 (RateLimitError)
with Retry-After.
Behavior. Crawl and map always obey the site's robots.txt. A crawl stays on
the start URL's site (allow_subdomains opts into subdomains) and visits URLs
under the start path first. Batch treats each URL like a single extract()
call. Results are kept for 3 days after the job finishes (expires_at), up to
2 MB per page and 250 MB per job, and a job runs for at most 6 hours.
wait: true. crawl() and batch() poll the status endpoint every
pollInterval ms (default 2,000) until the job is completed, failed or
cancelled, then page through every cursor and return
{ data: { ...summary, results: [all], next_cursor: null }, created: {...} },
where created is the 202 job handle (including webhook_secret, which is
only returned on creation), as in the Python SDK (since 0.23.1). If the job is
still running after waitTimeout ms (default 10 minutes) they throw
ScavioJobTimeoutError; the job keeps running and the error carries
jobId, jobType and statusUrl so you can keep polling or cancel it. For
big crawls, prefer a webhook or your own polling loop.
Retries and idempotency. The SDK retries 429/5xx and network errors.
crawl() and batch() always send an Idempotency-Key: yours when you pass
idempotencyKey, otherwise a random UUID generated for that call and reused on
every retry of it (since 0.23.1). Repeating a POST with the same key within 24
hours returns the original job, so a retried start never begins a second,
billed one. Pass your own key to dedupe across calls or processes. Plain
extract() and map() are not jobs and send no key.
Completion webhooks
Pass webhook_url (https) to crawl() or batch() and Scavio POSTs the job
summary there when it completes, fails or is cancelled (retried at 0 s, 30 s
and 5 min). The signing secret comes back once, as job.data.webhook_secret.
Each delivery is signed with
Scavio-Signature: t=<unix>,v1=<hex HMAC-SHA256 of "<t>.<raw body>">; verify
it against the raw body with verifyWebhook (async, Web Crypto, so it runs
on Node 18+, Deno, Bun and edge runtimes):
import { verifyWebhook } from "scavio";
// e.g. a Next.js / Hono / Workers route handler
export async function POST(req: Request) {
const raw = await req.text();
const ok = await verifyWebhook(
process.env.SCAVIO_WEBHOOK_SECRET!, // the job's webhook_secret
req.headers.get("Scavio-Signature"),
raw,
300, // max signature age in seconds (default)
);
if (!ok) return new Response("bad signature", { status: 401 });
const event = JSON.parse(raw);
// event.id, event.status, ...
return new Response("ok");
}verifyWebhook returns false (never throws) for a missing, malformed,
tampered or stale signature.
Each method hits its own /api/v2/google* endpoint and returns Google's full
response (raw passthrough); each costs 1 credit. Results come back as
organic_results[] with link and snippet. Geo and paging use gl, hl,
start, google_domain and device — the old v1 vocabulary (light_request,
country_code, language, search_type, page) does not exist on v2 and is
dropped server-side.
// SERP search (includes the AI Overview when Google shows one)
await client.google.search({
query: "web scraping",
gl: "us", // optional — geo (country)
hl: "en", // optional — UI language
device: "desktop", // optional
});
// Local rank tracking: web_only returns Google's Web results (organic only,
// ranked for location). The standard page localizes only the local pack; call
// again without web_only when you also need local_results.
await client.google.search({
query: "emergency plumber",
location: "Austin,Texas,United States",
web_only: true,
});
// Other Google surfaces
await client.google.aiMode({ query: "how does rag work" });
await client.google.mapsSearch({ query: "coffee near me" });
await client.google.shopping({ query: "laptop" });
await client.google.flights({ departure_id: "JFK", arrival_id: "LAX", outbound_date: "2026-12-15" });
await client.google.hotels({ query: "Bali", check_in_date: "2026-08-01", check_out_date: "2026-08-03" });
await client.google.news({ query: "openai" });
await client.google.trends({ query: "bitcoin" });Migrating from the Google Custom Search JSON API (new in 0.25.0)
google.customSearch takes the Custom Search JSON API (cse.list) parameters and
returns the same customsearch#search response: items[] with title, link,
snippet and displayLink, searchInformation.totalResults and
queries.nextPage, so code that parsed Custom Search results keeps working.
Options are snake_case like the rest of this SDK and are sent as the CSE wire
names (site_search -> siteSearch, date_restrict -> dateRestrict). 1 credit.
const res = await client.google.customSearch({
q: "abortcontroller fetch timeout",
num: 5,
site_search: "stackoverflow.com", // enforced on the returned results
date_restrict: "y1",
});
for (const item of res.items ?? []) console.log(item.displayLink, item.title, item.link);
const next = res.queries.nextPage?.[0]?.startIndex;Not using this SDK? Keep your existing Custom Search code and change the host:
https://api.scavio.dev/customsearch/v1?key=YOUR_SCAVIO_KEY&q=.... cx is
accepted and ignored. Parameters that cannot be honoured (image search, sort,
rights) throw BadRequestError instead of being silently dropped. For the full
SERP (knowledge graph, AI overview, People Also Ask) use google.search.
Docs
ChatGPT and Gemini (new in 0.26.0)
Send the prompt a buyer would ask and get the answer the assistant gives: the
full Markdown answer, the pages it cites, the web searches it ran (ChatGPT) and
the products it recommended. Both return the same shape under data, so one
parser tracks which brands each assistant recommends. ChatGPT costs 2 credits and
Gemini 5 credits per answered prompt; a failed prompt is not charged. Answers take 10-40 seconds, so both
methods raise the request timeout to 120s when the client's is shorter.
const prompt = "What are the best CRM tools for small agencies?";
const chatgpt = await client.chatgpt.prompt({ prompt, country: "us" });
const gemini = await client.gemini.prompt({ prompt });
for (const { data } of [chatgpt, gemini] as any[]) {
console.log(data.platform, "mentions HubSpot:", data.answer.markdown.includes("HubSpot"));
console.log(" cited:", data.sources.slice(0, 5).map((s: any) => s.url));
console.log(" products:", data.shopping.map((p: any) => p.title));
}
// ChatGPT also returns each source's title and publisher and the searches it ran.
console.log((chatgpt as any).data.search_queries);Options: chatgpt.prompt({ prompt, model?, country?, include_html? }) (prompt up
to 1024 characters) and gemini.prompt({ prompt }) (up to 4000).
ChatGPT docs |
Gemini docs
Amazon
Responses are normalized to a stable shape (see the breaking-change note
below); each call costs 1 credit. country is an ISO 3166-1 alpha-2
marketplace code (us, gb, de, ...) and defaults to us.
// Search products
await client.amazon.search({
query: "laptop",
country: "de", // optional, marketplace
page: 2, // optional, 1-based
});
// Get product by ASIN
await client.amazon.product({
asin: "B09V3KXJPB",
country: "us", // optional
});
// Every seller offering that ASIN, with the buy box winner flagged
const res = await client.amazon.offers({ asin: "B09V3KXJPB" });
// res.data -> { asin, title, count, total_offers, has_more_pages, page, offers[] }
// res.data.offers[i] -> { price, currency, condition, seller_name,
// is_buy_box_winner, is_fulfilled_by_amazon,
// shipping_price, list_price, delivery, prime_delivery }
// Supported marketplaces (no API key required)
await client.amazon.options();There is no sort parameter: the marketplace was verified to ignore every sort value and return the same unordered set, so exposing one would be a filter that silently does nothing.
Amazon changed in 0.12.0 (breaking)
The Amazon API now returns a normalized shape instead of the previous raw payload.
searchreturns{query, page, total_results, total_results_text, count, products[], filters[], related_searches[]}. Each product is{asin, title, url, image, price, currency, rating, reviews_count, is_sponsored, position, badge, sales_volume, delivery{is_free, date, fastest_date}}.productreturns flat fields:price,list_price,currency,rating,reviews_count,features,images,videos,variants,specifications,best_sellers_rank,shipping, and more. The oldbuybox[]array no longer exists — useoffersfor per-seller pricing.offersis new: every seller for one ASIN. 1 credit, page 1 only.country(ISO 3166-1 alpha-2) is the marketplace selector and replacesdomain;pagereplacesstart_page. Both old names still work as deprecated aliases.- Nine options were removed:
language,currency,device,sort_by,pages,category_id,merchant_id,zip_code,autoselect_variant. Sending one anyway still returns 200, with a top-levelwarningsarray naming what was ignored. options()still returnsdomainsandcountries;languagesandcurrenciesare now always empty, because neither is a request parameter any more.
Walmart
Eight endpoints. stores and store targeting on search / product are new in
0.17.0.
await client.walmart.search({
query: "tv",
domain: "com", // "com" | "ca" | "com.mx"
page: 2, // 1-indexed
sort_by: "rating_high",
min_price: 100,
max_price: 500,
});
await client.walmart.product({ product_id: "13544111159" });
await client.walmart.reviews({ product_id: "13544111159", page: 2 });
await client.walmart.category({ category_id: "3944_133251_1095191" });
await client.walmart.offers({ product_id: "13544111159" });
await client.walmart.seller({ seller_id: "101138578" });
await client.walmart.sellerProducts({ seller_id: "101138578" });
// Store targeting: find stores for a ZIP, then pass one with the ZIP.
const { data } = await client.walmart.stores({ zipcode: "50036" });
await client.walmart.search({
query: "whole milk",
delivery_zip: "50036",
store_id: data.stores[0].store_id!, // "1389", Boone Supercenter
});
// walmart.ca works the same way with a postal code and domain "ca".
await client.walmart.stores({ zipcode: "M5V 2T6", domain: "ca" });
await client.walmart.product({
product_id: "10220526",
domain: "ca",
delivery_zip: "M5V 2T6",
store_id: "3106",
});Credits are a function of the body: search and category cost 1 credit on
domain "com" or "ca" and 2 on "com.mx"; a store-targeted search or product
costs 2. stores and the other endpoints cost 1.
Walmart store targeting (0.17.0)
delivery_zipandstore_idmust be sent together, onsearchorproduct. They work on walmart.com and walmart.ca (domain: "ca"with a Canadian postal code); walmart.com.mx does not support store targeting.- Get
store_idfromstores()on the same domain.store_iddecides the store;data.locationin the response confirms which store was used. - Store-targeted calls take 10-60 seconds — set a generous timeout. A
store_idthat does not exist returns 400, and a product the store does not carry returns 404. productacceptsdomain: "ca"only together with a store target.
Walmart changed in 0.15.0 (breaking)
deviceis retired. Sending it still returns 200, with a top-levelwarningsarray naming what was ignored. (delivery_zipandstore_idwere retired in 0.15.0 and came back in 0.17.0 as store targeting.)domainis not retired — it is the price-bearing param, and it is accepted onsearchandcategory. Product-keyed endpoints are walmart.com only, exceptproductwith a store target (0.17.0).page(1-indexed) is the paging param;start_pageremains a deprecated alias.sort_bygainedrating_highandnew.fulfillment_speedistodayortomorrowonly. There is deliberately no2_days(it leaks 3-4 day items) and noanytime— omit the param instead.offersreturns the buy-box seller only, not the full offer list.seller_idmust be the numeric catalog id (seller_catalog_id, returned byproductandoffers). The GUID form of the id returns 404.sellerProductshas no pagination — roughly the first 40 server-rendered items.total_countreports the seller's real catalog size.
Costco
Thirteen endpoints, new in 0.18.0. country is "us" (costco.com, default) or
"ca" (costco.ca); search, product and warehouses also take "uk",
"au", "mx", "jp", "kr" and "tw" (keyword, sort and paging only).
// Warehouse numbers come from warehouses().
await client.costco.warehouses({ zip: "10025", limit: 3 });
// warehouse_id adds that warehouse's in-store price, stock and price code to
// every result on search, category and deals.
await client.costco.search({ query: "olive oil", warehouse_id: "1062", page_size: 5 });
await client.costco.category({ category: "televisions", sort_by: "price_low" });
await client.costco.categories(); // departments
await client.costco.categories({ category_id: "30001" }); // one department's tree
await client.costco.product({ item_ids: ["100334960", "1492456"] }); // up to 20
await client.costco.reviews({ product_id: "100334960", sort_by: "most_helpful" });
await client.costco.autocomplete({ query: "kirk" });
// Online vs in-warehouse price at up to 10 warehouses, with discount, final
// price, promotion dates and price code.
await client.costco.prices({ item_id: "1492456", warehouse_ids: ["1062", "1107"] });
// In-warehouse stock status (never a quantity), pickup and same-day delivery.
await client.costco.availability({ item_number: "1492456", warehouse_ids: ["1062"] });
// Regular, premium and diesel prices near a location, or at given warehouses.
await client.costco.gas({ zip: "90001" });
await client.costco.gas({ warehouse_ids: ["1062", "1107"] });
// The current member coupon book (US only, no parameters).
await client.costco.coupons();
// Deal feeds: new, while_supplies_last, treasure_hunt, member_favorites,
// online_only, on_sale.
await client.costco.deals({ type: "treasure_hunt", warehouse_id: "1062" });
// Markdown finder at one warehouse: .97 clearance and .00/.88 manager
// markdowns by default; add special_buy for .49/.79/.89 endings.
await client.costco.clearance({
warehouse_id: "1062",
query: "snacks",
price_codes: ["clearance", "manager_markdown", "special_buy"],
});1 credit per call except where the body scales the work: prices costs 2 at 10
warehouses, availability 1 per 5 warehouses, warehouses 2 with
country: "ca", and gas 2 by location on ca (by warehouse_ids, 1 per 5
warehouses on us and 2 per warehouse on ca). The clearance price codes are the
member-community decode of Costco shelf prices; Costco does not publish them,
and only items Costco lists online are covered.
BJ's Wholesale Club
BJ's Wholesale Club (bjs.com, the US warehouse club): one product in full,
keyword search and category listings (40 results, as the page lists them) with
the online price, sale dates and whether an item is in stock online or in
club, the category tree, product reviews, the guest coupon book and the club
directory by state. Where BJ's shows a member-only price to a visitor, the
answer flags it and gives the list price only; a club-only item has no online
price. Search is priced for the club BJ's assigns to the visit: a club cannot
be chosen, and there is no club price, club stock or ZIP club finder. US only,
prices in USD. 7 endpoints on client.bjs (new in 0.100.0): product,
search, category, categories, reviews, coupons, clubs. See the
BJ's Wholesale Club API
page.
- Credits: 1 credit each.
credits_usedin the response is what was charged.
const res = (await client.bjs.search({ query: "coffee" })) as any;
console.log(res.data.total, res.data.count, res.data.priced_for);
for (const it of res.data.results.slice(0, 5)) console.log(it.name, it.price, it.member_only_price, it.club_only);
const clubs = (await client.bjs.clubs({ state: "NY" })) as any;
for (const club of clubs.data.clubs.slice(0, 5)) console.log(club.club_id, club.name, club.state);Every call raises the request timeout to BJS_TIMEOUT (240s) and never lowers
a longer client timeout; failed calls and refused inputs are not charged, a
not-found is charged.
Lowe's, Sam's Club, Canadian Tire and Dollar General
Four store-level retailers, new in 0.31.0. Each call answers for ONE store you
choose: get its number from the locator (lowes.stores, samsClub.clubs,
canadianTire.stores, dollarGeneral.stores) and pass it on every call.
// Lowe's: store_id AND that store's own ZIP are required on search/product.
const lowesStores = await client.lowes.stores({ zip: "28117", limit: 1 });
const store = (lowesStores.data as any).stores[0];
const sid = store.store_id; // "0595"
const zip = store.address.postal_code; // "28117"
await client.lowes.search({ query: "cordless drill", store_id: sid, zip });
await client.lowes.search({ query: "cordless drill", store_id: sid, zip, on_sale: true }); // that store's deals
await client.lowes.product({ item_id: "5016412045", store_id: sid, zip }); // stock, aisle_locations, nearby stores
await client.lowes.reviews({ item_id: "5016412045", sort: "most_helpful" });
// Sam's Club: search, savings and category answer for a club picked by
// location (echoed in data.club). product({ club_id }) targets one club.
await client.samsClub.clubs({ zip: "75201", limit: 5 });
await client.samsClub.search({ query: "paper towels", sort: "price_low" });
await client.samsClub.product({ item_id: "15325822107", club_id: "6372" }); // club_price, in_stock_at_club
await client.samsClub.savings({ sort: "top_selling" }); // Instant Savings
await client.samsClub.category({ category_id: "1150109" }); // clearance
await client.samsClub.reviews({ item_id: "15325822107", sort: "lowest" });
// Canadian Tire: prices in CAD, per store and province.
await client.canadianTire.stores({ postal_code: "M5V 2T6", sku: "0438858" }); // + quantity and aisle per store
await client.canadianTire.search({ query: "dewalt drill", store_id: "600" });
await client.canadianTire.product({ product_code: "0547273P", store_id: "600" });
await client.canadianTire.availability({ store_id: "600", skus: ["0438858", "0547273"] }); // up to 50
await client.canadianTire.clearance({ store_id: "600" }); // in-stock only by default
await client.canadianTire.deals({ store_id: "600", type: "sale" }); // or instant_rebate, special_buy, loyalty
// Dollar General: one stores() call with a upc gives that product's unit
// count at up to 25 nearby stores.
await client.dollarGeneral.stores({ zip: "75203", upc: "030772156629" });
await client.dollarGeneral.search({ query: "paper towels", store_id: "12629", in_stock_only: true });
await client.dollarGeneral.product({ upc: "030772156629", store_id: "12629" });
await client.dollarGeneral.deals({ store_id: "12629", type: "clearance" }); // or on_sale
await client.dollarGeneral.coupons();Lowe's search, product and stores cost 2 credits and reviews 1; Sam's
Club clubs costs 1 and every other Sam's Club call 2; every Canadian Tire and
Dollar General call costs 1. Sam's Club caps
available_quantity at 8 (8 means 8 or more). Dollar General clearance items
carry the current price only, with no was-price. Canadian Tire and Dollar
General return a rating and review count but no review text.
Sephora, Ulta Beauty, ALDI, Micro Center, Walgreens and CVS
Six US retailers, new in 0.32.0 (Sephora also reads Sephora Canada with
country: "ca", see Sephora Canada below). Where prices or
stock are per store, pass the store number on the call (aldi.stores,
microCenter.stores, walgreens.stores; CVS has no locator).
// Sephora: 60 products per page. product() takes a result's url (faster)
// or its product_id, and returns a review summary with pro and con
// sentiment counts - no review text.
await client.sephora.search({ query: "lipstick", sort: "best_selling", zip: "10001" }); // + same_day_eligible
await client.sephora.category({ category: "lipstick" });
await client.sephora.product({ product_id: "P510799" });
// Ulta Beauty: stores() is in stock / out of stock for one shade or size at
// the 10 stores nearest a ZIP (no unit counts).
await client.ulta.search({ query: "lipstick" });
await client.ulta.category({ category: "/shop/makeup/lips/lipstick" });
await client.ulta.product({ url: "https://www.ulta.com/p/serum-lipstick-pimprod2057119", sku: "2648428" });
await client.ulta.stores({ product_id: "pimprod2057119", sku_id: "2648428", zip: "10001" });
// ALDI: prices are per store AND per service_type - instore (default, the
// shelf price), pickup or delivery (online prices, often higher).
await client.aldi.stores({ zip: "33131" });
await client.aldi.search({ query: "milk", store_id: "151248", service_type: "pickup" });
await client.aldi.product({ product_id: "16902710", store_id: "151248" });
// Micro Center: stock is per 3-digit store_id (web store 029 when omitted);
// counts are capped at 25+ (quantity_capped).
await client.microCenter.stores({ state: "TX" });
await client.microCenter.search({ query: "rtx 5070", store_id: "131" });
await client.microCenter.product({ product_id: "691231", store_id: "131" }); // open-box units, stores_in_stock
// Walgreens: prices are national; stock() checks up to 20 stores per call.
const wg = await client.walgreens.stores({ zip: "60614" });
const storeNumber = (wg.data as any).stores[0].store_number; // "15350"
await client.walgreens.search({ query: "shampoo", store_id: storeNumber });
await client.walgreens.product({ product_id: "300452904" });
await client.walgreens.stock({ product_id: "300452904", store_ids: [storeNumber] });
// CVS: no store locator - the store number is on every cvs.com store page
// ("Store ID: #7019"). search() defaults to store 7019 (New York).
await client.cvs.search({ query: "toothpaste", store_id: "7019" });
await client.cvs.product({ product_id: "832677" });
await client.cvs.stock({ sku_ids: ["832677"], store_id: "7019" });Sephora search and category, Ulta Beauty, ALDI and CVS calls cost 1 credit
each; Sephora product costs 2. Micro Center
search and product cost 2 and stores 1. Walgreens search, product and
stores cost 2 and stock 4. CVS product can take 10-30+ seconds, so it
raises the request timeout to CVS_PRODUCT_TIMEOUT (120s) when the client's is
shorter; it never lowers it. Every sephora call raises the request timeout
to SEPHORA_TIMEOUT (120s) the same way (0.94.0).
Sephora Canada
Sephora Canada (sephora.com/ca, Sephora's Canadian store: 152 stores per its
store list on Nov 25, 2026), new in 0.94.0 on client.sephora: pass
country: "ca" to search, category and product; brand, brands,
suggestions, offers, stores and store are Sephora Canada only and need
no country. Canadian beauty prices in CAD (The Ordinary, Dior, Rare Beauty,
Supergoop and the rest of the catalogue) with sale prices and dated offers.
Credits: search, category, brand, brands, suggestions, stores and
store 1 each; product and offers 2 (US credits are the same and
unchanged). Product and SKU ids are the same as on sephora.com, with CAD prices
as Sephora Canada gives them (French prices such as 33,00 $ are read as
33.00); language: "fr" returns French names, descriptions and facet values
with the same ids and prices. Sephora publishes no public product or store API.
See the
Sephora API page.
// CAD price, list and sale price, sale scope, filters and facets.
await client.sephora.search({ query: "lip oil", country: "ca", filters: { on_sale: true }, include_facets: true });
// Every SKU with price, sale price, in_stock and only_few_left; the 10 latest
// reviews (no reviewer names) and Sephora's own AI review summary, labelled.
const item = (await client.sephora.product({ product_id: "P428500", country: "ca" })) as any;
for (const s of item.data.skus) console.log(s.sku_id, s.size, s.price, s.in_stock, s.only_few_left);
await client.sephora.brands();
await client.sephora.brand({ brand: "the-ordinary", sort: "best_selling" });
await client.sephora.suggestions({ query: "lip" });
const offers = (await client.sephora.offers()) as any;
for (const o of offers.data.offers) console.log(o.title, o.eligibility, o.promo_code, o.end_date, o.app_only);
await client.sephora.stores({ province: "QC" });
await client.sephora.store({ store: "toronto-eaton-centre" }); // address, phone, hoursCaptured 2026-11-26: Dior Sauvage Eau de Parfum (P428500) at 128 to 300 CAD,
the 3.4 oz / 100 ml SKU 2038131 at 200 CAD with in_stock: true and
only_few_left: false; the Sephora Collection Oil Infusion Hydrating Lip Oil
(P518068) at a sale price of 10.50 CAD (list 15.00) in a lip oil search; 26
offers, among them 30% off Sephora Collection with end_date
2026-11-30T23:59:00.000-08:00; and 152 stores on the store list (ON 64, QC 26,
AB 22, BC 22). Listings take sort, filters (brand, on_sale, new,
clean, rating 1-4, min_price, max_price, facets, or a list of
{ facet, value }) and include_facets; a brand keyword such as
the ordinary answers that brand's products with a redirect. zip is US
only (a 400 with country: "ca"). review_summary is Sephora's own
AI-generated summary of customer reviews and is labelled as Sephora's; read it
as Sephora's summary, not as a fact. Offers carry end_date as given and no
start date; app-only offers are flagged app_only. Store address and phone are
public business data, returned as captured. Not available for Canada: stock per
store, a store finder by postal code, the full review list with its sorts or a
star filter, UPC (upc is always null: the pages show none), Beauty Insider
prices, cart or checkout, price history (poll and store the answers). For the
same product at other Canadian retailers use client.dermstore
(country: "ca"), client.amazon (country: "ca") and client.walmart
(domain: "ca"); match on brand, name and size.
Whole Foods, Harbor Freight, PetSmart, Petco, iHerb, Chewy and Menards
Seven US retailers, new in 0.33.0. Store-level prices or stock take a store
number from that retailer's locator (wholeFoods.stores,
harborFreight.stores, petsmart.stores, petco.stores, menards.stores);
iHerb and Chewy are online only.
// Whole Foods: prices are per store (5-digit store_id, default 10145 Austin):
// regular_price, sale_price and prime_price. No ratings, reviews, UPCs or
// per-store unit stock. search() sorts by relevance, price_asc or price_desc.
const wf = await client.wholeFoods.stores({ zip: "10019" });
const wfStore = (wf.data as any).stores[0].store_id; // "10160"
await client.wholeFoods.search({ query: "milk", store_id: wfStore, on_sale: true });
await client.wholeFoods.category({ category: "cheese", store_id: wfStore, sort: "popular" });
await client.wholeFoods.deals({ store_id: wfStore });
await client.wholeFoods.product({ asin: "B078WVT2BC", store_id: wfStore }); // in_store and online prices, separately
await client.wholeFoods.store({ store_id: wfStore });
await client.wholeFoods.salesFlyer({ store_id: wfStore });
// Harbor Freight: national prices with sale and end date, public coupon,
// Inside Track member price and compare_at. availability() is a stock status
// per store (in_stock, limited, out_of_stock, not_carried) plus aisle, from
// a daily snapshot - no unit counts.
await client.harborFreight.search({ query: "cordless drill", sort: "member_price_low" });
await client.harborFreight.clearance({ query: "drill" });
await client.harborFreight.product({ sku: "73216" });
await client.harborFreight.prices({ skus: ["73216", "59716", "64508"] }); // up to 50
await client.harborFreight.stores({ query: "60601" });
await client.harborFreight.availability({ skus: ["73216"], zip: "90012" });
await client.harborFreight.reviews({ sku: "73216", limit: 10 });
// PetSmart: national price plus Autoship first-order and recurring price;
// stock is a unit count per store.
await client.petsmart.search({ query: "dog food", store_id: "1658" }); // in stock at that store only
await client.petsmart.product({ web_style_id: "36648" });
await client.petsmart.stores({ zip: "60601", sku: "5252900" }); // + quantity per store
await client.petsmart.storeStock({ store_id: "1658", skus: ["5252900"] });
await client.petsmart.availability({ pairs: [{ store_id: "1658", sku: "5252900" }] });
await client.petsmart.deals({ pet: "dog" }); // on_sale marks real price cuts
// Petco: national price plus Repeat Delivery (autoship) price. storeInventory()
// takes cat_entry_id (from search or product), not the part number.
await client.petco.search({ query: "dog food", sort: "price" });
await client.petco.category({ path: "dog/dog-food/dry-dog-food" });
await client.petco.product({ part_number: "3748364" });
const pc = await client.petco.stores({ zip: "10001" });
const pcStore = (pc.data as any).stores[0].store_id;
await client.petco.storeInventory({ cat_entry_ids: ["6131012"], store_id: pcStore });
// iHerb: online only, US store, USD. reviews() is the rating summary,
// histogram and top positive and critical review - not a full list.
await client.iherb.search({ query: "vitamin d", sort: "best_selling" });
await client.iherb.product({ product_id: "70316" });
await client.iherb.prices({ product_ids: ["62118", "70316", "77548"] }); // up to 50
await client.iherb.reviews({ product_id: "70316" });
// Chewy: one-time, Autoship and first-Autoship prices, MAP fields, ratings.
// A broad query can land on a category; data.redirect then names it.
await client.chewy.search({ query: "kong classic dog toy" });
await client.chewy.product({ product_id: "38485" });
// Menards: search one store (store_id required), then product() by item id or
// URL. Mail-in rebates and the final price after rebates; store_id adds stock.
await client.menards.stores({ zip: "55401" });
await client.menards.search({ query: "sledge hammer", store_id: "3181", sort: "price_asc" });
await client.menards.product({ item_id: "60893666613", store_id: "3181" });Whole Foods, Harbor Freight, PetSmart and Petco calls cost 1 credit each.
iHerb calls cost 2 and Chewy calls 10. Menards search costs 2, stores 1 and
product 1, or 2 with a store_id. Petco calls can take 10-30 seconds, so every Petco
call raises the request timeout to PETCO_SLOW_TIMEOUT (120s); iHerb search
and product can take 10-25 seconds, so they raise it to IHERB_SLOW_TIMEOUT
(120s); Menards product with a store can take 10-40 seconds, so it raises it
to MENARDS_PRODUCT_TIMEOUT (120s). None ever lowers a longer client timeout.
Nordstrom
Eight endpoints, nordstrom.com (US site only). search and product are new in
0.35.0; category, brand, stores, availability and suggestions are new
in 0.36.0; reviews is new in 0.37.0. availability costs 10 credits (the
product page plus the store lookup) and reviews 10; every other call costs 5.
search,categoryandbrandreturn 24 products a page with current and original price ranges, percent off, on-sale flag, rating, review count, badges and colors;sortisrelevance(default),rating,price_high,price_low,newestorpercent_off.categorytakes a/browsepath or URL (departments,sale/women,/browse/new);brandtakes a/brands/<slug>--<id>path or URL (a product'sbrand_urlworks). Both also return the category or brand (name, title, path, URL, breadcrumbs, subcategories) and the filter sidebar with option counts (top 100 options per group); filters inside a category URL are ignored.producttakes a result'surlorstyle_idand lists every color and size as a sku with UPC, price, price type,in_stockand thequantityavailable to ship.in_stockis true when the sku can be shipped or picked up in a store, so a sku can be in stock withquantity0 (store-only).reviewstakesurlorstyle_idand returns the product's full review history, up tomax_reviewsper call (1-200, default 60).sortismost_helpful(default),most_recent,highest_ratedorlowest_rated; filter withstars(e.g.[1, 2]),verified_only,with_photosor a textsearch(searchcannot be combined withsort). The response carries thesummary(average rating, total reviews, histogram, size and width rating, praised and criticized features with a quote, rating-only count), theai_summary,total_results,returnedandhas_more. Rating-only reviews are included withtitleandtextnull.availabilitytakesurlorstyle_id(optionallysku_id) and returns per skuship_quantity,pickup_available,pick_quantityand the stores that can do in-store pickup. Quantities are chain-wide; per store Nordstrom only says whether pickup is available, not how many.storestakes exactly one ofzip,latitude+longitude, orstore_numbers(array or comma-separated string), withdistance_miles1-100 (default 100). Each store has address, phone, hours, daily hours, coordinates, pickup and curbside flags and amenities. A ZIP with no store in range is an empty list (still billed).suggestionsreturns the site's autocomplete strings for a partialquery(limit1-20, default 8).
const found = await client.nordstrom.search({ query: "dress", sort: "percent_off" });
const top = (found as any).data.products[0];
console.log(top.style_id, top.brand, top.name, top.price, top.percent_off);
const item = await client.nordstrom.product({ style_id: top.style_id });
for (const color of (item as any).data.colors) {
for (const sku of color.skus) console.log(color.name, sku.size, sku.upc, sku.price, sku.price_type, sku.quantity);
}
const dresses = await client.nordstrom.category({ category: "/browse/women/clothing/dresses", sort: "price_low" });
const label = await client.nordstrom.brand({ brand: "/brands/astr-the-label--53360" });
const near = await client.nordstrom.stores({ zip: "10001" });
const stock = await client.nordstrom.availability({ style_id: "7737947" });
for (const sku of (stock as any).data.skus) {
console.log(sku.sku_id, sku.size, sku.color, sku.ship_quantity, sku.pick_quantity, sku.pickup_store_count);
}
const ideas = await client.nordstrom.suggestions({ query: "nike air" });
console.log((ideas as any).data.suggestions);
const rev = (await client.nordstrom.reviews({ style_id: "7737947", sort: "most_recent", max_reviews: 100 })) as any;
const { summary } = rev.data;
console.log(summary.average_rating, summary.total_reviews, summary.ratings_histogram, summary.size_rating);
console.log(rev.data.total_results, rev.data.returned, rev.data.has_more, rev.data.ai_summary);
for (const r of rev.data.reviews.slice(0, 5)) {
console.log(r.date, r.rating, r.title, r.text, r.size_purchased, r.helpful_votes, r.badges, r.photos.length);
}
const critical = await client.nordstrom.reviews({ style_id: "7737947", stars: [1, 2], verified_only: true });product returns the reviews shown on the product page (up to about 13) plus
the total review count and star histogram; reviews returns the rest. An
unknown style id, sku id, category or brand is a 404. Every call raises the
request timeout to NORDSTROM_TIMEOUT (120s), except reviews, which takes
20-60s (up to about 100s at 200 reviews) and raises it to
NORDSTROM_REVIEWS_TIMEOUT (150s). Neither ever lowers a longer client timeout.
If the upstream page still fails after the API's own retries, the call is an
unbilled 502. For nordstromrack.com use client.nordstromRack (next section).
Nordstrom Rack
Eight endpoints, new in 0.38.0, nordstromrack.com (US site only), on
client.nordstromRack: a separate platform from client.nordstrom with the
same methods, options and credit costs (availability and reviews 10, the
rest 5).
categorytakes Rack's/shopand/clearancepaths: departments, deals, new arrivals, Clear the Rack (/clearance,/clearance/women/clothing) and flash events (/shop/flashlists the live events as subcategories,/shop/flash/event-7opens one). There is no/browseon Rack.brandtakes/brands/<slug>(/brands/adidas); Rack brand pages carry no id, so the nordstrom.com--<id>form is a 404.- Every product row carries
clearance_price_range, and during Clear the Rack a clearance item can carry an extra percent off on top:promotion_price_rangeis the price after it andpromotion_percent_offthe extra percent. All three are null when not set; no response carries event start or end dates. storesandavailabilitycover Rack stores only; pickup quantities are chain-wide.reviewsreturns Rack's own review pool, separate from nordstrom.com's, so the same style can show a different rating and review count on each.
const clr = (await client.nordstromRack.category({ category: "/clearance/women", sort: "percent_off" })) as any;
for (const p of clr.data.products.slice(0, 5)) {
console.log(p.style_id, p.name, p.price, p.clearance_price_range, p.promotion_price_range, p.promotion_percent_off);
}
const events = (await client.nordstromRack.category({ category: "/shop/flash" })) as any;
console.log(events.data.category.subcategories.map((e: any) => e.path));
const item = await client.nordstromRack.product({ style_id: "8816500" });
const brand = await client.nordstromRack.brand({ brand: "/brands/adidas" });
const stock = await client.nordstromRack.availability({ style_id: "7737947" });
const near = await client.nordstromRack.stores({ zip: "10001" });
const rev = await client.nordstromRack.reviews({ style_id: "7737947", max_reviews: 50 });Every call raises the request timeout to NORDSTROM_RACK_TIMEOUT (120s),
except reviews, which takes 15-60s (up to about 100s at 200 reviews) and
raises it to NORDSTROM_RACK_REVIEWS_TIMEOUT (150s). Neither ever lowers a
longer client timeout.
Best Buy
Nine endpoints, new in 0.40.0, bestbuy.com (US, the default), on
client.bestBuy: search, product, reviews, category, deals,
stores, availability, suggestions, prices; with country: "ca" the
same nine read Best Buy Canada, plus the Canada-only questions (0.93.0, see
Best Buy Canada below). US credits: search,
product, reviews and prices 2 each (prices is per call, up to 15
SKUs); category 2 for an abcat id and 3 for a pcmcat page; deals 3;
stores and suggestions 1; availability 2 flat for up to 8 stores.
searchandcategoryreturn 18 organic products per page; sponsored tiles only withinclude_sponsored: true.filterstakesbrand,on_sale,clearance,open_box, andmin_pricewithmax_price(both bounds).productreturns every open-box offer by condition (fair, good, excellent) withsavings_vs_newandsavings_vs_regular, plus UPC, model, the full spec table and the AI review summary.availabilityis store pickup status at up to 8 stores (nearest azip, or thestore_idsyou pass; exactly one of the two):in_stock,limited,ship_to_store,out_of_stock,not_available_for_pickuporunknown.quantityis set only forlimited(Best Buy's "only N left") and is null forin_stock.pricestakes up to 15 SKUs; an unknown one comes backfound: false.
const found = (await client.bestBuy.search({ query: "tv", filters: { brand: "Samsung", on_sale: true } })) as any;
for (const p of found.data.products.slice(0, 5)) {
console.log(p.sku, p.model, p.price, p.regular_price, p.savings_percent, p.badge);
}
const item = (await client.bestBuy.product({ sku: "6607832" })) as any;
for (const ob of item.data.open_box) console.log(ob.condition, ob.price, ob.savings_vs_new, ob.savings_vs_regular);
const stock = (await client.bestBuy.availability({ sku: "6607832", zip: "94103", max_stores: 5 })) as any;
for (const s of stock.data.stores) console.log(s.store_id, s.name, s.status, s.quantity, s.pickup_date);
const prices = await client.bestBuy.prices({ skus: ["6607832", "6673112", "6679316"] });
const deals = await client.bestBuy.deals();
const rev = await client.bestBuy.reviews({ sku: "6607832", sort: "newest" });
const tvs = await client.bestBuy.category({ category_id: "abcat0101001", sort: "price_low" });
const near = await client.bestBuy.stores({ zip: "94103" });
const terms = await client.bestBuy.suggestions({ query: "ps5 con" });Every call raises the request timeout to BEST_BUY_TIMEOUT (120s) and never
lowers a longer client timeout; availability typically takes 5-20s. An
unknown SKU or category is a 404.
Best Buy Canada
Best Buy Canada (bestbuy.ca, Best Buy's Canadian store: 142 stores across
Canada per Best Buy's FY2026 10-K, plus a marketplace of third-party sellers):
pass country: "ca" to any of the nine methods; questions is Best Buy Canada
only and needs no country. 1 credit per call on every Canada call (US credits
are unchanged). Prices in CAD as Best Buy Canada gives them; language: "fr"
returns French names, specs and links with the same SKUs and prices. Best Buy's
developer API (developer.bestbuy.com) covers bestbuy.com only. See the
Best Buy API page.
// CAD price, regular price, savings, sale_ends_at and the ehf for province.
await client.bestBuy.search({ query: "4k tv", country: "ca", sort: "price_low", province: "QC" });
// UPC, sale start / end (UTC), ehf_by_province, open-box and refurbished SKUs.
await client.bestBuy.product({ sku: "19791103", country: "ca" });
// Exact units per store near a postal code (no prices: they are national).
const stock = (await client.bestBuy.availability({ sku: "19791103", country: "ca", postal_code: "H3B 4W8", max_stores: 5 })) as any;
for (const s of stock.data.products[0].stores) console.log(s.store_id, s.name, s.city, s.units, s.status);
await client.bestBuy.deals({ country: "ca", collection: "black_friday" });
await client.bestBuy.stores({ country: "ca", postal_code: "M5V 3L9" });
await client.bestBuy.prices({ skus: ["19791103", "19296507"], country: "ca" });
await client.bestBuy.questions({ sku: "19296507", sort: "most_answered" });Captured 2026-11-25: the Apple MacBook Air 13.6" (2026, M5, 16GB / 512GB, SKU
19791103) at 1589.99 CAD (regular 1789.99, sale_ends_at
2026-12-03T07:00:00Z), with 35 units in the Centreville store in Montreal
(store 651). The price is national (the same in every province and store); only
the environmental handling fee varies by province (province, default ON;
ehf_by_province on product and prices). A store with no stock record for the
SKU comes back status: "unknown" with units: null, never out of stock.
Listings take page_size 1-100 (default 24), the sorts best_match,
price_low, price_high and rating (best_selling, best_discount and
newest are a 400 for Canada) and the extra filters rating, sold_by,
seller, in_stock_online and facets; results are capped at the first 2,000
of a query (results_capped). Marketplace sellers come back named as Best Buy
Canada lists them. Product rating and review_count are null (read them from
reviews or prices). deals takes a collection (black_friday,
top_deals, clearance, open_box, refurbished); dates_text carries the
collection's own dates when its page states them ("Sale kicking off November 19
and running until December 3" on the Black Friday collection). availability
takes 1-20 skus and exactly one of postal_code (max_stores 1-50) or up to
50 store_ids; stores takes a postal_code, a city or latitude +
longitude. Not available for Canada: per-store prices (the price is
national), a Deal of the Day (Best Buy Canada has none), results past 2,000 per
query, review photos hosted off Best Buy, cart or checkout, price history (poll
and store the answers). For the same model at other Canadian retailers use
client.amazon (country: "ca"), client.walmart (domain: "ca"),
client.costco (country: "ca") and client.canadianTire; match on brand and
model.
Newegg
Newegg (newegg.com, the US computer and electronics store): keyword search, category listings and the deal stores (Shell Shocker, Black Friday) with the price, list price, instant rebate, shipping and the selle
