Avito.ma Morocco Classifieds Search Scraper avatar

Avito.ma Morocco Classifieds Search Scraper

Pricing

from $3.99 / 1,000 results

Go to Apify Store
Avito.ma Morocco Classifieds Search Scraper

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

Coding Frontned

Maintained by Community

Actor stats

0

Bookmarked

1

Total users

0

Monthly active users

2 days ago

Last modified

Features

Limited permissions

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

  1. Open the Actor in Apify Console and select Input.
  2. Enter a keyword, choose a category, and optionally enter a city. The defaults browse the voitures category across Morocco.
  3. Choose a result limit or page limit if you want to change the defaults.
  4. 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

FieldTypeRequired?DefaultWhat it does
queryTextOptionalEmpty stringSearch keywords, up to 120 characters. Leave empty to browse the category.
categoryTextOptionalvoituresAvito.ma category path, up to 80 letters, numbers, or hyphens. Examples: voitures, immobilier, informatique-et-multimedia. Enter an empty string only with a query.
cityTextOptionalEmpty 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

FieldTypeRequired?DefaultWhat it does
maxItemsIntegerOptional50Maximum validated listings to save. Must be from 1 to 200.
maxPagesIntegerOptional0Maximum 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)

FieldTypeRequired?DefaultWhat it does
proxyConfigurationObjectOptionalApify residential proxy in MoroccoApify 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
}
FieldTypeRequired?Meaning
idStringRequiredStable listing ID parsed from the listing URL.
listIdString or numberOptionalSource list identifier when available.
titleStringRequiredPublic listing title.
listingUrlStringRequiredAbsolute Avito.ma listing page URL.
adTypeStringOptionalPublic label for the ad type.
descriptionStringOptionalPublic listing description, when included in search data.
priceNumberOptionalCurrent numeric price, when shown.
oldPriceNumberOptionalPrevious numeric price, when shown.
monthlyPaymentNumberOptionalMonthly payment amount, when shown.
currencyStringOptionalCurrency code or label associated with the price.
locationStringOptionalPublic listing location label.
cityStringOptionalFirst component of the location label.
districtStringOptionalSecond component of the location label.
categoryStringOptionalPublic category name.
categoryIdString or numberOptionalPublic category identifier, when available.
parentCategoryStringOptionalPublic parent category name.
imageUrlStringOptionalPrimary public image URL.
imageUrlsArray of stringsOptionalPublic image URLs available for the listing.
videoUrlsArray of stringsOptionalPublic video URLs available for the listing.
sellerNameStringOptionalPublic seller or advertiser name, when shown.
sellerTypeStringOptionalPublic seller classification, when shown.
paramsObjectOptionalSecondary 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.
publishedAtStringOptionalPublic publication date or timestamp.
isPremiumBooleanOptionalWhether Avito.ma marks the listing as premium.
isUrgentBooleanOptionalWhether Avito.ma marks the listing as urgent.
isHotDealBooleanOptionalWhether 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:

FieldTypeRequired?Meaning
statusStringRequiredSUCCEEDED when at least one real listing was saved; otherwise FAILED.
itemsStoredNonnegative integerRequiredNumber of validated listing writes acknowledged by the dataset.
isPartialBooleanRequiredtrue 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.