# Moto.it Scraper (`dadhalfdev/moto-it-scraper`) Actor

Scrape used motorcycles from moto.it. Paste a URL or use the brand, model, price, year, mileage, region, seller, and sort filters. When a URL is set it wins.

- **URL**: https://apify.com/dadhalfdev/moto-it-scraper.md
- **Developed by:** [Marco Rodrigues](https://apify.com/dadhalfdev) (community)
- **Features:** Limited permissions
- **Stats:** 3 total users, 2 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.50 / 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.
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

## 🏍️ Moto.it Scraper

Want [Moto.it](https://www.moto.it/moto-usate) used motorcycles in a spreadsheet? This scraper makes it easy.

Use **structured filters** — better for AI agents — **or** paste an **`input_url`**. When `input_url` is set it overrides the filters.

Moto.it lists used motorcycles for sale in Italy, with the price in euro, the year, the mileage, and the city on each ad.

### 💡 Perfect for...

- **Model hunt:** Compare one brand and model, such as a BMW C 400 X, by price.
- **Private or dealer:** Keep only private sellers or only dealers, in one region.
- **Fresh stock:** Year, kilometres, city, and the date the ad was published.
- **🤖 AI Agents:** Power Claude, Cursor, Codex, the Hermes Agent, and OpenClaw workflows with live Moto.it results.
- **📚 RAG Systems:** Feed the fields below into retrieval pipelines.
- **🔗 AI Workflows:** Plug into LangChain, AutoGPT, CrewAI, and similar stacks.

### ✨ Why you'll love this scraper

- 🔗 **Input URL or Filters:** Paste a Moto.it search or ad URL, or set the filters below. `input_url` always wins when set.
- 🎯 **Website-Matched Filters:** Brand, model, keyword, region, seller type, minimum price, maximum price, minimum year, maximum year, minimum kilometres, maximum kilometres, and sort.
- 🌐 **Bike rows:** The title, photo, price, seller, and city shown on the card.

### 📦 What's inside the data?

`id`, `url`, `title`, `brand`, `model`, `price`, `currency`, `seller`, `city`, `province`, `year`, `mileage_km`, `published`, `image`, `warranty`

### 🚀 Quick start

**Option A:** paste `https://www.moto.it/moto-usate/bmw/c-400-x`.
**Option B:** set brand, model, price, year, kilometres, region, seller type, and sort, then set `max_results`.

**Input Example (filters):**

```json
{
  "brand": "BMW",
  "model": "C 400 X",
  "sort": "lowest price",
  "max_results": 100
}
```

**Input Example (URL):**

```json
{
  "input_url": "https://www.moto.it/moto-usate/bmw/c-400-x",
  "max_results": 100
}
```

**Output Example:**

```json
{
  "id": "10115562",
  "url": "https://www.moto.it/moto-usate/bmw/c-400-x/c-400-x-2018-20/10115562",
  "title": "Bmw C 400 X (2018 - 20) usata",
  "brand": "Bmw",
  "model": "C 400 X (2018 - 20)",
  "price": 2800,
  "seller": "Rivenditore",
  "city": "Genova",
  "province": "GE",
  "year": 2019,
  "mileage_km": 51736,
  "published": "22 settembre 2026 alle 16:28",
  "image": "https://cdn-img.moto.it/images/52143902/2000x/image.jpg?quality=75&format=webp",
  "currency": "EUR"
}
```

**Output fields:**

| Field | Description |
|-------|-------------|
| `id` | Ad id. |
| `url` | Public ad page. |
| `title` | Title on the card. |
| `brand` | Brand on the card. |
| `model` | Model on the card. |
| `price` | Asking price in euro. |
| `currency` | `EUR` when a price is shown. |
| `seller` | Seller on the card, such as Privato or a dealer name. |
| `city` | City. |
| `province` | Province code, such as GE. |
| `year` | Year on the card. |
| `mileage_km` | Kilometres. |
| `published` | Date and time on the card. |
| `image` | Photo from the card. |
| `warranty` | Guarantee label when the card shows Moto con garanzia. |

A search with no matching bikes finishes successfully and leaves the dataset empty.

### 📋 Input reference

| Parameter | Type | Required | Default | Description |
|-----------|------|----------|---------|-------------|
| `input_url` | string | No | - | Moto.it used-bike search or ad URL. Overrides every filter. |
| `brand` | string | No | - | Brand, such as BMW, Ducati, or Honda. Blank is every brand. |
| `model` | string | No | - | Model for that brand, such as C 400 X or R 1250 GS. |
| `keyword` | string | No | - | Same as the search box. |
| `region` | string | No | - | Region, such as Lombardia, Lazio, or Sicilia. |
| `seller` | string | No | - | private or dealer. Blank is both. |
| `price_min` | integer | No | - | Lowest price in euro. |
| `price_max` | integer | No | - | Highest price in euro. |
| `year_min` | integer | No | - | Earliest year. |
| `year_max` | integer | No | - | Latest year. |
| `km_min` | integer | No | - | Lowest kilometres. |
| `km_max` | integer | No | - | Highest kilometres. |
| `sort` | string | No | relevance | relevance, brand name, lowest price, highest price, newest, or oldest. |
| `max_results` | integer | No | `50` | How many rows to return (1-2000). |

### 🔧 Custom scrapers and agents

If you need a custom web scraper, or custom AI agents and workflows, contact me through [tuik.ai](https://www.tuik.ai). We help businesses cut costs and time by up to 10x.

# Actor input Schema

## `input_url` (type: `string`):

Paste a Moto.it used-bike search or ad URL. Overrides every filter when set.

## `brand` (type: `string`):

Brand as shown on Moto.it, such as BMW, Ducati, or Honda.

## `model` (type: `string`):

Model for the chosen brand, such as C 400 X or R 1250 GS.

## `keyword` (type: `string`):

Same as the search box. Optional.

## `region` (type: `string`):

Italian region, such as Lombardia, Lazio, or Sicilia.

## `seller` (type: `string`):

private or dealer. Leave blank for both.

## `price_min` (type: `integer`):

Keep bikes at or above this price in euro.

## `price_max` (type: `integer`):

Keep bikes at or below this price in euro.

## `year_min` (type: `integer`):

Keep bikes from this year onward.

## `year_max` (type: `integer`):

Keep bikes up to this year.

## `km_min` (type: `integer`):

Keep bikes with at least this mileage.

## `km_max` (type: `integer`):

Keep bikes with at most this mileage.

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

relevance, brand name, lowest price, highest price, newest, or oldest.

## `max_results` (type: `integer`):

Maximum rows to return (1–2000).

## Actor input object example

```json
{
  "sort": "relevance",
  "max_results": 50
}
```

# Actor output Schema

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

Table view of scraped used bikes using the dataset overview view.

## `results` (type: `string`):

All scraped used bikes from the default dataset without view transformation.

# 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 = {};

// Run the Actor and wait for it to finish
const run = await client.actor("dadhalfdev/moto-it-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 = {}

# Run the Actor and wait for it to finish
run = client.actor("dadhalfdev/moto-it-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 '{}' |
apify call dadhalfdev/moto-it-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,dadhalfdev/moto-it-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/dmtpsHDvbALkwGqkv/builds/gDfUBgQO7jMbMfZXS/openapi.json
