Similarweb Quick Scraper avatar
Similarweb Quick Scraper
Try for free

Pay $10.00 for 1,000 results

View all Actors
Similarweb Quick Scraper

Similarweb Quick Scraper

mscraper/similarweb-quick-scraper
Try for free

Pay $10.00 for 1,000 results

A quick scraper for Similarweb. Get needed data instantly for domains of your choice. Export accumulated data into formats such as HTML, JSON, or Excel.

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

Node.js

Python

curl

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    "websites": [
11        "apple.com",
12        "microsoft.com",
13        "google.com",
14        "twitter.com",
15        "samsung.com",
16        "hp.com",
17        "dell.com",
18        "mi.com",
19        "lg.com",
20        "sony.com"
21    ],
22    "proxy": {
23        "useApifyProxy": true,
24        "apifyProxyCountry": "US"
25    }
26};
27
28(async () => {
29    // Run the Actor and wait for it to finish
30    const run = await client.actor("mscraper/similarweb-quick-scraper").call(input);
31
32    // Fetch and print Actor results from the run's dataset (if any)
33    console.log('Results from dataset');
34    console.log(`πŸ’Ύ Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
35    const { items } = await client.dataset(run.defaultDatasetId).listItems();
36    items.forEach((item) => {
37        console.dir(item);
38    });
39})();
40
41// πŸ“š Want to learn more πŸ“–? Go to β†’ https://docs.apify.com/api/client/js/docs
Developer
Maintained by Community
Actor metrics
  • 28 monthly users
  • 100.0% runs succeeded
  • days response time
  • Created in Jun 2023
  • Modified 5 months ago