How to scrape Etsy listings, prices and shops to CSV or JSON

If you sell on Etsy, or are thinking about it, the questions are always the same. What sells in this niche, at what price, from which shops, and with how many reviews? Etsy's search page answers that one listing at a time. Copying it into a spreadsheet by hand stops being fun after the first page.
Etsy has no public export for search results, so I built a scraper that turns a search into rows. Here's what I learned about what Etsy actually serves, and how to get the data out.
What to watch for
- Only about 12 listings per results page come back. Etsy shows 48 results per page in the browser, but only the first 12 are in the page itself. The rest are loaded by JavaScript and are not returned. So 48 listings come from 4 pages: positions 1-12, 49-60, 97-108 and 145-156.
positionis approximate. It is (page - 1) x 48 plus the place on the page, so page 2 starts at 49. Treat it as a rank band, not an exact rank.- About 240 listings per search is the ceiling. Etsy serves up to 20 pages per search. For a wider sample, split the search by keyword or price band.
- Ads are mixed into the results. Promoted listings are included and flagged
isAd: true. Filter them out if you want the organic order. - Prices are normally in USD. They are what the US storefront shows; the
currencyfield says which currency Etsy used. - Tags are gone. Etsy no longer shows listing tags publicly, so they are not in the output.
categoryandmaterialsare, with listing details on. - Shop and listing URLs are not inputs. Use keywords, or paste search, category (
/c/...) or market (/market/...) URLs. Filters in the URL are kept.
Getting the data
I packaged this as an Apify Actor, Etsy Scraper. A search row looks like this (trimmed):
{
"listingId": "4575689601",
"title": "Custom Handmade Face Mug From Photo, Underglaze Painting, Couple Mug, Gift for Her",
"price": 46.51,
"currency": "USD",
"originalPrice": 75.02,
"discountPct": 38,
"shopName": "CeraLumi",
"rating": 5,
"reviewCount": 96,
"isBestseller": false,
"isStarSeller": false,
"isAd": false,
"freeShipping": true,
"badge": "Popular now",
"position": 2,
"searchQuery": "ceramic mug"
}
rating and reviewCount here are the shop's. Turn on Include listing details and each row also gets the description, category, materials, favorites, the shop's sales count, the listing's own rating and review count, ships-from, delivery estimate, stock, variations and all images. A leather wallet in my test came back with 35,800 shop sales, 425 listing reviews and 112 in stock.
One call from the command line:
curl -X POST "https://api.apify.com/v2/acts/rjmacarthy~etsy-scraper/run-sync-get-dataset-items?token=YOUR_APIFY_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"keywords": ["handmade ceramic mug"],
"sortBy": "relevance",
"maxPrice": 40,
"maxItems": 48,
"includeDetails": false
}'
sortBy also takes most_recent, price_asc, price_desc and top_reviews. minPrice and maxPrice are in US dollars and apply to keyword searches.
Watching a niche for new listings and price changes
Set monitorMode to new for only new listings, or changes for new listings plus price drops and increases with the previous price.
- Run once with a
stateKey, for exampledog-collars. The first run outputs everything and sets the baseline. - Schedule it in Apify, daily or hourly.
- Later runs check the same window (the pages
maxItemsneeds) and output only what is new or changed, withchangeTypeandpreviousPrice. - Use a different
stateKeyfor each search you watch.
Ads are skipped in monitor modes, because ad slots rotate on every visit.
Pricing
It is pay per event, with no run fee beyond Apify's $0.00005 start event:
- $0.0015 per listing, so 1,000 listings cost $1.50.
- $0.0045 extra per listing with details on, so 1,000 listings with details cost $6.00. Details that fail to load are not charged.
- A daily monitor that finds 20 new listings costs about $0.03 a day.
On the free Apify plan a run is limited to 5 page requests, which is about 60 listings, or 1 search page plus 4 listing details. Any paid plan removes the limit. You can also set a maximum cost per run and the Actor stops cleanly when it is reached.
It reads public pages only, with no login. Seller first names and reviewer names are never output.