For the complete documentation index, see llms.txt. This page is also available as Markdown.

Allegro

Learn how to start scraping Allegro.

With Web Scraper API, you can scrape and various types of Allegro pages; below is an overview of all supported scrapers and their respective source values.

Source
Description

allegro_search

Search page for a search term of your choice.

allegro_product

Product page of a product ID of your choice.

Getting started

Create your API user credentials: Sign up for a free trial or purchase the product in the Oxylabs dashboard to create your API user credentials (USERNAME and PASSWORD).

Request sample

curl 'https://realtime.oxylabs.io/v1/queries' \
--user "USERNAME:PASSWORD" \
-H "Content-Type: application/json" \
-d '{
        "source": "allegro_search",
        "query": "case"
    }'
import requests
from pprint import pprint

# Structure payload.
payload = {
    'source': 'allegro_search',
    'query': 'case'
}

# Get response.
response = requests.request(
    'POST',
    'https://realtime.oxylabs.io/v1/queries',
    auth=('USERNAME', 'PASSWORD'),
    json=payload,
)

# Print prettified response to stdout.
pprint(response.json())

We use synchronous Realtime integration method in our examples. If you would like to use Proxy Endpoint or asynchronous Push-Pull integration, refer to the integration methods section.

Optionally, you can include additional parameters such asuser_agent_type, parse, render and more to customize your scraping request. Read more:

Features

Last updated

Was this helpful?