avito scraper avatar

avito scraper

Pricing

from $5.00 / 1,000 results

Go to Apify Store
avito scraper

avito scraper

Whether you are building market intelligence dashboards, analyzing the Moroccan real estate and used-car markets, or powering AI integrations, this tool provides clean, structured, and fast data extraction.

Pricing

from $5.00 / 1,000 results

Rating

0.0

(0)

Developer

LIAICHI MUSTAPHA

LIAICHI MUSTAPHA

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

2 days ago

Last modified

Share

🇲🇦 Avito.ma Scraper

The most robust, high-performance structured data extractor for Avito.ma, Morocco's leading classifieds platform.

This Actor is engineered to provide precise, clean, and highly-scalable data extraction across all Avito categories—including Vehicles, Real Estate, Electronics, and Jobs. Built with modern, stable parsing logic, it entirely avoids brittle CSS selections by intercepting Avito's underlying JSON data payloads, ensuring unmatched stability.


🌍 Our Vision: Building the Data Mine for the MENA Region

At the core of our mission is a simple but powerful vision: to become the definitive digital data mine for the Middle East and North Africa (MENA) region.

For too long, high-quality, structured market data from the MENA region has been fragmented, inaccessible, or hidden behind unstable UIs. We are changing that by building a comprehensive suite of enterprise-grade APIs and scrapers. Our goal is to empower AI agents, researchers, and enterprises with real-time, defensible access to the MENA digital economy.

This Avito.ma Scraper is a foundational pillar in mapping the Moroccan consumer and real estate landscape.

🔗 Explore Our Other MENA Actors

We are constantly expanding our ecosystem. Check out our other tools for the MENA market:

  • 🏢 Rekrute.com Jobs Scraper - Extract job postings and corporate data from Morocco's top recruitment platform.
  • 🏠 Mubawab.ma Real Estate Scraper - Deep analytics for Moroccan real estate.
  • 🛍️ [Jumia MENA E-Commerce Scraper](coming soon) - Product pricing and competitor intelligence.
  • 🚗 [Moteur.ma Scraper](coming soon) - Specialized Moroccan automotive market data. (Stay tuned as we launch more actors across Egypt, UAE, and KSA!)

✨ Key Features

  • Robust Data Extraction: Relies strictly on Avito's Next.js backend JSON (__NEXT_DATA__) instead of constantly changing CSS selectors. If the data is on Avito, this actor gets it.
  • Deep Attribute Parsing: Automatically structures dynamic category attributes (e.g., Mileage, Transmission, Number of Rooms) as clean JSON objects.
  • High-Resolution Images: Bypasses thumbnails to fetch the full HD URLs for all listing images.
  • Pagination Handling: Seamlessly navigates through search results to harvest listings at scale.
  • AI-Ready: Outputs clean, heavily standardized JSON perfectly suited for ingestion into LLM context windows, RAG applications, or vector databases.

🎯 Use Cases

  • Market Intelligence: Track inflation, depreciation of used cars, and shifts in real estate valuation across Moroccan cities (Casablanca, Rabat, Marrakech).
  • Lead Generation: Build comprehensive databases of current market supply and active sellers.
  • Competitor Analysis: For businesses, track pricing strategies and inventory turnover for specific categories.
  • AI Agent Tooling: Package this scraper as a tool for autonomous agents to answer questions like, "What is the average price of a 2018 Volkswagen Golf in Casablanca?"

🛠️ Input Parameters

The Actor uses a simple and flexible JSON input format.

FieldTypeDescription
startUrlsArrayA list of Avito search URLs or category URLs to begin scraping.
maxItemsIntegerThe maximum number of listings to extract. Defaults to 100.
proxyConfigurationObjectProxy setting configuration. Note: Apify Residential Proxies are highly recommended to avoid IP blocks and captchas.

Example Input

{
"startUrls": [
"https://www.avito.ma/fr/maroc/voitures-%C3%A0_vendre",
"https://www.avito.ma/fr/casablanca/appartements-%C3%A0_vendre"
],
"maxItems": 500
}

📊 Sample Output (JSON)

The scraper outputs pristine JSON data, organizing the specific parameters dynamically based on the category.

{
"url": "https://www.avito.ma/fr/casablanca/voitures/Peugeot_208_Diesel_2019_123456",
"id": 123456789,
"title": "Peugeot 208 Diesel 2019 Très bon état",
"price": 115000,
"currency": "DH",
"location": {
"city": "Casablanca",
"area": "Maârif"
},
"attributes": {
"Marque": "Peugeot",
"Modèle": "208",
"Année-Modèle": "2019",
"Kilométrage": "80 000 - 84 999",
"Type de carburant": "Diesel",
"Boite à vitesses": "Manuelle"
},
"description": "Je mets en vente ma Peugeot 208 diesel modèle 2019, première main, très bien entretenue...",
"images": [
"https://mcdn.avito.ma/images/1234567890.jpg",
"https://mcdn.avito.ma/images/1234567891.jpg"
],
"scrapedAt": "2026-04-21T14:30:00.000Z"
}

💡 Operational Guidelines & Proxies

Avito.ma employs strict anti-bot measures to protect its data.

  • Small Runs: For highly targeted, small-scale runs, Datacenter proxies may work.
  • Production Scale: For serious scraping tasks, you must use Apify Residential Proxies. Attempting to scrape thousands of listings without residential IPs will quickly result in captchas and blocks.

📫 Support & Custom Requirements

If you encounter structural changes on Avito, or if your enterprise requires customized scraping logic (e.g., bypassing advanced protections to fetch verified seller phone numbers), please open an issue in the Apify platform or contact us. We actively maintain this actor to ensure our MENA data mine remains up-to-date.