# Hiyacar Scraper (`dadhalfdev/hiyacar-scraper`) Actor

Scrape peer-to-peer car rentals from hiyacar.co.uk. Filter by city, dates, make, body type, fuel, and more, or paste a Hiyacar search URL. Returns hourly/daily price, location, QuickStart/instant booking, and photos.

- **URL**: https://apify.com/dadhalfdev/hiyacar-scraper.md
- **Developed by:** [Marco Rodrigues](https://apify.com/dadhalfdev) (community)
- **Categories:** Other
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $3.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.
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?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

## ⚡ Hiyacar Scraper

Want UK peer-to-peer car rentals from [Hiyacar.co.uk](https://www.hiyacar.co.uk/) without clicking through the map? This scraper makes it easy.

Use **structured filters** (city, dates, make, body type, fuel, QuickStart) — structured filters work better for AI agents — **or** paste an **`input_url`** from your browser once you've already filtered on Hiyacar. When `input_url` is set it overrides the filters below. Either way, you get clean CSV/JSON with hourly and daily prices, locations, and photos.

### 💡 Perfect for...

- **Travel & mobility apps:** Track private rental supply in London, Bristol, Edinburgh, and other UK cities.
- **Marketplaces:** Monitor competitor P2P pricing and instant-booking / QuickStart mix.
- **Market research:** Analyze GBP hourly and daily rates by city, make, and fuel.
- **Data analysts:** Export structured Hiyacar listings for dashboards and valuation models.
- **🤖 AI Agents:** Power bots and workflows with live Hiyacar search results.
- **📚 RAG Systems:** Feed titles, specs, and prices 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 Hiyacar `/search?q=…` or `/rent-a-car-in/…` URL if you already filtered in the browser, or use structured filters (better for AI agents). `input_url` always wins when set.
- 🎯 **Website-matched filters:** City, town/postcode, pickup/return dates, make, body type, fuel, transmission, seats, price, instant booking, QuickStart, pets, ULEZ, and sort.
- 🇬🇧 **Built for Hiyacar UK:** Uses the same public search API as the website — fast, structured, and up to date.
- ✅ **Empty searches finish cleanly** with 0 items instead of failing.

Hiyacar search is limited to **10 miles** from the chosen place (that is the site maximum). There is no nationwide dump from one query.

### 📦 What's inside the data?

For every rental listing, you will get:

- **Core details:** `id`, `url`, `title`, `year`, `make`, `model`, `colour`, `car_type`, `body_type`, `seats`
- **Pricing:** `price_per_hour`, `price_per_day`, `price_per_week`, `quoted_price`, `price_currency` (GBP)
- **Location:** `location`, `city`, `postcode_prefix`, `latitude`, `longitude`, `country`, `distance_miles`
- **Booking:** `instant_booking`, `quickstart`, `pets_allowed`, `ulez_compliant`, `miles_per_day`, `features`
- **Owner / ratings:** `owner_name`, `rating`, `review_count`
- **Media:** `image_url`, `image_urls`

Street addresses and number plates from the raw API are not stored.

### 🛠️ Sort options

Use `sort_by` with these values:

- **`relevancy`** – Site default
- **`distance`** – Nearest first
- **`price-low-to-high`** – Cheapest first
- **`price-high-to-low`** – Most expensive first
- **`highest-rated`** – Best rated first
- **`number-of-ratings`** – Most reviews first

### 🚀 Quick start

**Option A — Input URL**

1. Open [Hiyacar search](https://www.hiyacar.co.uk/search?q=London), pick a place if you want, copy the URL.
2. Paste it into `input_url`.
3. Set `max_listings` and click **Start**.

**Option B — Structured filters (better for AI agents)**

1. Leave `input_url` empty.
2. Set `location` (dropdown, default London) or a town/postcode `query`.
3. Optionally set make, dates, fuel, seats, and flags.
4. Set `max_listings` (up to 1000) and click **Start**.

Export CSV, Excel, or JSON when done.

### 📥 Inputs

| Field | Description |
|--------|-------------|
| `input_url` | Optional Hiyacar search/city URL (overrides filters) |
| `location` | Dropdown of UK cities and London areas. Default `london` |
| `query` | Town or postcode as on Hiyacar (overrides `location`) |
| `make` | Brand slug as on Hiyacar (`bmw`, `vauxhall`, `tesla`, …) |
| `pickup_date` / `return_date` | `YYYY-MM-DD` availability window (set both) |
| `distance_miles` | 1–10 (default `10`) |
| `price_max` | Daily rate cap in GBP |
| `car_type` | Hiyacar type id: 1 saloon, 2 convertible, 3 estate, 4 hatchback, 5 4x4, 6 MPV, 7 van, 8 sports |
| `fuel_type` | Petrol, Diesel, Electric, Hybrid |
| `transmission` | automatic or manual |
| `min_seats` | Minimum seats |
| `instant_booking` / `quickstart` / `pets_welcome` / `ulez_compliant` | Boolean filters |
| `sort_by` | `relevancy`, `distance`, `price-low-to-high`, `price-high-to-low`, `highest-rated`, `number-of-ratings` |
| `max_listings` | Cap results (1–1000, default `50`) |

**Example (filters):**

```json
{
  "location": "london",
  "fuel_type": "Electric",
  "sort_by": "price-low-to-high",
  "max_listings": 50
}
```

**Example (dates):**

```json
{
  "location": "bristol",
  "pickup_date": "2026-09-01",
  "return_date": "2026-09-03",
  "max_listings": 25
}
```

**Example (URL override):**

```json
{
  "input_url": "https://www.hiyacar.co.uk/search?q=London&ib=Y",
  "max_listings": 50
}
```

### 📤 Output example

```json
{
  "id": "14462",
  "url": "https://www.hiyacar.co.uk/rent-a-car/14462-79928-vauxhall-corsa-in-london-sw8",
  "title": "Vauxhall Corsa",
  "year": 2011,
  "make": "Vauxhall",
  "model": "Corsa S Ecoflex",
  "car_type": "City / Hatchback",
  "price_per_hour": 6.0,
  "price_per_day": 33.0,
  "price_currency": "GBP",
  "location": "London SW8",
  "city": "London",
  "postcode_prefix": "SW8",
  "country": "GB",
  "instant_booking": true,
  "quickstart": true,
  "rating": 4.5,
  "image_url": "https://..."
}
```

# Actor input Schema

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

Optional. Paste a Hiyacar search or city URL (e.g. https://www.hiyacar.co.uk/search?q=London or https://www.hiyacar.co.uk/rent-a-car-in-bristol) to override the filters below.

## `location` (type: `string`):

Town or London area as on Hiyacar. Search is limited to 10 miles (site maximum). Ignored when input\_url or query is set.

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

Optional free-text place as on Hiyacar (e.g. SW1A 1AA or Hackney). Overrides the location dropdown. Ignored when input\_url is set.

## `make` (type: `string`):

Car brand as on Hiyacar. Leave empty for all makes. Ignored when input\_url is set.

## `pickup_date` (type: `string`):

Optional pickup date (YYYY-MM-DD). Use together with return\_date. Ignored when input\_url is set.

## `return_date` (type: `string`):

Optional return date (YYYY-MM-DD). Use together with pickup\_date. Ignored when input\_url is set.

## `distance_miles` (type: `integer`):

Max distance from the location. Hiyacar allows 1–10 miles (default 10). Ignored when input\_url is set.

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

Maximum daily rate in GBP. Ignored when input\_url is set.

## `car_type` (type: `string`):

Body type as on Hiyacar. Ignored when input\_url is set.

## `fuel_type` (type: `string`):

Fuel filter. Ignored when input\_url is set.

## `transmission` (type: `string`):

Gearbox filter. Ignored when input\_url is set.

## `min_seats` (type: `integer`):

Minimum number of seats (e.g. 7 for 7-seaters). Ignored when input\_url is set.

## `instant_booking` (type: `boolean`):

Only cars with instant booking. Ignored when input\_url is set.

## `quickstart` (type: `boolean`):

Only keyless QuickStart cars. Ignored when input\_url is set.

## `pets_welcome` (type: `boolean`):

Only cars marked pet friendly. Ignored when input\_url is set.

## `ulez_compliant` (type: `boolean`):

Only ULEZ-compliant cars. Ignored when input\_url is set.

## `sort_by` (type: `string`):

Result order. Ignored when input\_url is set.

## `max_listings` (type: `integer`):

How many rental listings to return (1–1000).

## Actor input object example

```json
{
  "location": "london",
  "make": "",
  "distance_miles": 10,
  "car_type": "",
  "fuel_type": "",
  "transmission": "",
  "instant_booking": false,
  "quickstart": false,
  "pets_welcome": false,
  "ulez_compliant": false,
  "sort_by": "relevancy",
  "max_listings": 50
}
```

# Actor output Schema

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

Table view of scraped listings using the dataset 'overview' view.

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

All scraped listings 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/hiyacar-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/hiyacar-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/hiyacar-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,dadhalfdev/hiyacar-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/5oaut5iN5gRal0fXY/builds/9Z6WYXx31Hr0ebER6/openapi.json
