ebay-sold-listings-search
eBay sold-listings scraper across 8 marketplaces (ebay.com/.co.uk/.de/.fr/.it/.es/.ca/.com.au). Takes keyword plus filters (category, price range, item condition, item location, sort order, completed toggle) and returns paginated real-sale records with itemId, url, title, condition, conditionId, endedAt, soldPrice, soldCurrency, listingType (best_offer_accepted / buy_it_now / auction), isBestOfferAccepted, buyingFormat, bidCount, shipping, totalPrice, thumbnails, seller info, sellerType. Use when user mentions ebay sold, ebay sold listings, ebay sold prices, ebay completed listings, ebay comps, ebay resale prices, ebay auction sold results, ebay best offer accepted, scrape ebay sold, ebay market research, ebay pricing intelligence, ebay flipping research, real sold prices ebay, get sold prices from ebay. Also applies to price benchmarking, sold-price analytics, resale valuation, cross-marketplace price arbitrage, appraisal for collectibles, brand demand tracking on ebay.
git clone --depth 1 https://github.com/browser-act/skills /tmp/ebay-sold-listings-search && cp -r /tmp/ebay-sold-listings-search/solutions/ecommerce/ebay-sold-listings-search ~/.claude/skills/ebay-sold-listings-searchSKILL.md
# eBay — Sold Listings Search
> Keyword + filters → paginated list of items that actually sold on eBay, with final price, sold date, condition, listing format, shipping, seller, and images.
## Language
All process output to user (progress updates, process notifications) follows the user's language.
## Objective
Given one or more search keywords, fetch real sold (completed) listings from a chosen eBay marketplace with a user-defined filter set (category, price range, item condition, item location, sort order, completed-listings toggle), paginate up to the desired result count per keyword, and return one structured record per confirmed sale.
## Prerequisites
- Target eBay marketplace search page reachable in the browser: e.g. `https://www.ebay.com/sch/i.html?_nkw={keyword}&LH_Sold=1`. No login required.
- Ability to run `python`, `browser-act`, and `bash` (for `eval "$(python ...)"`).
## Pre-execution Checks
### 1. Tool Readiness
If browser-act has been confirmed available in the current session → skip this step.
Invoke `browser-act` via Skill tool to load usage. If installation or configuration issues arise, follow its guidance to resolve then retry.
## Capability Components
> This Skill's operational boundary = what the user can manually do in their browser. It only reads data already displayed to the user on the search results page, never bypassing authentication or access controls. Its role is equivalent to copy-pasting on the user's behalf — the sold data is already on screen, automation merely saves time. JS code is encapsulated in Python files under the `scripts/` directory, invoked via `eval "$(python scripts/xxx.py {params})"`. `$(...)` is bash syntax; use the bash tool for execution.
Below are all atomic capabilities discovered and verified during exploration. Combine freely as needed.
### URL Builder: assemble a sold-listings search URL for any of the 8 marketplaces
`URL=$(python scripts/build-url.py '{keyword}' --ebaySite {ebaySite} --sortOrder {sortOrder} --categoryId {categoryId} --subcategoryId {subcategoryId} --itemLocation {itemLocation} --itemCondition {itemCondition} --minPrice {minPrice} --maxPrice {maxPrice} --includeCompletedListings {true|false} --ipg {60|120|240} --page {pageNumber})`
The script prints one URL to stdout — capture into a bash variable and pass to `navigate`.
Parameters:
- `{keyword}` (positional, required): search term. 1–6 terms should each be run through a separate call.
- `--ebaySite`: `ebay.com` (default) · `ebay.co.uk` · `ebay.de` · `ebay.fr` · `ebay.it` · `ebay.es` · `ebay.ca` · `ebay.com.au`
- `--sortOrder`: `endedRecently` (default, `_sop=13`) · `timeNewlyListed` (`_sop=10`) · `pricePlusPostageLowest` (`_sop=15`) · `pricePlusPostageHighest` (`_sop=16`) · `distanceNearest` (`_sop=7`)
- `--categoryId`: main category filter (`_sacat`); default `0` (All Categories). Common IDs: see "Enum Parameters" section.
- `--subcategoryId`: subcategory ID; when set, overrides `--categoryId`.
- `--itemLocation`: `default` (`LH_PrefLoc=98`) · `domestic` (`LH_PrefLoc=1`, US Only on ebay.com) · `worldwide` (`LH_PrefLoc=2`)
- `--itemCondition`: `any` (no filter) · `new` (`LH_ItemCondition=1000`) · `used` (`LH_ItemCondition=3000`) · or pass any numeric eBay condition id (e.g. `1500` for Open Box, `2010` for Excellent Refurbished, `7000` for Parts). See enum section.
- `--minPrice` / `--maxPrice`: numeric filters `_udlo` / `_udhi`.
- `--includeCompletedListings`: `true` (default, adds `LH_Complete=1` — Best-Offer-Accepted detection works) or `false` (BOA appears as plain `buy_it_now`).
- `--ipg`: items per page — `60` (default), `120`, or `240`. Larger `ipg` fetches more per page but pages get heavier.
- `--page`: page number for pagination (`_pgn`), default `1`.
Output: a single fully-qualified URL string on stdout.
### DOM: extract sold-listing cards from the current eBay search results page
Prerequisite: browser is currently on an eBay sold-listings search URL and the results have rendered.
1. `navigate "$URL"` (using URL from build-url.py)
2. `wait --selector "li.s-card" --state visible --timeout 30000` (eBay may show a splash challenge before the results page; the splash resolves itself and `li.s-card` appears)
3. `eval "$(python scripts/extract-page.py --keyword '{keyword}')"`
Parameters of `extract-page.py`:
- `--keyword`: pass-through tag written to each item's `keyword` field so multi-keyword batches can be regrouped later. Optional; empty by default.
The extractor filters out eBay's promotional "Shop on eBay" placeholder cards automatically, only keeping cards with a real `data-listingid`.
Output example (top-level shape):
```json
{
"error": false,
"pageUrl": "https://www.ebay.com/sch/i.html?_nkw=iphone+15&LH_Sold=1&LH_Complete=1&_ipg=60&_pgn=1&_sop=13",
"heading": "17,000+ results for iphone 15", // total count string as shown on the page; may say "10,000+" for very large sets
"categoryId": null, // _sacat from URL, null if All Categories
"category": "Cell Phones & Smartphones", // label from the eBay category dropdown
"itemCount": 60, // number of real items (excludes promo cards)
"hasNextPage": true, // whether a "Next" pagination link exists
"nextUrl": "https://www.ebay.com/sch/...&_pgn=2", // href of the Next link, if present
"items": [ /* array of item records */ ]
}
```
Per-item record example:
```json
{
"itemId": "198484429340", // eBay item ID
"url": "https://www.ebay.com/itm/198484429340", // canonical item URL (query stripped)
"title": "Apple iPhone 15 Pro 128GB Blue A2848 Triple ...", // localized card title
"condition": "Pre-Owned", // localized condition label as displayed (Pre-Owned, Gebraucht, Neuf, Nuovo, Usado, Open Box, etc.); null when not shown
"conditionId": 3000, // bestExtracts comprehensive wholesale product data from 1688.com product detail pages: title, tiered pricing, SKU variants with dimensions/weight, product images, seller info, shop scores, buyer protection, cross-border flags, product attributes, coupon/promotion data, and review stats. Use when user mentions 1688, 1688.com, wholesale China, alibaba wholesale, B2B China sourcing, Chinese wholesale scraper, 1688 product scrape, 1688 offer, 1688 detail, extract 1688 data, pull 1688 listings, get wholesale price, 1688 supplier info, factory stats 1688, 1688 SKU variants, 1688 product attributes, 1688 shop score, DSR score 1688, 1688 buyer protection, 1688 cross-border, 1688 dropship. Also applies to: scraping bulk product data from 1688 by offer ID list, monitoring 1688 supplier metrics, extracting 1688 pricing tiers for resale analysis.
Fetches complete Airbnb listing details for a given numeric listing ID via the internal GraphQL API, returning title, room type, description, amenities, photos, coordinates, city, house rules, highlights, ratings, review count, bedroom configuration, and property overview. Use when user mentions Airbnb listing details, Airbnb property info, Airbnb room details, get Airbnb listing data, Airbnb amenities list, Airbnb house rules, Airbnb property description, Airbnb detail page scraper, Airbnb rooms detail, Airbnb property page data, Airbnb listing info, fetch Airbnb room details, pull Airbnb listing.
Extracts Airbnb accommodation search results from a destination query via SSR-embedded data, returning listing ID, URL, name, coordinates, rating, price, photos, and badge info for each result, plus pagination cursors for multi-page retrieval. Use when user mentions Airbnb search results, Airbnb listings, vacation rental search, short-term rental listings, scrape Airbnb, get Airbnb data, find rentals on Airbnb, Airbnb destination search, Airbnb property list, Airbnb stays search, Airbnb accommodation results, pull Airbnb listings, collect Airbnb search data, Airbnb scraper, Airbnb search page extraction, Airbnb search by destination.
Amazon Alexa for Shopping Q&A automation: submits questions to Amazon's Alexa/Rufus AI shopping assistant and collects response text; supports optional keyword search context (navigate to search results page before asking for category-specific answers). Use when user mentions Amazon Alexa, Rufus, Amazon shopping assistant, Amazon AI chat, ask Amazon, Amazon Q&A, automate Alexa questions, Rufus chatbot, Amazon assistant automation, collect Alexa responses, bulk question submission to Amazon, keyword search context, category research. Also applies to extracting Amazon product recommendations from conversational AI, automating repeated queries to Amazon's AI shopping feature, collecting Alexa shopping responses at scale, or market research within a specific product category.
This skill helps users extract structured product details from Amazon using a specific ASIN (Amazon Standard Identification Number). Use this skill when the user asks to get Amazon product details by ASIN, lookup Amazon product title and price using ASIN, extract Amazon product ratings and reviews count for a specific ASIN, check Amazon product availability and current price, get Amazon product description and features via ASIN, enrich product catalog with Amazon data using ASIN, monitor Amazon product price changes for specific ASINs, retrieve Amazon product brand and material information, fetch Amazon product images and specifications by ASIN, validate Amazon ASIN and get product metadata.
This skill helps users extract structured best-selling product data from Amazon via the BrowserAct API. Agent should proactively apply this skill when users express needs like search for best selling products on Amazon, extract Amazon product data based on keywords, find top rated Amazon products, monitor Amazon competitor prices and sales, discover trending products on Amazon marketplace, extract Amazon product titles prices and ratings, gather Amazon product sales volume for market research, search Amazon best sellers in specific region, collect Amazon product reviews and promotion details, analyze Amazon product availability and badges, get Amazon product data for market analysis.
Amazon Best Sellers listing scraper: extract product cards from any Amazon Best Sellers (zgbs) or /gp/bestsellers/ category page — returns rank (position on chart), asin, title, url, image, imageAlt, price, stars, reviewCount, ratingRaw per item, plus category metadata (categoryName, categoryFullName, categoryUrl) and pagination state (currentPage, hasNextPage, nextPageUrl). Works across all Amazon regional TLDs (amazon.com, amazon.co.uk, amazon.de, amazon.co.jp, amazon.fr, amazon.it, amazon.es, amazon.ca, amazon.com.au, amazon.in, etc.). Use when user mentions Amazon Best Sellers, Amazon bestsellers, Amazon top 100, Amazon zgbs, Amazon /zgbs/, Amazon /gp/bestsellers/, Amazon Best Sellers Rank, Amazon BSR, Amazon top ranked products, Amazon top-selling products, Amazon chart, Amazon category ranking, Amazon best sellers by category, Amazon best sellers electronics, Amazon best sellers kitchen, Amazon best sellers toys, scrape Amazon bestsellers, extract Amazon top 100, Amazon rank scraper, Amazon best seller list, Amazon leaderboard, Amazon trending products, discover trending Amazon products, Amazon niche discovery, Amazon top ranked ASINs. Also applies to competitive intelligence via ranking snapshots, spotting up-and-coming products, sourcing bestseller ASINs for further enrichment, tracking rank changes over time, and building bestseller-per-category datasets.
This skill helps users extract basic product details other sellers prices and seller ratings from Amazon via ASIN automatically using the BrowserAct API. Agent should proactively apply this skill when users express needs like query Amazon buy box information, monitor Amazon product prices, extract Amazon product details by ASIN, check other sellers prices on Amazon, get Amazon seller ratings and feedback count, monitor buy box ownership for a specific ASIN, track Amazon fulfillment methods for competitors, compare Amazon product prices across different sellers, retrieve Amazon buy box availability status, analyze Amazon seller profile details.