# Yellow Pages Au (`websift/yellow-pages-au`) Actor

Yellow Pages Australia Scraper - Extract AU business listings: contacts, addresses, ratings, hours. Perfect for lead generation, market research & B2B prospecting. Search by location/keyword. Get phone numbers, emails, websites. Automated pagination & filtering.

- **URL**: https://apify.com/websift/yellow-pages-au.md
- **Developed by:** [Jacob](https://apify.com/websift) (community)
- **Categories:** Automation, Lead generation, Developer tools
- **Stats:** 34 total users, 2 monthly users, 0.0% runs succeeded, 1 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.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

## Yellow Pages Australia Business Scraper

Extract comprehensive business data from **Yellow Pages Australia** for lead generation, market research, and business intelligence.\
This scraper automatically handles pagination and provides structured output with complete contact information.

***

### Features

- **Comprehensive Business Data** – Extract business names, phone numbers, emails, websites, physical addresses with GPS coordinates, and detailed descriptions.
- **Advanced Search Options** – Search by keywords, location, and apply filters like `open now`, `local businesses only`, and `popular listings`.
- **Smart Result Management** – Automatically detects available results and prevents over-scraping when requests exceed available data.
- **Rating & Review Information** – Retrieve customer ratings, review counts, and business accreditations.
- **Operating Hours** – Extract detailed opening hours for each business.
- **Category Classification** – Get business categories and industry classifications.
- **Flexible Sorting** – Sort results by relevance or distance from a specified location.
- **Efficient Pagination** – Concurrent page fetching with intelligent result limiting.
- **Structured Output** – Clean, consistent JSON format ready for CRM import or further processing.

### Input Parameters

- `searchTerm`: Business type or service (e.g., `"plumber"`, `"restaurant"`, `"dentist"`).
- `location`: City, suburb, or region in Australia.
- `maxResults`: Maximum number of results to extract (automatically adjusted to available data).
- `sortBy`: `"relevance"` or `"distance"`.
- `openNow`: Filter for businesses currently open.
- `localBusinesses`: Include only mappable local businesses.
- `popular`: Show only popular/featured listings.

### Example Usage

```json
{
  "searchTerm": "accountant",
  "location": "Melbourne VIC",
  "maxResults": 500,
  "sortBy": "relevance",
  "openNow": false,
  "localBusinesses": true,
  "popular": false
}
```

### Example output

```json
{
  "id": "123456",
  "name": "ABC Accounting Services",
  "phone": "02 9876 5432",
  "email": "info@abcaccounting.com.au",
  "website": "https://www.abcaccounting.com.au/",
  "address": {
    "addressLine": "123 Collins Street",
    "suburb": "Melbourne",
    "state": "VIC",
    "postCode": "3000",
    "latitude": -37.8136,
    "longitude": 144.9631
  },
  "rating_score": 4.5,
  "rating_count": 28,
  "category_name": "Accountants",
  "category_id": "accounting-services",
  "opening_hours": {
    "monday": "9:00 AM - 5:00 PM",
    "tuesday": "9:00 AM - 5:00 PM",
    "friday": "9:00 AM - 4:00 PM"
  },
  "description": "Professional accounting services for small to medium businesses...",
  "accreditations": ["CPA Australia", "Certified Tax Agent"],
  "unique_selling_points": ["Free initial consultation", "Same day service"],
  "profile_link": "https://www.yellowpages.com.au/vic/melbourne/abc-accounting-123456",
  "pureMobileBusiness": false,
  "last_updated": "2024-01-15"
}
```

### Limitations

- **Geographic Scope** – Limited to Australian businesses listed on Yellow Pages Australia.
- **Search Dependency** – Results depend on Yellow Pages' search algorithm and available listings.
- **Maximum Results** – Actual results may be fewer than requested if listings are limited.

### Error Handling

- **Automatic Retries** – Failed requests are retried with exponential backoff.
- **Graceful Degradation** – Processing continues even if individual pages fail to load.
- **Input Validation** – All input parameters are validated and sanitised with sensible defaults.

### Support

For issues, feature requests, or questions about this scraper, please **create an issue**.

# Actor input Schema

## `searchTerm` (type: `string`):

Job title or keyword to search for.

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

The maximum number of job listings to return.

## `sortBy` (type: `string`):

Sort the job listings by criteria.

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

Location to filter job listings (city, suburb, postcode, etc).

## `openNow` (type: `boolean`):

Filter to only show jobs that are currently open.

## `localBusinesses` (type: `boolean`):

Filter to only show jobs from local businesses.

## `popular` (type: `boolean`):

Filter to only show popular job listings.

## Actor input object example

```json
{
  "searchTerm": "accountant",
  "maxResults": 200,
  "sortBy": "Relevance"
}
```

# 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 = {
    "searchTerm": "accountant"
};

// Run the Actor and wait for it to finish
const run = await client.actor("websift/yellow-pages-au").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 = { "searchTerm": "accountant" }

# Run the Actor and wait for it to finish
run = client.actor("websift/yellow-pages-au").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 '{
  "searchTerm": "accountant"
}' |
apify call websift/yellow-pages-au --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,websift/yellow-pages-au"
        }
    }
}

```

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/S2XLG55MVeI8NubBH/builds/lGSuv8tDegL8CtyK2/openapi.json
