Check one costume character's stock at one size, across Target, Walmart, and Spirit Halloween
Given a costume character and a size, fans out to Target, Walmart, and Spirit Halloween and reports whether each retailer has that exact…
Given a costume character and a size, fans out to Target, Walmart, and Spirit Halloween and reports whether each retailer has that exact character-and-size combination in stock right now — the per-size question a plain product search can't answer, because Target and Walmart bake size into a free-text title and Spirit Halloween only exposes its full size matrix on the product page.
Also known as: costume size check, is this costume in stock in my size, kpop demon hunters costume size availability, halloween costume stock by size, check costume size availability
Call it
bowmark.costume_size_check.checkSize(args: { character: string; size: string }): Promise<CostumeSizeCheck>Functions
| Function | What it does |
|---|---|
checkSize | Checks whether one costume character exists in one size, right now, at Target, Walmart, and Spirit Halloween. |
Types
interface RetailerSizeMatch {
title: string
url: string
price: { amount: number; currency: string } | null
inStock: boolean
}
interface RetailerSizeResult {
matched: RetailerSizeMatch | null // null + incomplete=false means this retailer
// answered and has no listing in this size
incomplete: boolean // true means this retailer's call never
// answered — matched is NOT a stockout then
}
interface CostumeSizeCheck {
character: string
size: string
retailers: { target: RetailerSizeResult; walmart: RetailerSizeResult; spirithalloween: RetailerSizeResult }
warnings: string[]
}
type CallOptions = {
timeoutMs?: number // per-provider budget in ms, default 30000, clamped to 1000-55000.
// A provider slower than this is DROPPED from the results and
// NAMED in warnings — never silently absent
}Examples
// A real live check — run this as-is to see genuine current stock.
const check = await bowmark.costume_size_check.checkSize({ character: "Rumi", size: "7-8" });
for (const [retailer, result] of Object.entries(check.retailers)) {
if (result.incomplete) {
log(`${retailer}: did not answer — unknown, not a stockout`);
} else if (result.matched) {
log(`${retailer}: ${result.matched.inStock ? "IN STOCK" : "sold out"} — ${result.matched.url}`);
} else {
log(`${retailer}: no listing in this size`);
}
}
return check;Providers behind it
| Provider | |
|---|---|
target | Target |
walmart | Walmart |
spirithalloween | Spirit Halloween |