hasdata e-commerce APIs

Amazon and Shopify product data. Use this skill for an Amazon search, an ASIN, an Amazon seller, or a Shopify catalog. Triggers on "find products on Amazon", "Amazon search for", "ASIN", "Shopify products from", "this Shopify store", "what does this seller sell". Google Shopping is hasdata-shopping. A cross-store price check is hasdata-prices. Walmart is hasdata-walmart.

When to use it. - User wants product info from Amazon (search, single ASIN, seller, seller's products) - User wants to enumerate or filter a Shopify store's catalog or collections - User wants Google Shopping cross-retailer prices for a query - User wants the immersive-product detail card (Google's rich product view)

This is a skill for AI agents. Install for Cursor, Claude, Codex, and other agents with npx oli-skills install hasdata-ecommerce.

  • Cursor reads .cursor/skills/ and the rule created by npx oli-skills init.
  • Claude Code reads .claude/skills/.
  • Codex reads .codex/skills/ and .agents/skills/.

Source: hasdata

/hasdata-ecommerce@hasdata-ecommerce

Structured catalog and product data from Amazon and Shopify. Google Shopping is hasdata-shopping. A cross-store price check is hasdata-prices.

How to fetch

  1. If a HasData tool is connected, call the one in the table. Read its schema. Do not run a shell command, and skip the CLI fallback, while that tool exists.
  2. If no HasData tool is connected, ask the user to press Connect. In Claude Code, authenticate with /mcp. Do not install a binary and do not ask for an API key.
  3. The CLI fallback is only when the connector cannot be connected and hasdata is already on PATH.
AskTool name containsPass
Search Amazonamazon_searchq
One Amazon productamazon_productasin
Amazon reviewsamazon_reviewsasin
Amazon selleramazon_sellersellerId
That seller's productsamazon_seller_productssellerId
Shopify productsshopify_productsurl of the store
Shopify collectionsshopify_collectionsurl of the store

domain is the Amazon site when the user names a country. page continues a search. Do not invent a price.

When to use

  • User wants product info from Amazon (search, single ASIN, seller, seller's products)
  • User wants to enumerate or filter a Shopify store's catalog or collections
  • User wants Google Shopping cross-retailer prices for a query
  • User wants the immersive-product detail card (Google's rich product view)

Walmart is hasdata-walmart. A cross-store price check is hasdata-prices.

For non-platform URLs, use hasdata-scrape. For real-estate listings, jobs, or businesses, use the dedicated skill.

APIs in this group

CommandPurposeCost
amazon-searchAmazon search results for a query5
amazon-productFull product page by ASIN (price, ratings, images, sellers)5
amazon-sellerSeller profile by seller ID5
amazon-seller-productsAll products listed by a seller5
shopify-productsCatalog of any Shopify store (by URL)5
shopify-collectionsCollections list for a Shopify store5
google-shoppingGoogle Shopping aggregated results (multi-retailer prices)10
google-immersive-productGoogle's immersive product detail card5

CLI fallback

Only when the connector cannot be connected and hasdata is already on PATH. Otherwise ignore this section.

Amazon

# Search Amazon
hasdata amazon-search --q "wireless mouse" --pretty -o .hasdata/amazon-mouse.json

# Sort by price low → high, page 2
hasdata amazon-search --q "yoga mat" --sort-by priceLowToHigh --page 2 --pretty -o .hasdata/amazon-yoga-p2.json

# Single product by ASIN
hasdata amazon-product --asin "B0DHJ7SBDR" --pretty -o .hasdata/amazon-product.json

# Different Amazon domain
hasdata amazon-product --asin "B0DHJ7SBDR" --domain www.amazon.co.uk --pretty -o .hasdata/amazon-uk.json

# Seller's catalog
hasdata amazon-seller --seller-id "ATQQBVXK188KS" --pretty -o .hasdata/seller.json
hasdata amazon-seller-products --seller-id "ATQQBVXK188KS" --pretty -o .hasdata/seller-products.json

Shopify

# Any Shopify store's products (uses public /products.json)
hasdata shopify-products --url "https://allbirds.com" --limit 250 --pretty -o .hasdata/allbirds.json

# Filter by collection handle
hasdata shopify-products --url "https://allbirds.com" --collection "mens-shoes" --limit 100 --pretty -o .hasdata/allbirds-mens.json

# Store's collection list
hasdata shopify-collections --url "https://allbirds.com" --limit 50 --pretty -o .hasdata/allbirds-cols.json

Google Shopping

# Cross-retailer search
hasdata google-shopping --q "airpods pro 2" --pretty -o .hasdata/shopping-airpods.json

# Immersive product detail (uses kgmid / product ID from a Google search)
hasdata google-immersive-product --page-token "<immersiveProductPageToken>" --pretty -o .hasdata/immersive.json

Common Amazon flags

FlagPurpose
--q <query>Search query (search only)
--asin <id>Product ASIN (product only)
--seller-id <id>Seller ID (seller / seller-products)
--page <n>Pagination
--sort-byfeatured, priceLowToHigh, priceHighToLow, avgCustomerReview, newestArrivals, bestSellers
--domainwww.amazon.com, .co.uk, .de, .co.jp, .in, .ca, etc.
--languagePer-domain language code
--delivery-zipShipping ZIP for accurate pricing/availability
--shipping-locationTwo-letter country code for delivery

Tips

  • Amazon search → product fan-out is the most common pattern:
    hasdata amazon-search --q "ergonomic chair" --pretty -o .hasdata/chairs.json
    for asin in $(jq -r '.products[].asin' .hasdata/chairs.json | head -10); do
      hasdata amazon-product --asin "$asin" --pretty -o ".hasdata/chair-$asin.json" &
    done
    wait
    
  • Shopify doesn't need API keys per store — shopify-products works against any storefront's public /products.json. --limit 250 is the max.
  • For price tracking, always pass --delivery-zip on Amazon — prices and Prime eligibility vary by location.
  • Google Shopping is best when comparing prices across retailers; Amazon alone is faster when you only need Amazon listings.
  • google-immersive-product takes --page-token, the immersiveProductPageToken returned by google-shopping — it's not directly user-facing, always chain it after a Shopping call.

Working with results

# Amazon search → top 10 with title, price, rating, ASIN
jq -r '.products[0:10] | .[] | "\(.title)\t$\(.price.value // "n/a")\t\(.rating // "n/a")★\t\(.asin)"' .hasdata/amazon.json

# Amazon product → key fields
jq '{title, price: .price.value, rating, reviewsCount, mainImage}' .hasdata/amazon-product.json

# Shopify products → name, price, vendor
jq -r '.products[] | "\(.title)\t$\(.variants[0].price)\t\(.vendor)"' .hasdata/shopify.json

# Google Shopping → all retailer prices for a product
jq '.shoppingResults[] | {title, source, price, link}' .hasdata/shopping.json

See also

  • hasdata-scrape — for non-Amazon, non-Shopify product pages
  • hasdata-search — google-serp if you want general results not Shopping-specific
Skills Mixer