# Avito.ma used cars in Casablanca (with seller phone)

**Use case:** 

Get 100 used-car listings from Avito.ma in Casablanca with price, mileage, year, photos, seller name and phone number. Ready for car dealers, lead generation and price monitoring in Morocco. All-in price: about $0.04 per 100 cars.

## Input

```json
{
  "categories": [
    "voitures"
  ],
  "city": "Casablanca",
  "maxResults": 100,
  "maxPages": 5,
  "scrapeDetails": true,
  "maxConcurrency": 5,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

## Output

```json
{
  "imageUrl": {
    "label": "Image",
    "format": "image"
  },
  "avitoId": {
    "label": "ID",
    "format": "text"
  },
  "title": {
    "label": "Title",
    "format": "text"
  },
  "price": {
    "label": "Price",
    "format": "number"
  },
  "currency": {
    "label": "Currency",
    "format": "text"
  },
  "city": {
    "label": "City",
    "format": "text"
  },
  "category": {
    "label": "Category",
    "format": "text"
  },
  "sellerName": {
    "label": "Seller",
    "format": "text"
  },
  "sellerPhone": {
    "label": "Phone",
    "format": "text"
  },
  "listingUrl": {
    "label": "URL",
    "format": "link"
  },
  "publishedAt": {
    "label": "Published",
    "format": "text"
  }
}
```

## How it works

### 1. Sign up on Apify or log in

The Avito.ma Scraper – Morocco Listings, Cars & Real Estate Actor is ready to run with the inputs already set for "Avito.ma used cars in Casablanca (with seller phone)". [Sign up or log in](https://console.apify.com/create-task-from-example/e3HW5HIdGqI2WwyKp) and you'll land in Apify Console with a copy of this exact task.

### 2. Start the "Avito.ma used cars in Casablanca (with seller phone)" task

The Avito.ma Scraper – Morocco Listings, Cars & Real Estate Actor will start running based on the input automatically. You can also change all the input fields, like choose categories, city, and more, to match your specific use case.

### 3. Receive the "Avito.ma used cars in Casablanca (with seller phone)" output

Monitor the progress in real time. You will be notified as soon as your dataset is complete and ready for review. Each result includes data such as image, ID, title, and more.

### 4. Integrate into your workflow

The final output is delivered in JSON, CSV, or Excel format, ready to be plugged into your workflow. You can also [run the "Avito.ma used cars in Casablanca (with seller phone)" task via API](https://apify.com/worshipful_knife/avito-scraper.md).

## FAQ

### Can I change the city or price range?

Yes. Edit the city, minPrice and maxPrice fields (prices in MAD) or pick another category like apartments or phones.

### Is the seller phone number included?

Yes, when the seller shows it on Avito.ma. Detail scraping is on in this task, so each listing includes seller info and phone when available.

### How much does it cost?

All-in: $0.0004 per listing plus $0.002 per run. 100 listings cost about $0.04. No separate platform usage.

## About this Actor

This example demonstrates how to use [Avito.ma Scraper – Morocco Listings, Cars & Real Estate](https://apify.com/worshipful_knife/avito-scraper.md) with a specific input configuration. Visit the [Actor detail page](https://apify.com/worshipful_knife/avito-scraper.md) to learn more, explore other use cases, and run it yourself.


## How to integrate an Actor?

This Task's input is already configured above. Use it as-is rather than inventing a new one.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For full API examples (JavaScript, Python, CLI, MCP, OpenAPI), see this Task's Actor page: https://apify.com/worshipful_knife/avito-scraper.md

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).
