# Motory Scraper: Used Cars in Saudi Arabia (`happyendpoint/motory-used-cars-scraper`) Actor

Find used cars listed on Motory in Jordan and Saudi Arabia. Narrow them by city, make, model, model year, price, fuel, dealer or seller type. Each listing gives price, mileage, year, city, seller and photos; one car can be opened in full, and makes, models and filter counts can be listed.

- **URL**: https://apify.com/happyendpoint/motory-used-cars-scraper.md
- **Developed by:** [Happy Endpoint](https://apify.com/happyendpoint) (community)
- **Categories:** E-commerce
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.00 / 1,000 results

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

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

### What this Actor does

This Actor reads the used-car listings of Motory, a car marketplace for Saudi Arabia and Jordan, and returns one row per car. A row holds the title, model year, make and model, asking price and currency, mileage, gearbox, city, seller type, financing information and photo links. Search by keyword, city, make, model and year range, price range, body style, fuel, color, origin, dealer or seller type in seven sort orders, or paste the address of a Motory search page. Other operations open one listing in full, list the makes and models, check what any Motory page address points to, and return the filter choices with their result counts.

The data is what Motory shows to any visitor on its used-car search and listing pages: prices, model years, mileage, specifications, cities and photos.

### Use cases

- Compare asking prices for one model across cities and model years before buying or pricing a trade-in.
- Follow the stock of a dealership and spot reduced prices or new arrivals each day.
- List the dealerships of a city with their contact details and stock, to find trade partners or rivals.
- Build a price index for used electric cars, with their stated range, in the Saudi market.
- Measure how many cars of each make and body style are for sale, using the filter counts.
- Feed a car valuation model with listing details such as mileage, specifications and financing.

### How to use

1. Open the Actor's input form in Apify Console, or prepare a JSON input for the API.
2. Pick an `operation`: each one is a different kind of request to Motory.
3. Set `maxItems` to the number of results you need. It is the only quantity setting; paging is handled for you.
4. Start the run. The results land in the run's dataset, where you can download them as JSON, CSV, Excel and
   other formats, or read them through the Apify API.

This is the example input, the one the input form starts with:

```json
{
  "operation": "usedCars",
  "maxItems": 10
}
```

### Input

| Field | Type | Description | Used by |
| --- | --- | --- | --- |
| `operation` | string | Which data to fetch. Each option is one kind of request. | all operations |
| `maxItems` | integer | The most results to return. The run stops once it has this many. | all operations |
| `url` | string | The address of a page on the Saudi Motory site, copied from your browser: the page of one car ad, a results page or any other page. | Identify a Motory page link, Used car details by link, Search used cars by link |
| `listingId` | integer | The number of one car ad, as search rows return it in id. Take it from the same market. | Used car details |
| `carList` | string | Pick the cars on sale now or the new-car catalogue. They share many entries, yet each has some that the other lacks. | Car makes, Car models of a make |
| `makeId` | integer | The number of one car make, as Car makes returns it in id. Use the same market and the same list. | Car models of a make |
| `query` | string | Words to look for in used-car listings, such as a make or a model name. Match the language you pick below. | Search used cars |
| `market` | string | Which Motory country site to read. Cars and numbers differ between them, so stay with one site for a whole task. Leave it empty for Saudi Arabia. | Car makes, Car models of a make, Used car details, Filter choices for used cars, Search used cars |
| `language` | string | The language of labels and texts in the rows. Numbers and IDs do not change. Leave it empty for English. | Car makes, Car models of a make, Used car details, Used car details by link, Filter choices for used cars, Search used cars, Search used cars by link |
| `makeIds` | string | Make numbers from Car makes, with a comma between them. Cars of any listed make stay. | Filter choices for used cars, Search used cars |
| `modelIds` | string | Model numbers from Car models of a make, with a comma between them. A match on any one is enough. | Filter choices for used cars, Search used cars |
| `cityIds` | string | City numbers from Filter choices for used cars, with a comma between them. | Filter choices for used cars, Search used cars |
| `minYear` | integer | Oldest model year to keep. Use the same value as the latest year to pick one year. | Filter choices for used cars, Search used cars |
| `maxYear` | integer | Newest model year to keep. | Filter choices for used cars, Search used cars |
| `minPrice` | integer | Lowest asking price, written as a plain number in the currency of the chosen country. Cars that hide their price are left out. | Filter choices for used cars, Search used cars |
| `maxPrice` | integer | Highest asking price, written as a plain number in the currency of the chosen country. | Filter choices for used cars, Search used cars |
| `sellerType` | string | Show only dealerships or only private sellers. Leave it empty for both. | Filter choices for used cars, Search used cars |
| `sort` | string | How to order the cars. Leave it empty for promoted cars first. | Search used cars, Search used cars by link |

#### Advanced filters

Put these keys inside the `advancedFilters` object. Any other key is refused.

| Key | Type | Description | Used by |
| --- | --- | --- | --- |
| `bodyTypeIds` | string | Body style numbers from Filter choices for used cars, with a comma between them. | Filter choices for used cars, Search used cars |
| `fuelTypeIds` | string | Fuel type numbers from Filter choices for used cars, with a comma between them. | Filter choices for used cars, Search used cars |
| `transmissionIds` | string | Gearbox type numbers from Filter choices for used cars, with a comma between them. | Filter choices for used cars, Search used cars |
| `colorIds` | string | Exterior color numbers from Filter choices for used cars, with a comma between them. | Filter choices for used cars, Search used cars |
| `originIds` | string | Numbers of the maker countries from Filter choices for used cars, with a comma between them. | Filter choices for used cars, Search used cars |
| `mileageIds` | string | Numbers of distance-driven bands from Filter choices for used cars, with a comma between them. | Filter choices for used cars, Search used cars |
| `dealerIds` | string | Numbers of dealerships whose whole stock you want, with a comma between them. | Filter choices for used cars, Search used cars |
| `hasFinancing` | boolean | Keep only cars sold with a loan offer. Leave it unset rather than off. | Filter choices for used cars, Search used cars |
| `withPriceOnly` | boolean | Hide cars listed without a price. Leave it unset rather than off. | Filter choices for used cars, Search used cars |
| `pricing` | string | One special group of cars to look at. | Search used cars |
| `minElectricRange` | integer | Shortest distance on a full charge, in whole kilometers. Cars that state no range are dropped. | Filter choices for used cars, Search used cars |
| `maxElectricRange` | integer | Longest distance on a full charge, in whole kilometers. | Filter choices for used cars, Search used cars |

### Output

Every row holds the run's own fields first (`operation`, `scrapedAt` and `sourceUrl`),
then the core fields `id`, `url`, `title`, `price`, `currency`, `location`, which are empty when the source has no such value,
and then every field of the source item as Motory returns it. The dataset has an overview view and one view per
operation.

Run the Actor with the prefilled input to see a sample of the output.

### Pricing

This Actor uses pay-per-event pricing: a start fee of $0.002 for each run, plus
$0.002 for each result in the dataset. Every operation is priced the same way.

| Operation | Start fee per run | Price per result |
| --- | --- | --- |
| Car makes | $0.002 | $0.002 |
| Car models of a make | $0.002 | $0.002 |
| Identify a Motory page link | $0.002 | $0.002 |
| Used car details | $0.002 | $0.002 |
| Used car details by link | $0.002 | $0.002 |
| Filter choices for used cars | $0.002 | $0.002 |
| Search used cars | $0.002 | $0.002 |
| Search used cars by link | $0.002 | $0.002 |

Worked examples for one run:

| Results | Total cost |
| --- | --- |
| 10 | $0.022 |
| 100 | $0.202 |
| 1,000 | $2.002 |

Invalid input, a not-found answer or an internal error adds no charge of its own: such a run pays the start
fee plus only the results it delivered before it stopped (none for invalid input). To cap what one run may
cost, set the maximum cost per run when you start it.

### Limits and tips

- One run returns at most 1,000 results; the input form allows no higher `maxItems`.
- Set `maxItems` to what you need: you pay per result, and a smaller run finishes sooner.
- A request that matches nothing ends with an empty dataset and costs only the start fee.
- Numbers for makes, models, cities and the other filters belong to one market. Take them from the lists of the same country site, never across Saudi Arabia and Jordan.
- Search by Motory page link and the detail links accept the Saudi site only. For Jordan, use the search operations with the country site set.
- Prices are in the currency of the market, and a car can hide its price, so some rows have no number.
- Each search page holds up to 50 cars and a run reads at most 25 pages.

### Resume a run that stopped at your cost limit

If you set a maximum cost per run and a run reaches it, the run stops early. To get the rest, resurrect the
run in Apify Console, or through the API, with a higher limit. The Actor resumes where it stopped: results
already in the dataset are not fetched or charged again, and the run still ends at `maxItems`.
Resurrecting can charge the start fee again.

### Running without input

The example input above is also this Actor's example run input. Apify's API documents that a run started with
no input at all uses the example run input: Search used cars, at most 10 results,
which costs at most $0.022 (the start fee plus 10 results). For your own runs, always send an input with the fields you need.

### FAQ

#### Do I need an account on Motory?

No. The Actor reads public data, so an Apify account is all you need.

#### How do I get the data into my own tools?

Download the dataset from the run's page, or read it through the Apify API and its integrations.

#### Where do I get a make or model number?

Run Car makes for the market, then Car models of a make with the make number. Each row carries its id, which you pass as a Make ID or a Model ID in the search.

#### Can I read new cars as well?

The makes and models lists cover the new-car catalogue too. The search itself covers the used cars on sale.

#### What does the language setting change?

Only labels and texts such as titles and descriptions. Numbers and IDs stay the same, and a keyword matches text in the language you pick.

#### Do rows contain seller contact data?

Rows keep every field the site shows, seller names and phone numbers included. Those can be personal data, so read the section on legal use below before you store or share them.

### More Motory Actors

This is the only Motory Actor in this collection for now.

### Related Actors

- [haraj-listings-search-scraper](https://apify.com/happyendpoint/haraj-listings-search-scraper)
- [gumtree-uk-listings-scraper](https://apify.com/happyendpoint/gumtree-uk-listings-scraper)
- [4sale-kuwait-listings-scraper](https://apify.com/happyendpoint/4sale-kuwait-listings-scraper)

### Disclaimer

This Actor is an independent tool. It is not affiliated with, endorsed by or sponsored by Motory. All
trademarks belong to their owners.

### Is it legal to use this data?

This Actor collects data that Motory shows publicly.
Some fields can hold personal data about private people: `description`, `header › title`, `lead_id`, `notification_id`, `phone_numbers`, `raw › title`, `related_used`, `response_id`, `seller`, `seller_id`, `seller_name`, `seller_phone`, `title`, `whatsapp_number`.
Some fields hold business contact data: `cash_sale_companies`, `companies`, `company_id`, `company_logo`, `company_name`, `data`, `dealer_id`, `financing_company_id`, `financing_company_logo`, `financing_company_name`, `offers › items[] › company`, `preferred_financing_company_phone`, `price › cash_sale_companies`, `price › companies`, `price › preferred_financing_company_id`, `price › preferred_financing_company_logo`, `price › preferred_financing_company_name`, `price › preferred_financing_company_phone`, `raw › price › cash_sale_companies`, `raw › price › companies`, `raw › price › preferred_financing_company_id`, `raw › price › preferred_financing_company_logo`, `raw › price › preferred_financing_company_name`, `raw › price › preferred_financing_company_phone`.
Personal data is protected by laws such as the GDPR in the EU. Collect and use it only when you have a lawful
reason, keep only what you need, and do not use it for unsolicited messages. If you are unsure, ask a lawyer.

# Changelog

This Actor's version history is a separate document: https://apify.com/happyendpoint/motory-used-cars-scraper/changelog.md

# Actor input Schema

## `operation` (type: `string`):

Which data to fetch. Each option is one kind of request.

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

The most results to return. The run stops once it has this many.

## `url` (type: `string`):

The address of a page on the Saudi Motory site, copied from your browser: the page of one car ad, a results page or any other page. Used by: Identify a Motory page link, Used car details by link, Search used cars by link.

## `listingId` (type: `integer`):

The number of one car ad, as search rows return it in id. Take it from the same market. Used by: Used car details.

## `carList` (type: `string`):

Pick the cars on sale now or the new-car catalogue. They share many entries, yet each has some that the other lacks. Used by: Car makes, Car models of a make.

## `makeId` (type: `integer`):

The number of one car make, as Car makes returns it in id. Use the same market and the same list. Used by: Car models of a make.

## `query` (type: `string`):

Words to look for in used-car listings, such as a make or a model name. Match the language you pick below. Used by: Search used cars.

## `market` (type: `string`):

Which Motory country site to read. Cars and numbers differ between them, so stay with one site for a whole task. Leave it empty for Saudi Arabia. Used by: Car makes, Car models of a make, Used car details, Filter choices for used cars, Search used cars.

## `language` (type: `string`):

The language of labels and texts in the rows. Numbers and IDs do not change. Leave it empty for English. Used by: Car makes, Car models of a make, Used car details, Used car details by link, Filter choices for used cars, Search used cars, Search used cars by link.

## `makeIds` (type: `string`):

Make numbers from Car makes, with a comma between them. Cars of any listed make stay. Used by: Filter choices for used cars, Search used cars.

## `modelIds` (type: `string`):

Model numbers from Car models of a make, with a comma between them. A match on any one is enough. Used by: Filter choices for used cars, Search used cars.

## `cityIds` (type: `string`):

City numbers from Filter choices for used cars, with a comma between them. Used by: Filter choices for used cars, Search used cars.

## `minYear` (type: `integer`):

Oldest model year to keep. Use the same value as the latest year to pick one year. Used by: Filter choices for used cars, Search used cars.

## `maxYear` (type: `integer`):

Newest model year to keep. Used by: Filter choices for used cars, Search used cars.

## `minPrice` (type: `integer`):

Lowest asking price, written as a plain number in the currency of the chosen country. Cars that hide their price are left out. Used by: Filter choices for used cars, Search used cars.

## `maxPrice` (type: `integer`):

Highest asking price, written as a plain number in the currency of the chosen country. Used by: Filter choices for used cars, Search used cars.

## `sellerType` (type: `string`):

Show only dealerships or only private sellers. Leave it empty for both. Used by: Filter choices for used cars, Search used cars.

## `sort` (type: `string`):

How to order the cars. Leave it empty for promoted cars first. Used by: Search used cars, Search used cars by link.

## `advancedFilters` (type: `object`):

More filters as one JSON object. The README lists every accepted key; any other key is refused.

## Actor input object example

```json
{
  "operation": "usedCars",
  "maxItems": 10
}
```

# Actor output Schema

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

No description

## `makes` (type: `string`):

No description

## `models` (type: `string`):

No description

## `resolveUrl` (type: `string`):

No description

## `usedCarDetails` (type: `string`):

No description

## `usedCarDetailsByUrl` (type: `string`):

No description

## `usedCarFilters` (type: `string`):

No description

## `usedCars` (type: `string`):

No description

## `usedCarsByUrl` (type: `string`):

No description

## `summary` (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 = {
    "operation": "usedCars",
    "maxItems": 10
};

// Run the Actor and wait for it to finish
const run = await client.actor("happyendpoint/motory-used-cars-scraper").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 = {
    "operation": "usedCars",
    "maxItems": 10,
}

# Run the Actor and wait for it to finish
run = client.actor("happyendpoint/motory-used-cars-scraper").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 '{
  "operation": "usedCars",
  "maxItems": 10
}' |
apify call happyendpoint/motory-used-cars-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,happyendpoint/motory-used-cars-scraper"
        }
    }
}
```

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/E631tSr6Sg8iHUm2Z/builds/gkxezfuIz7m6fizjH/openapi.json
