# U-Haul Truck Rental Quotes — Locations & Availability (`memo23/uhaul-truck-rental-quotes`) Actor

Scrape U-Haul truck rental locations and availability by zip code from uhaul.com — location name, address, phone, hours, distance, and equipment. Enter zip codes or results-page URLs. JSON or CSV out.

- **URL**: https://apify.com/memo23/uhaul-truck-rental-quotes.md
- **Developed by:** [Muhamed Didovic](https://apify.com/memo23) (community)
- **Categories:** E-commerce
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $10.00 / 1,000 scraped items

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

<p align="center"><img src="https://raw.githubusercontent.com/muhamed-didovic/muhamed-didovic.github.io/main/assets/uhaul-quotes-logo.png" width="140" alt="U-Haul Truck Rental Quotes"></p>

## U-Haul Truck Rental Quotes — Locations & Availability

Find U-Haul truck rental locations near any US zip code. Enter zip codes or results-page URLs and the actor returns one row per location: name, address, phone, hours, distance, and available equipment.

![How the U-Haul Truck Rental Quotes scraper works](https://raw.githubusercontent.com/muhamed-didovic/muhamed-didovic.github.io/main/assets/how-it-works-uhaul-quotes.png)

### Why use this U-Haul Truck Rental Quotes scraper

- Search by zip code — no manual URL list needed.
- Full location details — address, phone, hours, distance.
- Equipment availability per location.
- Optional detail-page enrichment for richer data.
- Residential proxy support — U-Haul blocks datacenter IPs.

### Overview

U-Haul's location search lives at `www.uhaul.com/Locations/<zip>/Results/`. Each results page lists nearby locations with availability and contact details. This actor fetches results pages for the zip codes you provide and parses the location entries into clean records.

### Supported inputs

| You provide | Example |
|---|---|
| A zip code | `90210` |
| A results-page URL | `https://www.uhaul.com/Locations/90210/Results/` |
| A list of zip codes | `["90210", "10001", "60601"]` |

### Use cases

- Build a U-Haul locations dataset for a region or nationwide.
- Compare truck availability across zip codes.
- Find the nearest U-Haul location for a given address.
- Feed a moving-cost calculator or aggregator.
- Monitor location openings and closures.

### How it works

1. You supply zip codes or results-page URLs.
2. The actor fetches each results page (`/Locations/<zip>/Results/`).
3. It parses location entries from the HTML.
4. Optionally, it fetches each location's detail page for richer data.
5. Results are written to the dataset as one row per location.

### Input configuration

| Field | Type | Default | Description |
|---|---|---|---|
| `startUrls` | array | — | Results-page URLs or 5-digit zip codes. |
| `zipCodes` | array | — | Alternative: a list of 5-digit zip codes. |
| `fetchDetails` | boolean | `false` | Fetch each location's detail page for richer data. |
| `maxItems` | integer | `1000` | Maximum locations to scrape. |
| `maxConcurrency` | integer | `10` | Parallel page fetches. |
| `proxy` | object | residential | Residential proxy required — U-Haul blocks datacenter IPs. |

### Output overview

Each dataset item is a normalized location:

| Field | Description |
|---|---|
| `locationId` | U-Haul location ID. |
| `locationUrl` | Location detail page URL. |
| `name` | Location name. |
| `address` | Street address. |
| `city` / `state` / `zipCode` | Address components. |
| `phone` | Location phone number. |
| `hours` | Operating hours. |
| `distance` | Distance from the search zip (miles). |
| `equipmentAvailable` | List of available equipment types. |
| `latitude` / `longitude` | Location coordinates (from detail pages). |

### Notes

- **Residential proxy required.** U-Haul resets TCP connections from datacenter IPs. The actor uses the Apify residential proxy by default.
- The results-page parser uses multiple selector strategies to handle different page versions.
- Set `fetchDetails: true` for richer data (coordinates, full hours) at the cost of more requests.

# Actor input Schema

## `startUrls` (type: `array`):

U-Haul results-page URLs (www.uhaul.com/Locations/<zip>/Results/) or 5-digit zip codes.

## `zipCodes` (type: `array`):

Alternative: a list of 5-digit zip codes to search.

## `fetchDetails` (type: `boolean`):

Whether to fetch each location's detail page for richer data. Defaults to false (results-page data only).

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

Maximum locations to scrape.

## `maxConcurrency` (type: `integer`):

Number of pages fetched in parallel.

## `proxy` (type: `object`):

uhaul.com only answers US residential connections. Paying users are routed through our own residential pool automatically.

## Actor input object example

```json
{
  "fetchDetails": false,
  "maxItems": 1000,
  "maxConcurrency": 10,
  "proxy": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ],
    "apifyProxyCountry": "US"
  }
}
```

# Actor output Schema

## `results` (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 = {
    "proxy": {
        "useApifyProxy": true,
        "apifyProxyGroups": [
            "RESIDENTIAL"
        ],
        "apifyProxyCountry": "US"
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("memo23/uhaul-truck-rental-quotes").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 = { "proxy": {
        "useApifyProxy": True,
        "apifyProxyGroups": ["RESIDENTIAL"],
        "apifyProxyCountry": "US",
    } }

# Run the Actor and wait for it to finish
run = client.actor("memo23/uhaul-truck-rental-quotes").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 '{
  "proxy": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ],
    "apifyProxyCountry": "US"
  }
}' |
apify call memo23/uhaul-truck-rental-quotes --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,memo23/uhaul-truck-rental-quotes"
        }
    }
}
```

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/7PEObfieAXt0z6OGh/builds/luWl4cpX0iSAmjpYP/openapi.json
