Etsy Scraper avatar
Etsy Scraper
Try for free

3 days trial then $30.00/month - No credit card required now

View all Actors
Etsy Scraper

Etsy Scraper

epctex/etsy-scraper
Try for free

3 days trial then $30.00/month - No credit card required now

Scrape valuable data from over 4 million Etsy sellers. Extract product details, descriptions, listed date, images, seller info, and more. Customize your searches and filters to gather the desired information effortlessly.

The code examples below show how to run the Actor and get its results. To run the code, you need to have an Apify account. Replace <YOUR_API_TOKEN> in the code with your API token, which you can find under Settings > Integrations in Apify Console. Learn more

1import { ApifyClient } from 'apify-client';
2
3// Initialize the ApifyClient with your Apify API token
4const client = new ApifyClient({
5    token: '<YOUR_API_TOKEN>',
6});
7
8// Prepare Actor input
9const input = {
10    "startUrls": [
11        "https://www.etsy.com/listing/743657804/sheepskin-slippers-wool-slippers-fur?ga_order=most_relevant&ga_search_type=all&ga_view_type=gallery&ga_search_query=&ref=sc_gallery-5-1&plkey=89e47f49c28602795b44fc71559e2839056339d8%3A743657804&frs=1",
12        "https://www.etsy.com/c/clothing-and-shoes?ref=catnav-10923",
13        "https://www.etsy.com/search?q=apple%20watch",
14        "https://www.etsy.com/shop/PetiteFraise?ref=simple-shop-header-name&listing_id=490831663&page=2#items"
15    ],
16    "maxItems": 10,
17    "endPage": 1,
18    "extendOutputFunction": ($) => {
19        const result = {};
20        // Uncomment to add a title to the output
21        // result.title = $('title').text().trim();
22    
23        return result;
24    },
25    "customMapFunction": (object) => { return {...object} },
26    "proxy": {
27        "useApifyProxy": true,
28        "apifyProxyGroups": [
29            "RESIDENTIAL"
30        ]
31    }
32};
33
34(async () => {
35    // Run the Actor and wait for it to finish
36    const run = await client.actor("epctex/etsy-scraper").call(input);
37
38    // Fetch and print Actor results from the run's dataset (if any)
39    console.log('Results from dataset');
40    console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
41    const { items } = await client.dataset(run.defaultDatasetId).listItems();
42    items.forEach((item) => {
43        console.dir(item);
44    });
45})();
46
47// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs
Developer
Maintained by Community
Actor metrics
  • 89 monthly users
  • 11 stars
  • 94.6% runs succeeded
  • 0.55 hours response time
  • Created in Mar 2021
  • Modified about 13 hours ago
Categories