Allegro
Learn how to start scraping Allegro.
With Web Scraper API, you can scrape various types of Allegro pages; below is an overview of all supported scrapers and their respective source values. The response returns the page HTML in content, in the standard response structure described in Realtime and Push-Pull.
allegro_search
Search page for a search term of your choice.
allegro_product
Product page of a product ID of your choice.
Any other Allegro page can be scraped by passing its url alone, no source needed.
Search
Request samples
curl 'https://realtime.oxylabs.io/v1/queries' \
--user 'USERNAME:PASSWORD' \
-H 'Content-Type: application/json' \
-d '{
"source": "allegro_search",
"query": "laptop"
}'import requests
from pprint import pprint
# Structure payload.
payload = {
'source': 'allegro_search',
'query': 'laptop'
}
# Get response.
response = requests.request(
'POST',
'https://realtime.oxylabs.io/v1/queries',
auth=('USERNAME', 'PASSWORD'),
json=payload
)
# Instead of response with job status and results url, this will return the
# JSON response with the result.
pprint(response.json())Request parameter values
source
Sets the scraper.
allegro_search
query
The keyword or phrase to search for products.
-
start_page
Starting page number.
1
delivery_time, shipping_from, store_city, store_region
Optional filters, see Localization and Filtering.
-
- mandatory parameter
Product
Request samples
Request parameter values
source
Sets the scraper.
allegro_product
product_id
11-digit Allegro offer ID, the number at the end of the offer URL (allegro.pl/oferta/<name>-<product_id>).
-
- mandatory parameter
Localization and Filtering
Allegro search results can be narrowed with the parameters below. They are applied as Allegro's own listing filters. Product pages have no such parameters.
delivery_time
allegro_search
Filter by delivery time. Available values: one_day, two_days.
-
shipping_from
allegro_search
Filter by the location the item ships from. Available values: china, czech, poland, hungary, slovakia, eu_countries, allegro_warehouse.
-
store_city
allegro_search
Filter by the seller's city, e.g. Warszawa.
-
store_region
allegro_search
Filter by the seller's region. Available values: lodz, opole, lublin, mazovia, silesia, lubuskie, podlaskie, pomerania, subcarpathia, lesser_poland, lower_silesia, greater_poland, warmia-masuria, west_pomerania, świętokrzyskie, kuyavian-pomeranian.
-
Last updated
Was this helpful?