Logo B Stock Api

B Stock Api

Cộng đồng
scavio-ai
b-stock-api

B-Stock API for B-Stock (bstock.com, the liquidation marketplace where retailers and brands sell customer returns and overstock by the pallet or truckload) - which liquidation lots are open right now, what the current bid and next minimum bid are, what the seller states the lot is worth at retail, how many units and pallets it holds and where it ships from, as bstock.com shows it to a visitor who is not signed in (on 2026-11-28 the 37 storefronts with open listings held 735 lots; the search "laptop" matched 20 open lots, the first 8 Apple 16-inch MacBook Pro laptops at a 1,680 USD opening bid; a lot of 2 pallets of insulated work boots, 218 units with a stated retail value of 61,522 USD, stood at 1,508 USD after 21 bids, next minimum bid 1,533 USD, with 11 manifest rows) with current bid, bids, retail value, buy-now window, end time, condition, inventory type, categories, units, pallets, shipment type and location; search by keyword, storefront, category, subcategory, condition, inventory type, buying format, region, shipment type and manufacturer, up to 200 a call, sorted recommended, ending soonest or relevance; one lot with its auction state, shipping and the public manifest preview (the first 10 rows and the total); the storefronts and the search filters with their counts. 4 endpoints, 1 credit each. Open listings only: no closed or sold lots, final prices, full manifests or bidder data.

Tổng quan

Nhà phát hànhscavio-ai
Kho mãskills
Tên kỹ năngb-stock-api
Sao
145
Bản fork
1
Tệp đi kèm
Chỉ có hướng dẫn
Giấy phépMIT
Liên kết
  • Hướng dẫn bằng Markdown

    Tệp SKILL.md được mô hình tải khi cần, nên chỉ tốn token khi có yêu cầu thực sự phù hợp.

  • Dùng được với mọi LLM

    Kỹ năng AI dùng hướng dẫn viết bằng Markdown thay vì mã dành riêng cho một nhà cung cấp, nên dùng được với GPT, Claude, Gemini, Grok hoặc mô hình cục bộ.

  • Hướng dẫn có đủ mọi thứ cần thiết

    Mọi thứ mô hình cần đều nằm trong hướng dẫn — không có tệp bổ sung cần đồng bộ.

  • Mã nguồn mở

    Được scavio-ai công bố trên GitHub. Hãy đọc các tệp nguồn trước khi cài đặt.

Cài đặt

Cài đặt kỹ năng AI B Stock Api trong TypingMind để dùng với bất kỳ LLM nào, hoặc thêm vào một tác nhân AI khác có thể đọc SKILL.md.

1

Cài đặt trong TypingMind

TypingMind cài đặt kỹ năng trực tiếp từ thư mục GitHub — đọc SKILL.md, đóng gói các tệp tài nguyên và lưu kết quả trên máy.

  1. Mở ứng dụng và vào Plugin → Kỹ năng.
  2. Chọn "Cài đặt từ GitHub".
  3. Dán URL của thư mục kỹ năng được hiển thị bên dưới rồi xác nhận.
    https://github.com/scavio-ai/skills/tree/main/skills/b-stock-api
  4. Bật kỹ năng trong từng cuộc trò chuyện mà bạn muốn sử dụng kỹ năng đó.
Plugin → Kỹ năng → Thêm kỹ năng → Từ URL GitHub, sau đó dán URL thư mục và nhấn Tiếp tục.
2

Cài đặt trong tác nhân AI khác

Bất kỳ tác nhân AI nào đọc được định dạng Agent Skills đều có thể dùng kỹ năng này — hãy sao chép thư mục vào thư mục kỹ năng của tác nhân AI đó.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/scavio-ai/skills.git /tmp/skills
mkdir -p .claude/skills
cp -r /tmp/skills/skills/b-stock-api .claude/skills/b-stock-api
Khởi động lại Claude Code sau khi sao chép để ứng dụng nhận kỹ năng mới.

Sử dụng trong TypingMind

Bật B Stock Api trong bất kỳ cuộc trò chuyện nào trên TypingMind, mô hình sẽ tự xử lý phần còn lại. Tên và mô tả của kỹ năng nằm trong prompt hệ thống. Ngay khi có yêu cầu phù hợp, mô hình tự tải toàn bộ hướng dẫn — bạn không cần gọi thủ công và kỹ năng không tốn token cho đến khi thực sự được dùng.

Mô hình tự nạp B Stock Api ngay khi có yêu cầu phù hợp.

Dùng được với mọi mô hình AI

Kỹ năng AI là các hướng dẫn Markdown thuần túy, không phải mã dành riêng cho một nhà cung cấp, nên bạn có thể dùng B Stock Api với cả những mô hình khác ngoài mô hình ban đầu. Chỉ cần cài đặt một lần trong TypingMind rồi dùng với GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama hoặc mô hình cục bộ do bạn tự chạy — tất cả đều dùng khóa API của riêng bạn.

  • Chỉ tải khi cần

    Prompt hệ thống chỉ chứa tên và mô tả. Hướng dẫn được tải khi có yêu cầu phù hợp đầu tiên, nên khi kỹ năng chưa được dùng, bạn không tốn token cho phần hướng dẫn.

  • Đổi mô hình ngay trong cuộc trò chuyện

    Vì kỹ năng là hướng dẫn chứ không phải mã, việc đổi mô hình không làm kỹ năng ngừng hoạt động — mô hình tiếp theo vẫn đọc cùng tệp SKILL.md.

Hướng dẫn của kỹ năng

Đây là nội dung SKILL.md mà mô hình tải. Hãy đọc trước khi cài đặt — kỹ năng là những hướng dẫn mà mô hình của bạn sẽ làm theo.

B-Stock API - Liquidation Lots, Current Bids, Retail Value, Manifest Previews

Read B-Stock (bstock.com, the liquidation marketplace where retailers and brands sell customer returns and overstock by the pallet or truckload): the open lots by keyword and filter, one lot with its auction state and public manifest preview, the storefronts with open listings, and the search filters with their counts. As shown to a visitor who is not signed in.

The job this skill is for: what an open B-Stock lot holds and where its bidding stands right now. Every lot carries the current bid, the bid count, the seller's stated retail value, the units and pallets, the condition and inventory type and where it ships from; one lot adds the next minimum bid, the end time (and whether a late bid extended it) and the first manifest rows. On 2026-11-28 a lot of 2 pallets of insulated work boots (218 units, stated retail 61,522 USD) stood at 1,508 USD after 21 bids, next minimum bid 1,533 USD.

Six limits shape every answer, so say them plainly:

  • 1 credit per call, every endpoint. credits_used in the response is the truth. A not-found (404) is charged; a refused input (400) and an upstream failure (502, 503) are not.
  • Open listings only. Search lists live auctions and offers. Closed and sold lots and their final prices are not available.
  • Manifest preview, not the full manifest. /lot returns the manifest rows B-Stock shows publicly (up to 10) and items_total; the full manifest needs a signed-in buyer account.
  • Amounts in the listing's currency. USD for most lots; EUR or GBP for Amazon Europe lots. B-Stock shows fee-inclusive prices and shipping costs to signed-in buyers only.
  • Bids move live. current_bid, bids and end_time are as of the fetch; a late bid can extend the close. Scavio keeps nothing: poll and store your own series.
  • No bidder data. Bid and bidder counts only; no bidder identities, ever.

B-Stock offers no public, self-serve API for its listings. The lots are shown on bstock.com, and this skill reads those public pages with one Scavio key.

See also: Liquidation.com liquidation-com-api and Nellis Auction nellis-auction-api (liquidation auctions), eBay ebay-product-data and Amazon amazon-product-data (resale prices of the same items).

When to trigger

Use this skill when the user asks to:

  • Find open B-Stock lots by keyword ("laptop", "boots", "small appliances"), storefront (a retailer or brand marketplace), category, condition, inventory type or where they ship from
  • Watch a lot: current bid, next minimum bid, bid count, end time and whether it was extended
  • Read what a lot holds: units, pallets, condition breakdown, categories, manufacturers, models and the public manifest preview
  • List the storefronts with open listings, or the filter values with B-Stock's counts

Setup

Get a free API key at scavio.dev (50 free credits to get started, no card required):

bash
export SCAVIO_API_KEY=sk_live_your_key

If you do not have a key yet

An agent running this skill without SCAVIO_API_KEY set will get 401 on every call below. The whole path from nothing to a working key is self-serve:

  1. Sign up at dashboard.scavio.dev - email or Google, no card required.
  2. A key is created for the account automatically at signup. It is on the dashboard under API Keys, ready to copy.
  3. A new account starts with 50 credits. Every call in this skill costs 1 credit, so 50 credits cover 50 calls.

When the balance runs out the API answers 402 with a JSON body carrying billing_url. Topping up needs no code change - the same key keeps working. Paid plans start with Hobby at $15 per month for 3,000 credits; on Growth, 1,000 credits cost $1.

Every request is a POST with a JSON body and:

Authorization: Bearer $SCAVIO_API_KEY

Endpoints

Base URL: https://api.scavio.dev.

EndpointWhat it returnsCredits
POST /api/v1/bstock/searchOpen lots by keyword and filters: 20 per call by default (up to 200), paged with offset, with current bid, bids, retail value, units, pallets, condition, end time and location1
POST /api/v1/bstock/lotOne lot by listing id or link: auction state, next minimum bid, retail value, units, shipping, description and the public manifest preview1
POST /api/v1/bstock/storefrontsThe retailer and brand storefronts with open listings, each with its open listing count1
POST /api/v1/bstock/filtersThe search filters with B-Stock's counts of open listings: categories, subcategories, conditions, inventory types, regions, manufacturers and more1

Workflow

  1. Know the filters. /storefronts lists the storefronts (send id, value or name as storefront); /filters lists every filter value with its count (send each as the search field of the same name).
  2. Find lots. /search with q and any filters. Each filter takes one value or a list of up to 10 (any of them). sort: recommended (the default without q), end_time (soonest closing first) or relevance (needs q; the default with q).
  3. Next pages. Send offset = previous offset + limit while has_more is true.
  4. One lot. /lot with id (listings[].listing_id) or url (listings[].url).
  5. Watching a lot: there is no history. Poll the same listing id on a schedule and store each answer with its fetched_at; that stored series is the history.

Parameters

Search (/search)

ParameterDescription
qKeywords, up to 200 characters. Omitted: every open lot (filters and sort still apply)
storefrontA storefront: storefronts[].id, value or name from /storefronts
category, subcategorycategories[].value / subcategories[].value from /filters (e.g. Electronics, Laptops)
conditionNew, Like New, Used Good, Used Fair, Mixed, Salvage ...
inventory_typeCustomer Returns, Overstock, Shelf Pulls, Mixed/Other ...
buying_formatAUCTION, BUY_NOW or MAKE_AN_OFFER
regionWhere the lot ships from: GA/US a US state, ON/CA a Canadian province, /ES a European country
shipment_typeLTL, PARCEL or Truckload
manufacturerAs B-Stock lists it (/filters gives the top 500)
sortrecommended, end_time or relevance
limit, offset1-200 (default 20); 0-10000

Lot (/lot)

Send id (a listing id of 24 hex characters, or the number of an Amazon Europe lot) or url (a bstock.com listing link from listings[].url).

Examples

One search listing

Request {"q": "laptop"} (1 credit): total 20, sort relevance. One listing, abridged:

json
{
  "position": 1,
  "listing_id": "6b059dff8ca35710ee08650b",
  "title": "Apple 16\" MacBook Pro Laptop A2141 i7-9750H, 8 Units, Grade B/C, Norcross GA",
  "lot_source": "marketplace",
  "storefront": { "id": "68f27c38cd13c8fc681ae642", "name": "B-Stock ITAD" },
  "currency": "USD",
  "current_bid": 1680,
  "bids": 0,
  "unique_bidders": 0,
  "retail_value": null,
  "buy_now": { "available": false, "ends_at": null },
  "pricing_strategy": "AUCTION",
  "end_time": "2026-12-01T17:15:00.000Z",
  "condition": "Mixed",
  "categories": ["Electronics"],
  "units": 8,
  "pallets": 0,
  "shipment_type": "PARCEL",
  "has_manifest": true,
  "location": { "city": "Norcross", "state": "GA", "country": "US", "region": "Norcross, GA, United States" }
}

current_bid is the opening price while bids is 0, as the listing page shows it.

One lot

Request {"id": "6b05cd6821e9e20881d2a998"} (1 credit), abridged:

json
{
  "listing_id": "6b05cd6821e9e20881d2a998",
  "title": "2 Pallets of Monarch Insulated Boots, Crossbeam 10\" Boots Insulated Composite Toe & More",
  "status": "SCHEDULED",
  "currency": "USD",
  "auction": { "state": "open", "start_price": 100, "current_bid": 1508, "next_minimum_bid": 1533, "bids": 21, "unique_bidders": 10, "end_time": "2026-12-01T19:00:00.000Z", "extended": false },
  "views": 376,
  "deal": "Great Price",
  "retail_value": 61522,
  "units": 218,
  "pallets": 2,
  "condition": "New",
  "manifest": { "items_total": 11, "preview_count": 10, "full_manifest": "sign_in_required" }
}

manifest.preview holds the public rows, each with description, quantity, unit_retail, ext_retail, condition, brand and model.

Storefronts and filters

  • /storefronts: count 37, total_open_listings 735, e.g. {"name": "Amazon", "open_listings": 24, "lot_source": "marketplace"} and {"id": "a2z", "name": "Amazon Europe", "open_listings": 38, "lot_source": "amazon_europe"}.
  • /filters: 18 categories (e.g. Apparel Shoes & Accessories 132), 111 subcategories, 8 conditions, 6 inventory types, 35 regions and the top 500 manufacturers.

Python

python
import requests

BASE = "https://api.scavio.dev"
# Your key from https://scavio.dev. Load it from your environment or secret
# store in real code - keep it out of source control.
API_KEY = "sk_your_key_here"
HEADERS = {"Authorization": f"Bearer {API_KEY}"}

def bstock(endpoint, body):
    r = requests.post(f"{BASE}/api/v1/bstock/{endpoint}", headers=HEADERS, json=body, timeout=180)
    r.raise_for_status()
    return r.json()

# 1. Open lots for a keyword, soonest closing first (1 credit)
hits = bstock("search", {"q": "laptop", "sort": "end_time"})["data"]
for it in hits["listings"][:5]:
    print(it["listing_id"], it["title"], it["current_bid"], it["bids"], it["units"], it["end_time"])

# 2. One lot with its manifest preview (1 credit)
lot = bstock("lot", {"id": "6b05cd6821e9e20881d2a998"})["data"]
print(lot["auction"]["current_bid"], lot["auction"]["next_minimum_bid"], lot["retail_value"], lot["manifest"]["items_total"])

# Bids change by the minute. Store each answer with fetched_at and poll on a
# schedule: that stored series is your history.

Response shapes

Every response uses the envelope { data, response_time, fetched_at, credits_used, credits_remaining }. Each call fetches the page when the request asks for it.

  • search - query, sort, limit, offset, total, count, has_more, filters_applied, listings[] {position, listing_id, title, url, lot_source, storefront {id, name}, currency, current_bid, bids, unique_bidders, retail_value, buy_now {available, ends_at}, pricing_strategy, listing_type, start_time, end_time, condition, inventory_type, categories, lot_categories[], units, pallets, manufacturers, models, shipment_type, transport_mode, allowed_shipment_types, has_manifest, deal, location {city, state, country, region}, image}, notes.
  • lot - requested_id, listing_id, listing_number, title, url, lot_source, status, storefront {id, name, slug}, currency, pricing_strategy, listing_type, purchasing_starts, purchasing_ends, auction {state, start_price, current_bid, next_minimum_bid, bids, unique_bidders, start_time, end_time, initial_end_time, extended, closed, canceled, buying_format_sequence, buy_now}, views, deal, retail_value, units, pallets, condition, conditions, inventory_types, packaging, categories, manufacturers, models, description, location, shipping {transport_mode, allowed_shipment_types, truck_count, hazmat, note}, images, seller_terms_url, manifest {items_total, preview_count, full_manifest, preview[]}, notes.
  • storefronts - count, total_open_listings, storefronts[] {id, name, value, open_listings, lot_source}, notes.
  • filters - total_open_listings, categories, subcategories, conditions, inventory_types, buying_formats, shipment_types, regions[] {value, path, count}, manufacturers, listing_types, deals ({value, count} each), storefront_count, notes.

Guardrails

  • Name it "B-Stock (bstock.com, the liquidation marketplace where retailers sell returns and overstock)" on first mention. Storefront names are the sellers' marketplaces on B-Stock; never imply that Scavio or the user has any relationship with a storefront retailer.
  • Bids: quote current_bid with its currency, bids and the fetched_at time, and say bids move live. Quote retail_value as "the seller's stated retail value", never as a market price or an expected resale price.
  • Manifests: say the preview is the first rows B-Stock shows publicly and give items_total; never present the preview as the whole manifest.
  • No bidder identities are returned; never try to identify bidders or sellers' staff.
  • Use: keep any use descriptive - looking up open lots, their bids, contents and shipping for sourcing decisions.
  • Links and content: refer to lots by listing id and title; do not republish B-Stock's photos, descriptions or manifests.
  • Not available: closed or sold lots, final prices, full manifests, fee-inclusive prices, shipping quotes, bidding, buying or accounts. This API cannot bid or buy.
  • Terms: Scavio does not store B-Stock data: each call fetches the public page at the moment the request asks for it and returns what it shows as JSON, with no response cache. B-Stock's terms restrict automated access to its site and how its content may be used; read the current terms for your use case and get your own advice. This is not legal advice.
  • Never fabricate bids, lots, retail values or manifest rows. Only return what the API returned, with the fetched_at time.

Failure handling

  • 400 means a missing or invalid parameter, and it is not charged: "id or url is required"; "storefront must be a storefront id, value or name from the storefronts endpoint."; "q must contain letters or digits."; a filter list above 10 values; sort relevance without q.
  • 401 means the API key is invalid or missing. Check SCAVIO_API_KEY.
  • 402 means the balance is out of credits. The body carries billing_url.
  • 404 means not found, and it is charged 1 credit: an unknown listing id, a make-an-offer listing (its details show to signed-in buyers only; its search listing carries the summary), or a storefront name with no open listings. A search with no lots is a 200 with total 0.
  • 429 means rate or usage limit exceeded. Wait before retrying. See rate limits.
  • 502 and 503 mean B-Stock data was temporarily unavailable. They are not charged, so retry after a few seconds.
  • Search, storefronts and filters usually take 1-10 seconds; a lot 3-45. Allow a client timeout of at least 180 seconds.
  • If SCAVIO_API_KEY is not set, prompt the user to export it before continuing.

SDKs

bash
pip install scavio==0.108.0
npm install scavio@0.109.0
js
import { Scavio } from "scavio";

const scavio = new Scavio(); // reads SCAVIO_API_KEY
const { data: hits } = await scavio.bstock.search({ q: "laptop", storefront: "Target" });
const { data: lot } = await scavio.bstock.lot({ id: "6b05cd6821e9e20881d2a998" });
const { data: storefronts } = await scavio.bstock.storefronts();
const { data: filters } = await scavio.bstock.filters();

In Python (from scavio import ScavioClient, client = ScavioClient()) the same methods are client.bstock.search(...), lot, storefronts and filters, with the same parameter names as keyword arguments.

MCP

The Scavio MCP server exposes all 4 endpoints as tools: search_bstock, get_bstock_lot, get_bstock_storefronts and get_bstock_filters. B-Stock is opt-in: add bstock to SCAVIO_PLATFORMS.

json
{
  "mcpServers": {
    "scavio": {
      "command": "npx",
      "args": ["-y", "@scavio/mcp-server@0.108.0"],
      "env": {
        "SCAVIO_API_KEY": "sk_live_your_key",
        "SCAVIO_PLATFORMS": "default,bstock"
      }
    }
  }
}

Docs

Full reference per endpoint: search, lot, storefronts, filters. Platform page: scavio.dev/bstock-api.

Câu hỏi thường gặp

Kỹ năng AI B Stock Api làm được gì?

B-Stock API for B-Stock (bstock.com, the liquidation marketplace where retailers and brands sell customer returns and overstock by the pallet or truckload) - which liquidation lots are open right now, what the current bid and next minimum bid are, what the seller states the lot is worth at retail, how many units and pallets it holds and where it ships from, as bstock.com shows it to a visitor who is not signed in (on 2026-11-28 the 37 storefronts with open listings held 735 lots; the search "laptop" matched 20 open lots, the first 8 Apple 16-inch MacBook Pro laptops at a 1,680 USD opening b...

Vì sao nên dùng B Stock Api trên TypingMind?

Vì bạn chỉ cần cài một lần rồi dùng với bất kỳ mô hình nào. B Stock Api là nội dung Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên cùng một kỹ năng có thể chạy trên GPT-5, Claude, Gemini, Grok hoặc mô hình trên thiết bị — và bạn có thể đổi mô hình ngay trong cuộc trò chuyện mà kỹ năng vẫn hoạt động. TypingMind dùng khóa API riêng của bạn, nên bạn thanh toán trực tiếp cho nhà cung cấp thay vì trả phí thuê bao theo suất người dùng, đồng thời kỹ năng và các cuộc trò chuyện vẫn nằm trong bộ lưu trữ của bạn.

Làm thế nào để cài B Stock Api trong TypingMind?

Mở Plugin → Kỹ năng → Cài đặt từ GitHub trong TypingMind rồi dán https://github.com/scavio-ai/skills/tree/main/skills/b-stock-api. TypingMind đọc tệp SKILL.md rồi cài đặt kỹ năng để bạn có thể bật cho từng cuộc trò chuyện.

Những mô hình AI nào có thể dùng B Stock Api?

Bất kỳ mô hình nào bạn kết nối trong TypingMind. Kỹ năng AI là các hướng dẫn bằng Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên GPT, Claude, Gemini, Grok và các mô hình chạy trên thiết bị đều có thể tải kỹ năng này khi có yêu cầu phù hợp.

Có thể dùng B Stock Api với bao nhiêu mô hình AI?

Bao nhiêu cũng được. Miễn là mô hình hỗ trợ kỹ năng, bạn có thể dùng B Stock Api với mô hình đó — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama và nhiều mô hình khác — tất cả đều trên TypingMind với khóa API riêng của bạn.

Kỹ năng AI B Stock Api có miễn phí không?

Có. Kỹ năng này được scavio-ai phát hành trên GitHub theo giấy phép MIT. Bạn chỉ trả tiền cho nhà cung cấp AI của mình theo số token đã dùng.

Kỹ năng AI là gì?

Kỹ năng AI là một gói hướng dẫn có thể tái sử dụng, chỉ cho mô hình AI cách thực hiện một tác vụ cụ thể. Kỹ năng tuân theo định dạng mở Agent Skills: một tệp SKILL.md chứa tên và mô tả, cùng các tập lệnh, mẫu hoặc tệp tham khảo mà mô hình có thể cần. Mô hình chỉ đọc hướng dẫn khi yêu cầu của bạn phù hợp với kỹ năng, nên kỹ năng đã cài đặt không phát sinh chi phí cho đến khi được sử dụng.

Kỹ năng AI khác gì với plugin hoặc máy chủ MCP?

Plugin hoặc máy chủ MCP cung cấp các công cụ mới mà mô hình có thể gọi. Khi mô hình gọi một công cụ, mã của công cụ đó chạy ở đâu đó và trả về kết quả. Còn kỹ năng AI cung cấp kiến thức và quy trình: cách tiếp cận tác vụ, các bước cần thực hiện và những tiêu chí mà kết quả cần đáp ứng. Kỹ năng chỉ là nội dung Markdown, nên không cần máy chủ, khóa API hay môi trường thực thi và hoạt động với mọi mô hình.

Xem tất cả

Tạo ngay không gian làm việc AI riêng

Đăng ký bản tin của chúng tôi để nhận thông báo về tính năng mới và các đợt tặng quà sắp tới 👇