Avito.ma Morocco Classifieds Search Scraper
Pricing
from $3.99 / 1,000 results
Avito.ma Morocco Classifieds Search Scraper
Extract detailed search results from Avito.ma - Morocco's premier classifieds platform. Supports vehicles, real estate, electronics, and more.
Pricing
from $3.99 / 1,000 results
Rating
0.0
(0)
Developer
Coding Frontned
Maintained by CommunityActor stats
0
Bookmarked
1
Total users
0
Monthly active users
2 days ago
Last modified
Categories
Features
Share
What does this Actor do?
This Actor collects publicly visible listing results from Avito.ma, Morocco's classifieds marketplace. Search by keywords, browse a category, and optionally narrow results to a city. Each saved result contains a stable listing ID, its Avito page link, and public listing details when available.
Why use it?
- Find public listings in categories such as vehicles, property, and electronics.
- Save listing links and IDs for follow-up or deduplication in your own workflow.
- Collect available prices, locations, seller labels, media links, and listing attributes.
- Bound a run by result count and search pages.
Run the Actor
- Open the Actor in Apify Console and select Input.
- Enter a keyword, choose a category, and optionally enter a city. The defaults browse the
voiturescategory across Morocco. - Choose a result limit or page limit if you want to change the defaults.
- Select Start. When the run finishes, open Results for listing records or Output summary for the run status and saved count.
You can also start runs through the Apify API or schedule them in Console.
Input
All six input fields are optional in the schema. At runtime, the Actor uses voitures as the default category, so an empty input browses that category. If you explicitly set category to an empty string, provide a non-empty query as well.
Search settings
| Field | Type | Required? | Default | What it does |
|---|---|---|---|---|
query | Text | Optional | Empty string | Search keywords, up to 120 characters. Leave empty to browse the category. |
category | Text | Optional | voitures | Avito.ma category path, up to 80 letters, numbers, or hyphens. Examples: voitures, immobilier, informatique-et-multimedia. Enter an empty string only with a query. |
city | Text | Optional | Empty string (all Morocco) | City path segment, up to 80 letters, numbers, or hyphens, such as casablanca, rabat, or marrakech. |
A keyword can be combined with a category and city. Category and city select the search path; the Actor does not accept search URLs. It follows Avito.ma's result order and does not offer a sorting field. Duplicate listings are removed by listing ID as pages are collected.
Result limits
| Field | Type | Required? | Default | What it does |
|---|---|---|---|---|
maxItems | Integer | Optional | 50 | Maximum validated listings to save. Must be from 1 to 200. |
maxPages | Integer | Optional | 0 | Maximum search pages to inspect. Must be from 0 to 10. 0 selects a bounded automatic limit based on maxItems (at most 10 pages). |
Advanced settings (Developer Options)
| Field | Type | Required? | Default | What it does |
|---|---|---|---|---|
proxyConfiguration | Object | Optional | Apify residential proxy in Morocco | Apify proxy routing for public source requests. Use the Input form's proxy editor to adjust this for your account and use case. Proxy use may incur separate charges. |
The default proxy configuration is {"useApifyProxy":true,"apifyProxyGroups":["RESIDENTIAL"],"apifyProxyCountry":"MA"}. No proxy credentials are included in this example.
There are no compatibility aliases or additional search, filter, sorting, multiple-URL, or optional-field toggles.
Input examples
A keyword search with a small result limit (the default category is voitures):
{"query": "toyota","maxItems": 10}
A keyword search narrowed to a category and city:
{"query": "appartement","category": "immobilier","city": "casablanca","maxItems": 25}
Browse a category in a city with a one-page limit:
{"category": "voitures","city": "rabat","maxItems": 30,"maxPages": 1}
Let the Actor use its bounded automatic page limit for a category search:
{"category": "informatique-et-multimedia","maxItems": 60,"maxPages": 0}
Results
Each dataset item is a public listing record. The required fields are id, title, and listingUrl. Optional fields appear only when the public search data provides a usable value; absent values are left out. Boolean false and numeric 0 are kept when they are actual values.
The Actor reads search results and does not open individual listing pages. Details available only on those pages are not included.
The complete example below is illustrative. Its values and links are examples, not verified live results.
{"id": "123456789","listId": "987654321","title": "Example family car in good condition","listingUrl": "https://www.avito.ma/fr/casablanca/voitures/example-car_123456789.htm","adType": "Private seller","description": "Example listing description with public details.","price": 125000,"oldPrice": 135000,"monthlyPayment": 2500,"currency": "MAD","location": "Casablanca, Maarif","city": "Casablanca","district": "Maarif","category": "Cars","categoryId": "123","parentCategory": "Vehicles","imageUrl": "https://static.avito.ma/images/example-car-1.jpg","imageUrls": ["https://static.avito.ma/images/example-car-1.jpg","https://static.avito.ma/images/example-car-2.jpg"],"videoUrls": ["https://video.avito.ma/example-car.mp4"],"sellerName": "Example Motors","sellerType": "Professional","params": {"model": "Example model","model_year": 2020,"mileage": 85000,"transmission": "Automatic","verified": true},"publishedAt": "2026-01-15T12:00:00.000Z","isPremium": false,"isUrgent": true,"isHotDeal": false}
| Field | Type | Required? | Meaning |
|---|---|---|---|
id | String | Required | Stable listing ID parsed from the listing URL. |
listId | String or number | Optional | Source list identifier when available. |
title | String | Required | Public listing title. |
listingUrl | String | Required | Absolute Avito.ma listing page URL. |
adType | String | Optional | Public label for the ad type. |
description | String | Optional | Public listing description, when included in search data. |
price | Number | Optional | Current numeric price, when shown. |
oldPrice | Number | Optional | Previous numeric price, when shown. |
monthlyPayment | Number | Optional | Monthly payment amount, when shown. |
currency | String | Optional | Currency code or label associated with the price. |
location | String | Optional | Public listing location label. |
city | String | Optional | First component of the location label. |
district | String | Optional | Second component of the location label. |
category | String | Optional | Public category name. |
categoryId | String or number | Optional | Public category identifier, when available. |
parentCategory | String | Optional | Public parent category name. |
imageUrl | String | Optional | Primary public image URL. |
imageUrls | Array of strings | Optional | Public image URLs available for the listing. |
videoUrls | Array of strings | Optional | Public video URLs available for the listing. |
sellerName | String | Optional | Public seller or advertiser name, when shown. |
sellerType | String | Optional | Public seller classification, when shown. |
params | Object | Optional | Secondary listing attributes with their source keys and string, number, or boolean values. Business keys such as model and model_year are retained when provided; operational metadata is excluded. |
publishedAt | String | Optional | Public publication date or timestamp. |
isPremium | Boolean | Optional | Whether Avito.ma marks the listing as premium. |
isUrgent | Boolean | Optional | Whether Avito.ma marks the listing as urgent. |
isHotDeal | Boolean | Optional | Whether Avito.ma marks the listing as a hot deal. |
You can download the dataset in various formats such as JSON, HTML, CSV, or Excel.
Run status
- SUCCEEDED means at least one validated listing was saved and collection completed within the selected limits.
- SUCCEEDED with limited results means one or more listings were saved before a later collection or dataset-write failure stopped the run. The summary has
isPartial: true. - FAILED means no real listing records were saved. This includes blocked access, an empty search, invalid input, or a run that produced only invalid or diagnostic data.
Reaching the requested maxItems or maxPages limit is normal completion. Access-control pages stop the run; the Actor does not solve challenges, rotate sessions, or switch proxy routes to bypass them.
Output summary
The Output summary link opens the OUTPUT_SUMMARY record in the run's default Key-value store. It is separate from the listing dataset and contains exactly these fields:
| Field | Type | Required? | Meaning |
|---|---|---|---|
status | String | Required | SUCCEEDED when at least one real listing was saved; otherwise FAILED. |
itemsStored | Nonnegative integer | Required | Number of validated listing writes acknowledged by the dataset. |
isPartial | Boolean | Required | true when an error stopped collection after at least one listing was saved. |
The summary records below are illustrative.
Completed run:
{"status": "SUCCEEDED","itemsStored": 25,"isPartial": false}
Limited results after a later failure:
{"status": "SUCCEEDED","itemsStored": 12,"isPartial": true}
No real records saved:
{"status": "FAILED","itemsStored": 0,"isPartial": false}
Tips, access, and support
Avito.ma may limit or block automated access, and availability can vary by request and account. A protected or empty page does not produce a synthetic listing. Follow the site's terms and rate limits. This Actor collects public listing fields and does not request seller phone numbers or private account data.
The Actor uses browser compute, and its default residential proxy route may incur Apify Proxy charges. Costs depend on the current Apify plan, run time, and proxy pricing; check Apify's pricing pages for current rates. For help, use the Actor's Issues or Support tab.