# Car AI Agent for Saudi Car Market - 1 Prompt = Structured data (`boring_internet_explorer/cars-ai-agent`) Actor

Describe the car you want in Arabic or English. An AI agent searches car sites (Dubizzle, Hatla2ee, Syarah, YallaMotor, Motory) in Saudi Arabia, and returns structured and enriched data.

- **URL**: https://apify.com/boring_internet_explorer/cars-ai-agent.md
- **Developed by:** [Boring Internet Explorer](https://apify.com/boring_internet_explorer) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.00 / 1,000 results

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

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 examples already wired to this Actor's own input schema, see the [API](#api) section below.

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`).

# README

## 🚗 KSA Car AI Agent — Used & New Cars in Saudi Arabia

**An AI agent for Saudi car search. One Prompt, Endless Car Results.**

Finding a good used car in Saudi Arabia means checking Syarah, Dubizzle, YallaMotor, Hatla2ee, Motory and more, one filter at a time. The **KSA Car AI Agent** is an AI agent that does it for you. Describe the car you want in plain Arabic or English — "Find me the best used cars between 2020 and 2025, under 100k" — and get one clean, ranked list of real listings from the leading Saudi car marketplaces, with the price compared to the market and a short explanation of why each car fits.

### Why use this actor?

- 🗣️ **Ask in your own words** — no filters, no URLs, no site knowledge needed. Arabic and English both work.
- 🔎 **Five marketplaces in one run** — Syarah, Dubizzle, YallaMotor, Hatla2ee and Motory, searched together for Saudi Arabia.
- 🎯 **Your limits are respected exactly** — years, maximum price, make, model, mileage and city are applied precisely, so you never get a car outside your budget.
- 💰 **Spot the deals** — every car is compared with the market price for the same model, so below-market listings stand out.
- 🧹 **No duplicates** — the same car posted on several sites appears once.
- 🧠 **Know why it fits** — each top result comes with a one-line explanation in your language.
- 📊 **Ready for dealers and analysts** — export clean data to Excel, CSV, JSON or your own dashboard.

### What you can ask

| Type                      | Example                                                                                |
| ------------------------- | -------------------------------------------------------------------------------------- |
| Budget and years          | `Find me the best used cars between 2020 and 2025 and the price shouldn't exceed 100k` |
| Specific model, in Arabic | `ابحث عن كامري 2021 أو أحدث بسعر أقل من 90 ألف في الرياض`                              |
| Cheapest first            | `Cheapest Toyota Corolla under 60,000 SAR`                                             |
| Low mileage               | `Hyundai Tucson 2022 or newer, less than 50,000 km`                                    |
| City                      | `Used Nissan Patrol in Jeddah under 150k`                                              |
| New cars                  | `New SUV under 120,000 SAR`                                                            |
| Vague wishes              | `A reliable family car, not too old, good price`                                       |
| Specific sites            | `Honda Accord 2019+ on Syarah and Dubizzle`                                            |

Tip: the more precise your request, the more precise the results. Anything you state as a number or a name is treated as a hard limit.

### Input fields

| Field                | Type    | Default                   | Description                                                              |
| -------------------- | ------- | ------------------------- | ------------------------------------------------------------------------ |
| `prompt`             | string  | —                         | Describe the car you want, in Arabic or English (up to 1,000 characters) |
| `maxItems`           | integer | `5`                       | Maximum number of cars to return, combined across all sites (up to 500)  |
| `proxyConfiguration` | object  | `{"useApifyProxy": true}` | Proxy settings                                                           |

### Example input

```json
{
  "prompt": "ابحث عن كامري 2021 أو أحدث بسعر أقل من 90 ألف في الرياض",
  "maxItems": 5,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": ["RESIDENTIAL"],
    "apifyProxyCountry": "SA"
  }
}
```

### Output

Each car is stored as one record in the default dataset, best match first. Every run also stores a short summary with the limits the actor understood from your request, the assumptions it made, how many cars each site returned, and a written overview of the results.

If fewer cars match your request than `maxItems`, you get fewer — results are never padded with cars that do not fit.

### Example output

```json
{
  "rank": 3,
  "source": "yallamotor",
  "listingId": "1767456",
  "url": "https://ksa.yallamotor.com/used-cars/toyota/camry/2021/used-toyota-camry-2021-riyadh-1767456",
  "title": "Used Toyota Camry 2021",
  "make": "toyota",
  "model": "camry",
  "year": 2021,
  "price": 55000,
  "currency": "SAR",
  "mileageKm": 61000,
  "condition": "used",
  "region": null,
  "city": "Riyadh",
  "fuel": "Petrol",
  "transmission": "Automatic",
  "bodyType": "Sedan",
  "color": "White",
  "images": [
    "https://ymimg1.b8cdn.com/resized/used_car/2025/6/19/1767456/pictures/15468533/webp_mobile_listing_main_image_0.webp"
  ],
  "postedAt": null,
  "matchScore": 0.779,
  "dealFlag": "below_market",
  "marketMedianPrice": 80000,
  "matchReason": "كامري 2021 بسعر 55,000 ريال وممشى 61,000 كم، وهي أقل من متوسط سعر السوق.",
  "missingFields": [],
  "suspectPrice": false,
  "extras": {
    "specs": "Other Specs",
    "ratingValue": null,
    "ratingCount": null
  }
}
```

### Field reference

| Field                                          | Type           | Description                                                                               |
| ---------------------------------------------- | -------------- | ----------------------------------------------------------------------------------------- |
| `rank`                                         | number         | Position in the results, 1 is the best match                                              |
| `matchScore`                                   | number         | How well the car fits your request, from 0 to 1                                           |
| `source`                                       | string         | Marketplace the listing comes from                                                        |
| `listingId`                                    | string         | Listing ID on that marketplace                                                            |
| `url`                                          | string         | Full listing URL                                                                          |
| `title`                                        | string | null | Listing title                                                                             |
| `make` / `model`                               | string | null | Brand and model                                                                           |
| `year`                                         | number | null | Model year                                                                                |
| `price`                                        | number | null | Asking price in Saudi riyals                                                              |
| `currency`                                     | string         | Always `SAR`                                                                              |
| `mileageKm`                                    | number | null | Odometer in km                                                                            |
| `condition`                                    | string | null | `used` or `new`                                                                           |
| `city` / `region`                              | string | null | Where the car is located                                                                  |
| `fuel` / `transmission` / `bodyType` / `color` | string | null | Car details, when the listing shows them                                                  |
| `images`                                       | string\[]       | Photo URLs                                                                                |
| `postedAt`                                     | string | null | When the listing was posted, when available                                               |
| `dealFlag`                                     | string | null | `below_market`, `at_market` or `above_market`, compared with similar cars in your results |
| `marketMedianPrice`                            | number | null | Typical price for the same model in your results                                          |
| `matchReason`                                  | string | null | One-line explanation of why the car fits, in your language (top results)                  |
| `missingFields`                                | string\[]       | Limits you set that the listing does not show (for example, no year listed)               |
| `suspectPrice`                                 | boolean        | `true` when the price looks unrealistic, such as a placeholder or deposit                 |
| `extras`                                       | object         | Extra details from the marketplace                                                        |

### ❓ FAQ

**What can I type in the prompt?**
Anything you would tell a friend who knows the car market: make, model, years, budget, mileage, city, new or used. Arabic and English both work, and you can mix numbers like `100k` or `100 ألف`.

**Which marketplaces are searched?**
Syarah, Dubizzle, YallaMotor, Hatla2ee and Motory, all for Saudi Arabia. Mention a site by name in your prompt to search only that one.

**Are my limits really exact?**
Yes. If you say "under 100k", a car at 100,001 SAR is never returned. Things you only hint at, like "reliable" or "good price", change how results are ranked but never hide a car.

**What does `below_market` mean?**
The car is priced clearly under the typical price for the same model in your results. Always check the listing before you buy.

**Why did I get fewer cars than `maxItems`?**
Only that many cars matched your request. Loosen a limit, such as a wider year range or a higher budget, to see more.

**How does `maxItems` work?**
It is the total number of cars returned across all marketplaces, shared evenly between them when possible.

**Do I need a proxy?**
The default proxy setting works for normal use.

**How fresh is the data?**
Listings are read live at run time, so results match the marketplaces at that moment.

**Are prices in SAR?**
Yes, all prices are in Saudi riyals, as shown on each marketplace.

### 🔗 Want More Data?

Explore more Saudi car and classifieds scrapers:

- [Syarah سيارة Cars Scraper](https://apify.com/boring_internet_explorer/syarah-scraper) — used & new cars in Saudi Arabia
- [YallaMotor Cars Scraper](https://apify.com/boring_internet_explorer/yallamotor-scraper) — GCC & Egypt used & new cars
- [Dubizzle دوبيزل Saudi Arabia Scraper](https://apify.com/boring_internet_explorer/dubizzle-scraper) — cars & properties
- [Haraj حراج Scraper](https://apify.com/boring_internet_explorer/haraj-scraper) — Saudi classifieds listings
- [OpenSooq السوق المفتوح Scraper](https://apify.com/boring_internet_explorer/opensooq-scraper) — MENA classifieds

### 🛠️ Need a custom solution?

Need this actor adapted to your use case — more countries, extra fields, alerts for new listings, or a different output format? Reach out at boringinternetexplorer@gmail.com and we'll make it happen.

# Actor input Schema

## `prompt` (type: `string`):

Describe the car in your own words, in Arabic or English. Include make, model, years, budget, mileage or city if you care about them.

## `maxItems` (type: `integer`):

Maximum number of cars to return, combined across all sources. You may get fewer if fewer cars match.

## `proxyConfiguration` (type: `object`):

Proxy used for all sources.

## Actor input object example

```json
{
  "prompt": "Find me the best used cars between 2020 and 2025 and the price shouldn't exceed 100k",
  "maxItems": 5,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ],
    "apifyProxyCountry": "SA"
  }
}
```

# Actor output Schema

## `overview` (type: `string`):

No description

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "prompt": "Find me the best used cars between 2020 and 2025 and the price shouldn't exceed 100k"
};

// Run the Actor and wait for it to finish
const run = await client.actor("boring_internet_explorer/cars-ai-agent").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = { "prompt": "Find me the best used cars between 2020 and 2025 and the price shouldn't exceed 100k" }

# Run the Actor and wait for it to finish
run = client.actor("boring_internet_explorer/cars-ai-agent").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "prompt": "Find me the best used cars between 2020 and 2025 and the price shouldn'\''t exceed 100k"
}' |
apify call boring_internet_explorer/cars-ai-agent --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,boring_internet_explorer/cars-ai-agent"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/YscN7LuVkr5GrZWf8/builds/c5CbOWIW2DJjSK46e/openapi.json
