Apify example task · whoareyouanas/ebay-sold-listings-scraper
Compare sold prices for used Canon lenses on eBay
Collect a small US sample for used Canon RF lenses. Review sold dates, displayed prices, condition and provenance before comparing comparable items.
- Actor
- eBay Sold Listings Scraper: Sold Prices & Dates
- Result limit
- 6 (maxResults)
- Estimated cost
- Up to $0.012
- Run options
- Actor defaults
Example updated 2026-11-20 · actor build 1.1.2 · runs in your own Apify account
01 / About the actor
eBay Sold Listings Scraper: Sold Prices & Dates
Collect eligible sold-listing observations for supplied eBay keywords and marketplaces. Keep displayed price, sold-date context, provenance, and quality flags for resale and product research.
Focused sold-listing research
Set keywords, marketplace, date window, price or condition filters, and exact output limits.
Source provenance
Keep source type, provider, and source-run references alongside observations.
Separate budgets
Control the actor's output charges and optional upstream retrieval budget independently.
02 / Input
The exact input this example runs.
keywords is required. Start with a small maxResults and maxResultsPerKeyword. retrievalMode hybrid can use a separately billed upstream provider, controlled by upstreamBudgetUsd.
{
"ebaySites": [
"ebay.com"
],
"maxResultsPerKeyword": 6,
"maxResults": 6,
"daysToScrape": 30,
"maxConcurrency": 1,
"includeRaw": false,
"retrievalMode": "hybrid",
"upstreamBudgetUsd": 0.05,
"keywords": [
"Canon RF 50mm f1.8 STM"
],
"itemCondition": "used",
"maxPrice": 250
}| Field | Value in this example | What it controls |
|---|---|---|
| ebaySitesChange this | ebay.com | US (ebay.com) has passed live retrieval checks. UK (ebay.co.uk) is beta; results and GBP fields require successful source validation. |
| maxResultsPerKeywordChange this | 6 | Maximum matched unique items for each keyword/site query, including overlap already emitted elsewhere. |
| maxResultsChange this | 6 | Exact global cap on unique marketplace/item observations. Summaries and repeated query matches do not count. |
| daysToScrapeChange this | 30 | Displayed calendar-date window anchored to UTC date at run start; each explicit bound overrides its corresponding rolling bound. |
| maxConcurrency | 1 | At most two API searches run together. Paid hybrid searches may run sequentially to protect the remaining output budget. |
| includeRaw | false | Preserve short non-secret price/date/shipping/status strings for auditing. No full-page HTML in listing rows. |
| retrievalModeChange this | "hybrid" | Hybrid tries native retrieval first, then caffein.dev/ebay-sold-listings. API calls that provider directly; native has no fallback and currently encounters access blocks. Caffein fees are separate and limited by upstreamBudgetUsd. |
| upstreamBudgetUsd | 0.05 | Separate aggregate event-charge limit for Caffein child runs, including startup and fetched rows later excluded or deduplicated. This does not replace the Actor’s own max cost per run. Uncertain starts stop additional paid calls. |
| keywordsChange this | Canon RF 50mm f1.8 STM | One to 100 searches. Shared filters apply to each keyword/site pair. |
| itemConditionChange this | "used" | Initial broad eBay condition filter. Preserve observed condition labels and derived-ID provenance. |
| maxPriceChange this | 250 | Upper eBay displayed-price filter. Must be >= minPrice. |
Other inputs you can add (8)
| Field | Type / required | Default | Purpose |
|---|---|---|---|
| dateFrom | string | Not specified | Inclusive YYYY-MM-DD displayed calendar-date label within the supported public window. Not an exact UTC transaction boundary. |
| dateTo | string | Not specified | Inclusive YYYY-MM-DD displayed calendar-date label; cannot exceed the UTC date at run start. |
| categoryId | string | "0" | Use 0 for the API fallback. Other categories require verified native controls and stop before a paid fallback call. |
| minPrice | number | Not specified | eBay source price filter, in each marketplace display currency. Not a hidden accepted-offer amount. Minimum: 0 |
| buyingFormat | string | "all" | Filter tested on the supported source: all, auction, or fixed-price listings. Options: all, auction, buyItNow |
| itemLocation | string | "default" | Use default for the API fallback. Domestic/worldwide require verified native controls and stop before paid fallback retrieval. Options: default, domestic, worldwide |
| includeBestOffers | boolean | true | Include explicitly detected Best Offer records with asking-price labels. False cannot exclude undisclosed offers. |
| includeAnalytics | boolean | true | Included key-value-store summary of conservative currency-separated cohorts; never an extra billable row. |
03 / Make it yours
Change these fields for your own research.
01 · ebaySites
eBay marketplaces
US (ebay.com) has passed live retrieval checks. UK (ebay.co.uk) is beta; results and GBP fields require successful source validation.
Example: ebay.com
02 · maxResultsPerKeyword
Matches per keyword and site
Maximum matched unique items for each keyword/site query, including overlap already emitted elsewhere.
Example: 6
03 · maxResults
Unique listings across the run
Exact global cap on unique marketplace/item observations. Summaries and repeated query matches do not count.
Example: 6
04 · daysToScrape
Calendar days including today
Displayed calendar-date window anchored to UTC date at run start; each explicit bound overrides its corresponding rolling bound.
Example: 30
05 · retrievalMode
Retrieval mode
Hybrid tries native retrieval first, then caffein.dev/ebay-sold-listings. API calls that provider directly; native has no fallback and currently encounters access blocks. Caffein fees are separate and limited by upstreamBudgetUsd.
Example: "hybrid"
06 · keywords
Keywords
One to 100 searches. Shared filters apply to each keyword/site pair.
Example: Canon RF 50mm f1.8 STM
07 · itemCondition
Condition
Initial broad eBay condition filter. Preserve observed condition labels and derived-ID provenance.
Example: "used"
08 · maxPrice
Maximum displayed price
Upper eBay displayed-price filter. Must be >= minPrice.
Example: 250
Run it in three steps
- Open the example on Apify and select Try for free to copy it into your Apify account.
- Replace the sample values above with your own target and keep the limit small.
- Start the run, then export the dataset as JSON, CSV or Excel.
04 / Output
What the results table shows.
- actualSalePrice stays null: a displayed sold-listing amount does not reveal a hidden accepted offer or verify payment.
- Day-level soldDate does not imply a precise soldAt timestamp. Preserve unknown shipping and quality flags, and inspect RUN_SUMMARY for coverage.
Columns in the “Sold listing observations” view
title
Title
marketplace
Marketplace
displayedPrice
Displayed price
currency
Currency
priceKind
Price meaning
actualSalePrice
Actual sale price
soldDate
Sold date label
bestOfferAccepted
Accepted offer
shippingPrice
Shipping price
shippingType
Shipping
condition
Condition
url
Listing
sourceType
Source type
sourceProvider
Source provider
sourceRunId
Provider run
qualityFlags
Uncertainty
A view selects columns for the table. The full JSON export keeps every field, including nested arrays and objects.
05 / Cost
What this example costs to run.
At most about $0.012: up to 6 results at $0.002 each (Validated sold listing) plus $0.00005 per GB of memory for the start event. Fewer results cost less. The live Pricing tab on Apify is authoritative.
Validated sold listing
$0.002 per event
Actor Start
$0.00005 per event · per GB of memory
Prices checked 2026-11-22. Set a run spending limit in Apify when you widen the input.
06 / API
Run the same input from your code.
This call starts a billable run of eBay Sold Listings Scraper: Sold Prices & Dates with this example's input and returns the dataset items when it finishes. Synchronous calls wait up to five minutes; for longer runs, POST to /runs instead and read the run's default dataset when it succeeds. Keep the token in an environment variable.
curl --request POST \
'https://api.apify.com/v2/acts/whoareyouanas~ebay-sold-listings-scraper/run-sync-get-dataset-items?format=json' \
--header "Authorization: Bearer $APIFY_TOKEN" \
--header 'Content-Type: application/json' \
--data '{"ebaySites":["ebay.com"],"maxResultsPerKeyword":6,"maxResults":6,"daysToScrape":30,"maxConcurrency":1,"includeRaw":false,"retrievalMode":"hybrid","upstreamBudgetUsd":0.05,"keywords":["Canon RF 50mm f1.8 STM"],"itemCondition":"used","maxPrice":250}'Coverage & interpretation
Check the result before relying on it.
- A complete processing scope does not guarantee complete historical eBay coverage.
- Displayed prices are not verified settlement amounts, and totals do not automatically include taxes or buyer fees.
Questions
About this example.
What does the "Compare sold prices for used Canon lenses on eBay" example collect?
Collect a small US sample for used Canon RF lenses. Review sold dates, displayed prices, condition and provenance before comparing comparable items. It runs eBay Sold Listings Scraper: Sold Prices & Dates, published by whoareyouanas on Apify.
Which input does this example use?
eBay marketplaces (ebaySites) set to ebay.com; Matches per keyword and site (maxResultsPerKeyword) set to 6; Unique listings across the run (maxResults) set to 6; Calendar days including today (daysToScrape) set to 30; Retrieval mode (retrievalMode) set to "hybrid"; Keywords (keywords) set to Canon RF 50mm f1.8 STM. The full JSON input is shown on this page.
How much does it cost to run this example?
At most about $0.012: up to 6 results at $0.002 each (Validated sold listing) plus $0.00005 per GB of memory for the start event. Fewer results cost less. The live Pricing tab on Apify is authoritative.
How do I change it for my own research?
Open the example on Apify and select Try for free to copy it into your account, then edit eBay marketplaces, Matches per keyword and site, Unique listings across the run, Calendar days including today, Retrieval mode, Keywords, Condition, Maximum displayed price. Keep the result limit small for the first run and check the output before scaling up.
Can I run it from the API or on a schedule?
Yes. Send the same JSON input to the eBay Sold Listings Scraper: Sold Prices & Dates run endpoint with your Apify API token, or save the copied task in your Apify account and add a schedule. Results land in the run's default dataset as JSON, CSV or Excel.
More examples
Related tasks you can copy.
Find sold Pokémon card auctions on eBay
Filter US sold listings for a Pokémon card to auction results. Review displayed prices, sale dates and listing titles before comparing grading variants.
View exampleCompare US eBay sold prices for two headphone models
Collect a bounded sample of sold Sony and Bose headphones in the United States. Compare displayed prices and dates by model and condition.
View exampleResearch Nintendo Switch OLED sold listings on eBay
Collect up to three recent US eBay sold listings for Nintendo Switch OLED. Compare displayed sold prices, dates and condition with source provenance. The preset caps optional upstream usage at $0.05.
View exampleGuides