# Franchise Resale Scraper — Listings & Prices (`muhammadafzal/franchise-resale-scraper`) Actor

Extract public FranchiseRESALES.com resale listings for acquisition sourcing. Returns one listing per row with brand, location, asking price, description, image, and source URL. $0.01 per listing returned.

- **URL**: https://apify.com/muhammadafzal/franchise-resale-scraper.md
- **Developed by:** [Muhammad Afzal](https://apify.com/muhammadafzal) (community)
- **Categories:** Lead generation, MCP servers
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $10.00 / 1,000 franchise resale listing returneds

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.

Learn more: https://docs.apify.com/platform/actors/running/actors-in-store#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

## Franchise Resale Scraper — Listings, Brands & Prices

Collect structured, public franchise-resale listings from [FranchiseRESALES.com](https://www.franchiseresales.com/) for acquisition sourcing, market research, and franchise-broker workflows. Each dataset row represents one public resale listing, with its asking price, location, public description, image, and source URL.

This Actor is purpose-built for the FranchiseRESALES.com marketplace. It is not a cross-marketplace business-for-sale scraper, a seller-contact extractor, or a tool for submitting enquiries and forms.

### What it returns

| Field | Description |
| --- | --- |
| `title`, `franchiseBrand`, `industry` | Public listing identity and categorization |
| `location`, `city`, `stateOrProvince`, `country` | Publicly displayed location, with conservative parsed components |
| `askingPrice`, `currency`, `priceText` | Published price as original text and a normalized value when unambiguous |
| `summary`, `description`, `publishedFacts` | Public marketing text and publicly labeled business facts |
| `imageUrl`, `listingUrl`, `sourceUrl` | Public image and auditable source links |
| `scrapedAt` | UTC extraction timestamp |

Unavailable fields are `null`; this Actor does not estimate prices, revenue, brand identity, or private contact information.

### When to use it

Use it to export current FranchiseRESALES.com opportunities, create a watchlist of public listings, compare advertised asking prices, or load structured opportunities into an internal research tool.

Do not use it to collect non-public seller details, submit contact forms, bypass access controls, or make an acquisition decision without independent financial and legal due diligence. For franchise opportunities that are not existing resales, use a new-franchise directory scraper instead.

### Input

The default input starts from the marketplace’s public resale search page and returns up to 20 listings.

```json
{
  "startUrls": [{ "url": "https://www.franchiseresales.com/find-a-resale/" }],
  "maxResults": 20,
  "proxyCountry": "US"
}
```

You can also pass one or more direct public listing URLs. `maxResults` is a strict cap on unique dataset rows and billable listing events. The Actor always visits each public detail page because marketplace search cards do not reliably expose a listing title or core facts.

`proxyCountry` selects the country for the Actor’s residential Apify Proxy session. It defaults to `US`; use `CA` only when a Canadian session better reflects the public listing context. It is not a search-location filter.

### Output example

```json
{
  "listingUrl": "https://www.franchiseresales.com/example-listing/",
  "sourceUrl": "https://www.franchiseresales.com/find-a-resale/",
  "title": "Anytime Fitness Club - Prime Location",
  "franchiseBrand": "Anytime Fitness",
  "location": "Scottsdale, Arizona",
  "city": "Scottsdale",
  "stateOrProvince": "Arizona",
  "country": "United States",
  "askingPrice": 350000,
  "currency": "USD",
  "priceText": "$350,000",
  "summary": "Top-performing gym in a high-growth area.",
  "description": "Established fitness club with recurring membership revenue.",
  "industry": "Fitness",
  "imageUrl": "https://www.franchiseresales.com/wp-content/uploads/example.jpg",
  "publishedFacts": { "Annual Revenue": "$500,000" },
  "scrapedAt": "2026-08-09T12:00:00.000Z"
}
```

The terminal `OUTPUT` key contains the number of records, billed result events, failed requests, cost cap, and warnings. It distinguishes a valid empty search from an access failure.

### Pricing

The Actor uses pay per event:

| Event | Price | When charged |
| --- | ---: | --- |
| Actor start | $0.001 | Once per run |
| Franchise resale listing returned | $0.01 | Once for each unique listing successfully written to the dataset |

A 20-listing run costs at most **$0.201** in custom events: $0.001 start plus 20 × $0.01. Platform usage and any applicable proxy usage are separate. The Actor displays the maximum custom-event cost before collection starts and never charges a row that was not written.

### Reliability and limits

The marketplace may use Cloudflare or change its public HTML. The Actor uses a bounded, sticky residential session when it runs on Apify and makes no more than 20 requests per minute. If all requests are blocked, it fails honestly with an access diagnostic and returns no fabricated rows or result charges. If a valid search page has no matching public cards, it completes with an `EMPTY` summary and a warning.

The parser is intentionally conservative. It preserves original price text beside normalized money, keeps optional fields nullable, and leaves ambiguous city or country components unset. Always retain `sourceUrl` and review the original listing before relying on any financial field.

### API and agent use

```javascript
import { ApifyClient } from 'apify-client';

const client = new ApifyClient({ token: process.env.APIFY_TOKEN });
const run = await client.actor('your-username/franchise-resale-scraper').call({
  startUrls: [{ url: 'https://www.franchiseresales.com/find-a-resale/' }],
  maxResults: 10,
});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items);
```

For an agent workflow, provide the exact public page or listing URL and a small result cap. The returned data is one stable listing entity per item; the run-level `OUTPUT` summary is the place to check for access warnings or an empty search.

### Compliance

Only collect publicly available data for lawful purposes and comply with FranchiseRESALES.com’s terms, applicable privacy laws, and reasonable request rates. The Actor is independent and is not affiliated with or endorsed by FranchiseRESALES.com.

# Actor input Schema

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

Use this to choose public FranchiseRESALES.com search or listing pages. Example: https://www.franchiseresales.com/find-a-resale/. Defaults to the public resale search page. This is not a URL list for other marketplaces.

## `maxResults` (type: `integer`):

Use this to cap unique resale listings saved and billed. Enter 1–100; default is 20. At $0.01 per listing, 20 results cost at most $0.20 plus the $0.001 start fee. This is not a page-count setting.

## `proxyCountry` (type: `string`):

Use this when a US residential session is needed for the marketplace. Defaults to US because the source is US-focused. Select CA only for Canadian listings. This is not a listing-location filter.

## Actor input object example

```json
{
  "startUrls": [
    {
      "url": "https://www.franchiseresales.com/find-a-resale/"
    }
  ],
  "maxResults": 20,
  "proxyCountry": "US"
}
```

# Actor output Schema

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

Schema-valid public resale listing records from the default dataset.

## `summary` (type: `string`):

Counts, charges, access diagnostics, and warnings for the run.

# 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.franchiseresales.com/find-a-resale/"
        }
    ],
    "maxResults": 20
};

// Run the Actor and wait for it to finish
const run = await client.actor("muhammadafzal/franchise-resale-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 = {
    "startUrls": [{ "url": "https://www.franchiseresales.com/find-a-resale/" }],
    "maxResults": 20,
}

# Run the Actor and wait for it to finish
run = client.actor("muhammadafzal/franchise-resale-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 '{
  "startUrls": [
    {
      "url": "https://www.franchiseresales.com/find-a-resale/"
    }
  ],
  "maxResults": 20
}' |
apify call muhammadafzal/franchise-resale-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,muhammadafzal/franchise-resale-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/e0xDDLRtY9dfRKg1G/builds/KqeFTNw2emte7Itn6/openapi.json
