Skip to content
Agentmart
Submit a tool

ebay-sold-listings-search

eBay sold-listings scraper across 8 marketplaces (ebay.com/.co.uk/.de/.fr/.it/.es/.ca/.com.au).

Skill by browser-act

IndexedMIT★ 6,268
Write a review

Chalk Labs

Need help deploying ebay-sold-listings-search?

Chalk Labs sets up agents like this inside real teams: connected to your tools, tested on your data, with a human in the loop where it matters.

Book a call

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/browser-act-ebay-sold-listings-search

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

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.

Use cases: design, data, research

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md and code. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found
Runs as
Python package

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/ebay-sold-listings-search

What's inside

Skill name
ebay-sold-listings-search
Description
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.
License
MIT
Instructions
219 lines in SKILL.md · view on GitHub

Before installing

  • Ships executable scripts

Files (4)

  • SKILL.md
  • build-url.py · scripts/
  • enum-categories.py · scripts/
  • extract-page.py · scripts/

SKILL.md (first lines)

# 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,                                         // best-effort numeric eBay condition ID; null when the label isn't in the lookup table
  "categoryId": null,                                          // effective _sacat used for the search; null when All Categories
  "category": "Cell Phones & Smartphones",                     // category label from the search page dropdown
  "endedAt": "2026-07-08T00:00:00.000Z",                       // sale completion date (parsed from "Sold X" caption, midnight UTC)
  "soldPrice": "437.40",                                       // final displayed price (string, 2-decimal). For BOA, this is the asking price — actual accepted offer is not disclosed by eBay
  "soldCurrency": "USD",                                       // ISO currency code — USD / GBP / EUR / AUD / CAD
  "listingType": "best_offer_accepted",                        // best_offer_accepted | buy_it_now | auction | null
  "isBestOfferAccepted": true,                                 // true only when includeCompletedListings=true and BOA signals detected
  "buyingFormat": "buyItNow",                                  // auction | buyItNow | auctionWithBIN | null
  "bidCount": null,                                            // integer for auctions, null for fixed-price
  "shippingPrice": "5.70",                                     // shipping cost (string, 2-decimal); "0.00" for free; null when not disclosed
  "shippingCurrency": "USD",                                   // shipping currency; may be null when free or hidden
  "shippingType": "paid",                                      // free | paid | pickup | unknown
  "totalPrice": "443.10",                                      // soldPrice + shippingPrice when currencies match, else equal to soldPrice
  "thumbnailUrl": "https://i.ebayimg.com/images/g/yf0AAeSwyeRqTgsw/s-l500.webp",  // 500px product image; null if only a promo/logo image is on the card
  "fullResThumbnailUrl": "https://i.ebayimg.com/images/g/yf0AAeSwyeRqTgsw/s-l1600.webp", // 1600px derived best-effort; may 404 for items eBay only hosts low-res
  "sellerUsername": "arn-987085",                              // seller handle
  "sellerPositivePercent": 100,                                // positive-feedback percentage as number; 0 is a valid data value (new sellers), null when not shown
  "sellerFeedbackScore": 47,                                   // feedback count as integer; K/M suffix expanded (1.4K → 1400)
  "sellerType": null,                                          // "private" | "business" on EU sites (ebay.de/.fr/.it/.es); null elsewhere or when label unrecognised
  "keyword": "iphone 15",                                       // pass-through from --keyword
  "scrapedAt": "2026-07-08T10:46:07.053Z"                       // ISO timestamp of extraction
}
```

Error handling: when the extractor returns `{"error": true, ...}`, check `window.location.href` and `document.title` via `state` — the page may be an eBay splash challenge (`ebay.com/splashui/challenge`), an anti-scrape "SORRY / Something went wrong" error page, or a redirect to a different page (very large ambiguous queries occasionally auto-redirect to a similar-item page). Wait longer or re-navigate; if repeatedly blocked, switch to a stealth browser with a different IP.

### DOM: enumerate eBay top-level categories from the search page

Prerequisite: currently on any eBay search results page (any keyword).

`eval "$(python scripts/enum-categories.py)"`

From browser-act/skills, MIT.

More from browser-act/skills

Signals

Stars
6,268
Forks
330
Open issues
9
Last commit (this folder)
Jul 20, 2026 (3 months ago)

From GitHub (fetched Oct 24, 2026).

Details

License
MIT
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from browser-act

Done for you

Rather not set it up yourself?

Chalk Labs scopes, builds and runs agents for your team: the task audit, the eval harness, the integrations and the weekly ops report. Fixed scope, priced before we start.

See how we build AI agents →Read the case studies

Chalk Labs is a two-founder AI and growth studio. We build AI agents, CRMs and MVPs for Web3 and AI companies, and have shipped 50+ product and token launches.

launches shipped
50+
launches shipped
media placements
500+
media placements
founders on every account
2
founders on every account

Press we've placed: Forbes · CoinDesk · Decrypt · Cointelegraph · The Block

Rahil Jain, Co-founder, Chalk Labs. Ex-Goldman Sachs engineer. You talk to the person who builds it.

Get ebay-sold-listings-search running in your business

Tell us what you want to automate. A founder replies within one working day with a plan, not a pitch deck.

Goes to the Chalk Labs founders, not the newsletter. Privacy

Need help deploying ebay-sold-listings-search?

CallGet help
Cite this page

ebay-sold-listings-search skill. Agent Mart. https://agentmart.dev/skills/browser-act-ebay-sold-listings-search (last updated 2026-10-24)