Logo Walgreens Product Data

Walgreens Product Data

Cộng đồng
scavio-ai
walgreens-product-data

API dữ liệu sản phẩm Walgreens: tìm sản phẩm bán lẻ trên walgreens.com với giá thường, giá khuyến mãi, giá theo đơn vị, coupon, phần thưởng và khoản hoàn tiền; xem thông tin một sản phẩm gồm UPC, thành phần và ưu đãi; tìm cửa hàng Walgreens và Duane Reade gần mã ZIP; xem số lượng tồn kho trực tiếp của một sản phẩm tại tối đa 20 cửa hàng chỉ trong một lần gọi. 4 endpoint; tìm kiếm, sản phẩm và cửa hàng tốn 2 credit, tồn kho tốn 4 credit.

Tổng quan

Nhà phát hànhscavio-ai
Kho mãskills
Tên kỹ năngwalgreens-product-data
Sao
67
Bản fork
0
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 Walgreens Product Data 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/walgreens-product-data
  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/walgreens-product-data .claude/skills/walgreens-product-data
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 Walgreens Product Data 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 Walgreens Product Data 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 Walgreens Product Data 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.

Walgreens Product Data API - Prices, Store Stock, Stores

Search Walgreens retail products (health, beauty, household, grocery; nothing pharmacy) with regular and sale price, unit price, promotion, coupon, rewards and rebate messages, rating and review count, up to 70 per page. Read one product with UPC, ingredients, warnings and its current offers. Find Walgreens and Duane Reade stores near a ZIP, and check live unit counts of one product at up to 20 stores in a single call. All endpoints return structured JSON.

When to trigger

Use this skill when the user asks to:

  • Find health, beauty, personal care or household items at Walgreens by keyword
  • Check a Walgreens product's price, sale price, unit price, or the coupons and rewards on it
  • Check whether nearby Walgreens stores have an item in stock, and how many units each has
  • Find Walgreens or Duane Reade stores near a ZIP code or coordinates
  • Read a product's ingredients, warnings or UPC
  • List what is on sale or on clearance in a search
  • Compare Walgreens prices with CVS or other retailers, or monitor them

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. Search, product and stores cost 2 credits each; stock costs 4.

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.

Every request is a POST with a JSON body and:

Authorization: Bearer $SCAVIO_API_KEY

Endpoints

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

EndpointCreditsWhat it returns
POST /api/v1/walgreens/search2Up to 70 products per page: product id, SKU, UPC, name, brand, size, regular and sale price, multi-buy text, unit price, promotion, coupon, rewards and rebate messages, rating, review count, image, URL, ship / pickup / delivery availability, online stock status, clearance flag
POST /api/v1/walgreens/product2One product by id or URL: SKU, UPC, GTIN, name, brand, size, regular and sale price, savings, unit price, offers (rewards and rebates with dates), description, ingredients, warnings, rating, review count, categories, images, ship and pickup availability, FSA eligibility, clearance flag
POST /api/v1/walgreens/stores2Walgreens and Duane Reade stores near a ZIP or coordinates, nearest first: store number, name, brand, address, phone, coordinates, distance, opening and closing time, time zone and store page URL, paged
POST /api/v1/walgreens/stock4Live in-store stock of one product at up to 20 stores: per store the status (In Stock, Out of Stock, Not Available), unit count and in_stock. Unrecognized store numbers are listed in unknown_store_ids

Workflow

  1. Find the product: call /walgreens/search with query. Each row has a product_id.
  2. One product in full: call /walgreens/product with the product_id for offers, ingredients and warnings.
  3. Nearby stores: call /walgreens/stores with the user's zip. Each row has a store_number.
  4. Who has it: call /walgreens/stock with the product_id and up to 20 store_ids (the store_number values). One call covers every store.

Parameters

Search (/search)

ParameterTypeDefaultDescription
querystringrequiredKeywords (1-200 chars)
pageinteger11-based page (1-100), up to 70 results per page
sortstringrelevancerelevance, top_sellers, price_low_to_high, price_high_to_low, unit_price_low_to_high, brand_name_asc, brand_name_desc, most_reviewed, highest_rated, most_viewed or newest_arrival
store_idstring-Store number from /stores. Each row's availability.text then describes that store ("Not sold at your store")

Product (/product)

ParameterTypeDefaultDescription
product_idstringrequiredWalgreens product id, a search row's product_id ("300452904" or "prod6345045"), or a walgreens.com product URL

Stores (/stores)

ParameterTypeDefaultDescription
zipstringone ofUS ZIP code to search around
latitude, longitudenumberone ofCoordinates to search around, instead of zip
radiusnumber25Search radius in miles, 1-100
pageinteger11-based page (1-100)
limitinteger10Stores per page, 1-25

Stock (/stock)

ParameterTypeDefaultDescription
product_idstringrequiredProduct id or walgreens.com product URL
store_idsstring[]required1-20 store numbers, the store_number values from /stores

Examples

bash
curl -X POST https://api.scavio.dev/api/v1/walgreens/stock \
  -H "Authorization: Bearer $SCAVIO_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"product_id": "300452904", "store_ids": ["15350", "15992", "249", "178", "1173"]}'

Captured response (Walgreens shampoo at five Chicago stores):

json
{
  "data": {
    "product_id": "300452904",
    "article_id": "000000000012456764",
    "planogram": "40000735502",
    "count": 5,
    "in_stock_count": 5,
    "stores": [
      { "store_number": "15350", "status": "In Stock", "quantity": 3, "in_stock": true },
      { "store_number": "15992", "status": "In Stock", "quantity": 5, "in_stock": true },
      { "store_number": "249", "status": "In Stock", "quantity": 3, "in_stock": true },
      { "store_number": "178", "status": "In Stock", "quantity": 3, "in_stock": true },
      { "store_number": "1173", "status": "In Stock", "quantity": 1, "in_stock": true }
    ],
    "unknown_store_ids": []
  },
  "response_time": 2263,
  "credits_used": 4
}

A captured /search row for {"query": "shampoo", "store_id": "15350"} (image trimmed):

json
{
  "position": 1,
  "product_id": "300452904",
  "sku_id": "400675110",
  "upc": "19560214708",
  "name": "Walgreens Shiny & Smooth Shampoo",
  "brand": "Walgreens",
  "product_name": "Shiny & Smooth Shampoo",
  "size": "33.8 fl oz",
  "product_type": "Shampoo",
  "price": 4.99,
  "sale_price": 3.74,
  "sale_text": null,
  "on_sale": true,
  "unit_price": null,
  "unit_price_size": null,
  "promotion": null,
  "coupon": null,
  "loyalty_message": "Earn $10 rewards on $30+ spent on select Walgreens brands*",
  "rebate": "Extra 15% off $35+ eligible items sitewide* with code NOV15 or 20% off $50+ eligible items sitewide* with code NOV20",
  "rating": 4,
  "review_count": 90,
  "url": "https://www.walgreens.com/store/c/walgreens-shiny-%26-smooth-shampoo/ID=300452904-product",
  "availability": { "ship": true, "pickup": false, "delivery": false, "text": "In stock but not available for pickup" },
  "online_stock_status": "In Stock",
  "clearance": false,
  "article_id": "000000000012456764",
  "planogram": "40000735502"
}
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 wag(endpoint, body):
    r = requests.post(f"{BASE}/api/v1/walgreens/{endpoint}", headers=HEADERS, json=body, timeout=120)
    r.raise_for_status()
    return r.json()["data"]

# 1. Find the product (2 credits)
row = wag("search", {"query": "shampoo", "sort": "top_sellers"})["products"][0]
print(row["name"], row["price"], "sale", row["sale_price"], row["promotion"], row["coupon"])

# 2. The 20 nearest stores (2 credits)
stores = wag("stores", {"zip": "60614", "limit": 20})["stores"]
by_number = {s["store_number"]: s for s in stores}

# 3. Units at all 20 in one call (4 credits)
stock = wag("stock", {"product_id": row["product_id"], "store_ids": list(by_number)})
for s in stock["stores"]:
    if s["in_stock"]:
        st = by_number[s["store_number"]]
        print(st["address"]["street"], st["distance_miles"], "mi:", s["quantity"], "units")

Response shapes

Every response uses the envelope { data, response_time, fetched_at, credits_used, credits_remaining }. Nothing is cached; fetched_at is when Walgreens answered.

  • search - query, page, sort, store_id, total_results, total_pages, count, products[] (position, product_id, sku_id, upc, name, brand, product_name, size, product_type, price, sale_price, sale_text, on_sale, unit_price, unit_price_size, promotion, coupon, loyalty_message, rebate, rating, review_count, image, url, availability {ship, pickup, delivery, text}, online_stock_status, clearance, article_id, planogram).
  • product - product_id, sku_id, upc, gtin, name, display_name, brand, size, product_type, walgreens_brand, price, sale_price, sale_text, on_sale, unit_price, unit_price_size, promotion, savings_amount, savings_percent, loyalty_message, rebate, offers[] {type, title, headline, details, description, link_text, start_date, end_date}, clearance, store_pricing, description, ingredients[] {group, type, ingredients[]}, warnings, rating, review_count, categories[] {id, name, url}, images[], ship_available, pickup_available, ship_message, fsa_eligible, article_id, planogram, url.
  • stores - zip, latitude, longitude, radius_miles, page, total_results, total_pages, has_more, count, stores[] (store_number, name, brand, address {street, city, state, zip, intersection}, phone, latitude, longitude, distance_miles, open_time, close_time, time_zone, temporarily_closed, url).
  • stock - product_id, article_id, planogram, count, in_stock_count, stores[] (store_number, status, quantity, in_stock), unknown_store_ids[].

Guardrails

  • Prices are in dollars and national: 4.99 is $4.99 at every store. store_pricing is false on every product, and no endpoint takes a store for price, so never claim a store-specific price.
  • price is the regular price; sale_price is the single-unit sale price. A multi-buy deal keeps its text in sale_text ("2/$12.00 or 1/$6.99"). on_sale means a sale price below the regular price.
  • promotion, coupon, loyalty_message and rebate are the site's own text; quote them as written and do not compute a final price from them.
  • /stores returns store_number; pass those values as store_id (search) and store_ids (stock).
  • /stock quantities are live units at each store. status "Not Available" means the store does not carry the product, which is different from "Out of Stock". A store number Walgreens does not recognize lands in unknown_store_ids.
  • Without store_id on search, availability.text reads "Store inventory unavailable". Use /stock for real counts.
  • Retail only: prescriptions and pharmacy services are not covered.
  • Never fabricate prices, stock or offers. Only return what the API returned, with the product url.

Failure handling

  • 400 means a missing or invalid parameter (no query or product_id, an unknown sort, a ZIP that is not 5 digits, neither zip nor coordinates on /stores, limit above 25, or more than 20 store_ids).
  • 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 on /product or /stock means no such product, or Walgreens does not report store stock for it; use a product_id from search. Not charged.
  • 429 means rate or usage limit exceeded. Wait before retrying. See rate limits.
  • 502 means Walgreens is temporarily unavailable. It is not charged; retry after a few seconds.

SDKs

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

const scavio = new Scavio(); // reads SCAVIO_API_KEY
const { data: found } = await scavio.walgreens.search({ query: "shampoo", sort: "price_low_to_high" });
const item = await scavio.walgreens.product({ product_id: found.products[0].product_id });
const { data: near } = await scavio.walgreens.stores({ zip: "60614", limit: 20 });
const stock = await scavio.walgreens.stock({
  product_id: found.products[0].product_id,
  store_ids: near.stores.map((s) => s.store_number),
});

MCP: the Scavio MCP server exposes all 4 endpoints as tools (search_walgreens, get_walgreens_product, get_walgreens_stores, get_walgreens_stock). Walgreens is opt-in: add walgreens to SCAVIO_PLATFORMS.

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

Docs

Full reference per endpoint: search, product, stores, stock. Overview: Walgreens API.

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

Kỹ năng AI Walgreens Product Data làm được gì?

API dữ liệu sản phẩm Walgreens: tìm sản phẩm bán lẻ trên walgreens.com với giá thường, giá khuyến mãi, giá theo đơn vị, coupon, phần thưởng và khoản hoàn tiền; xem thông tin một sản phẩm gồm UPC, thành phần và ưu đãi; tìm cửa hàng Walgreens và Duane Reade gần mã ZIP; xem số lượng tồn kho trực tiếp của một sản phẩm tại tối đa 20 cửa hàng chỉ trong một lần gọi. 4 endpoint; tìm kiếm, sản phẩm và cửa hàng tốn 2 credit, tồn kho tốn 4 credit.

Vì sao nên dùng Walgreens Product Data 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. Walgreens Product Data 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 Walgreens Product Data 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/walgreens-product-data. 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 Walgreens Product Data?

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 Walgreens Product Data 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 Walgreens Product Data 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 Walgreens Product Data 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 👇