# YourMechanic Scraper (`daftvader/yourmechanic-scraper-3ccb9b5f-9b0e-5718-a303-d922b5defd8e`) Actor

Collect structured public mobile mechanic profiles by state, city, or URL.

- **URL**: https://apify.com/daftvader/yourmechanic-scraper-3ccb9b5f-9b0e-5718-a303-d922b5defd8e.md
- **Developed by:** [Sam Towers](https://apify.com/daftvader) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$3.50 / 1,000 mechanic-scrapeds

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

## YourMechanic Scraper

Build a structured list of mobile mechanics from public YourMechanic location
and profile pages. Choose states or cities, provide specific listing or profile
URLs, and receive one dataset record for every unique mechanic found.

### What can you use it for?

- Research mechanic availability in selected service areas.
- Build lead or directory datasets from public mechanic profiles.
- Compare experience, ratings, review totals, languages, and service coverage.
- Collect a known set of profiles from explicit YourMechanic URLs.

### Results

Each dataset item represents one unique mechanic profile and includes:

- profile URL and mechanic name;
- years of experience, employment type, state licence identifier, and home city;
- complete service-area and language lists shown on the profile;
- rating, review count, star breakdown, and badges;
- biography and photo URL.

Fields that are not present on a source profile are returned as `null` or an
empty collection. Profiles appearing in multiple selected locations are
deduplicated by canonical profile URL.

```json
{
  "url": "https://www.yourmechanic.com/pro/example",
  "name": "Example Mechanic",
  "experienceYears": 12,
  "stateLicenseIdentifier": null,
  "employmentType": "Independent Contractor",
  "homeCity": "Charlotte, NC",
  "serviceAreas": ["Charlotte, NC", "Concord, NC"],
  "rating": 4.9,
  "reviewCount": 125,
  "starBreakdown": {"5": 120, "4": 5},
  "badges": [],
  "languages": ["English"],
  "biography": "Profile biography text",
  "photoUrl": "https://www.yourmechanic.com/example.jpg"
}
```

The example illustrates the output shape; values depend on the public source
profile.

### Input

You can combine selection methods:

- `states`: state names or two-letter codes.
- `cities`: city names, `City, ST` values, or YourMechanic city slugs.
- `startUrls`: public YourMechanic `/city`, `/city/...`, or `/pro/...` URLs.
- `maxMechanics`: stop discovery after this many unique profiles.
- `concurrency`: simultaneous requests, from 1 to 50.
- `requestTimeoutSeconds`: per-request timeout, from 1 to 120 seconds.
- `proxyConfiguration`: optional Apify Proxy settings.

With no state, city, or start URL selection, the Actor discovers all cities
linked from YourMechanic's city index. For a quick run, set `maxMechanics` to a
small value.

```json
{
  "states": ["NC"],
  "maxMechanics": 10,
  "concurrency": 8
}
```

### Behaviour and limits

The Actor reads public pages without requiring a YourMechanic account. It uses
direct HTTP requests, retries transient request failures, and streams records to
the default dataset. Source-site markup and availability can change, so fields
are extracted conservatively and no missing facts are guessed.

The Actor charges one `mechanic-scraped` event after a unique mechanic record is
stored. If a run later fails, records already returned remain chargeable;
duplicates, failed profile requests, and profiles not returned are not charged.

# Actor input Schema

## `states` (type: `array`):

State names or two-letter codes, for example California or CA.

## `cities` (type: `array`):

City names, City, ST values, or YourMechanic city slugs.

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

YourMechanic city index, city listing, or mechanic profile URLs.

## `maxMechanics` (type: `integer`):

Maximum number of unique mechanic profiles to return.

## `concurrency` (type: `integer`):

Maximum number of simultaneous requests.

## `requestTimeoutSeconds` (type: `integer`):

Timeout for each request.

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

Optional Apify Proxy settings.

## Actor input object example

```json
{
  "states": [],
  "cities": [],
  "startUrls": [
    {
      "url": "https://www.yourmechanic.com/city/los-angeles-ca"
    }
  ],
  "maxMechanics": 1,
  "concurrency": 8,
  "requestTimeoutSeconds": 30,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

## `dataset` (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 = {
    "startUrls": [
        {
            "url": "https://www.yourmechanic.com/city/los-angeles-ca"
        }
    ],
    "maxMechanics": 1,
    "concurrency": 8,
    "requestTimeoutSeconds": 30
};

// Run the Actor and wait for it to finish
const run = await client.actor("daftvader/yourmechanic-scraper-3ccb9b5f-9b0e-5718-a303-d922b5defd8e").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 = {
    "startUrls": [{ "url": "https://www.yourmechanic.com/city/los-angeles-ca" }],
    "maxMechanics": 1,
    "concurrency": 8,
    "requestTimeoutSeconds": 30,
}

# Run the Actor and wait for it to finish
run = client.actor("daftvader/yourmechanic-scraper-3ccb9b5f-9b0e-5718-a303-d922b5defd8e").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 '{
  "startUrls": [
    {
      "url": "https://www.yourmechanic.com/city/los-angeles-ca"
    }
  ],
  "maxMechanics": 1,
  "concurrency": 8,
  "requestTimeoutSeconds": 30
}' |
apify call daftvader/yourmechanic-scraper-3ccb9b5f-9b0e-5718-a303-d922b5defd8e --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,daftvader/yourmechanic-scraper-3ccb9b5f-9b0e-5718-a303-d922b5defd8e"
        }
    }
}
```

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/uMFWrkr9sDHrP228V/builds/GljcOi0kQv4GDoLc0/openapi.json
