Allegro Scraper avatar

Allegro Scraper

Deprecated
View all Actors
This Actor is deprecated

This Actor is unavailable because the developer has decided to deprecate it. Would you like to try a similar Actor instead?

See alternative Actors
Allegro Scraper

Allegro Scraper

lhotanova/allegro-scraper

Allegro Scraper allows you to scrape data from allegro.pl, one of the most popular online shopping platforms in Poland and the largest e-commerce platform of European origin.

You can access the Allegro Scraper programmatically from your own JavaScript applications by using the Apify API. You can also choose the language preference from below. To use the Apify API, you’ll need an Apify account and your API token, found in Integrations settings in Apify Console.

1import { ApifyClient } from 'apify-client';
2
3// Initialize the ApifyClient with your Apify API token
4// Replace the '<YOUR_API_TOKEN>' with your token
5const client = new ApifyClient({
6    token: '<YOUR_API_TOKEN>',
7});
8
9// Prepare Actor input
10const input = {
11    "startUrls": [
12        "https://allegro.pl/oferta/procesor-intel-i9-12900k-16-x-3-2-ghz-12375564256",
13        "https://allegro.pl/dzial/moda",
14        "https://allegro.pl/kategoria/komputery",
15        "https://allegro.pl/magazyn-allegro",
16        "https://allegro.pl/uzytkownik/www_comtrade_pl"
17    ],
18    "maxProducts": 30,
19    "maxReviews": 15,
20    "proxyConfiguration": {
21        "useApifyProxy": true,
22        "apifyProxyGroups": [
23            "RESIDENTIAL"
24        ]
25    }
26};
27
28// Run the Actor and wait for it to finish
29const run = await client.actor("lhotanova/allegro-scraper").call(input);
30
31// Fetch and print Actor results from the run's dataset (if any)
32console.log('Results from dataset');
33console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
34const { items } = await client.dataset(run.defaultDatasetId).listItems();
35items.forEach((item) => {
36    console.dir(item);
37});
38
39// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

Allegro Scraper API in JavaScript

The Apify API client for JavaScript is the official library that allows you to use Allegro Scraper API in JavaScript or TypeScript, providing convenience functions and automatic retries on errors.

Install the apify-client

npm install apify-client

Other API clients include:

Developer
Maintained by Community
Categories