# Yellow Pages UAE Scraper (`memo23/yellowpages-uae-scraper`) Actor

Scrape yellowpages-uae.com into one row per UAE business: name, phone, email when it is the company's own, website, city. Category plus optional emirate, or a /uae/ URL. JSON or CSV out. $5 per 1,000 listings plus phone and email events.

- **URL**: https://apify.com/memo23/yellowpages-uae-scraper.md
- **Developed by:** [Muhamed Didovic](https://apify.com/memo23) (community)
- **Categories:** Lead generation
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $5.00 / 1,000 business listings

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

## Yellow Pages UAE Scraper

Scrape [yellowpages-uae.com](https://www.yellowpages-uae.com/) into one row per **business**: name, phone, website, city, and a company email when the directory actually lists one.

Works from a category plus optional emirate, or a pasted `/uae/` category or profile URL. Direct requests return the HTML. No proxy by default.

**Pricing:** $0.005 per listing (`pushData`). Extra `contact-phone` $0.002 and `contact-email` $0.05 when those fields are present.

### Why use this scraper?

- Phone, city, and street sit on the search payload (`branchid`, `phone`, `mobile`, `city`, `location`).
- Nationwide is `/uae/{category}`. An emirate is `/uae/{emirate}/{category}`.
- Page N is `?page=N` (20 cards). Page 2 does not repeat page 1.
- The free-listing inbox `yellowpagesfreelistings@gmail.com` is dropped. A company email is kept.

### Overview

Built for lead lists on UAE companies. Each dataset item is one branch from yellowpages-uae.com.

### Supported inputs

| Input | What it does |
|---|---|
| `startUrls` | `https://www.yellowpages-uae.com/uae/restaurant` or a `/{slug}-{id}` profile |
| `searchTerms` | Category, e.g. `restaurant`, `hospital` |
| `locations` | Emirate, e.g. `Dubai`, `Abu Dhabi`. Empty = all UAE |
| `maxItems` | Stop after N unique listings (free plan cap 50) |
| `maxPages` | 20 cards per page |
| `harvestWebsiteEmail` | Fetch the business site when the directory email was the placeholder |
| `proxy` | Off by default |

### Use cases

| Who | Why |
|---|---|
| Sales / agencies | UAE phones from a trade category |
| Researchers | Emirate and street coverage |
| SEO | Website per listing |

### How it works

1. Build `https://www.yellowpages-uae.com/uae/{category}` or `/uae/{emirate}/{category}`.
2. Read the listing records embedded in the page (`branchid`).
3. Open the profile for any extra phone.
4. Charge `contact-phone` / `contact-email` after `pushData`.
5. If the only email was the directory placeholder and harvest is on, fetch the business homepage.

### Input configuration

| Field | Type | Required | Notes |
|---|---|---|---|
| `startUrls` | url\[] | one of terms/URLs | `/uae/...` or a profile |
| `searchTerms` | string\[] | one of terms/URLs | e.g. `restaurant` |
| `locations` | string\[] | no | e.g. `Dubai` |
| `maxItems` | integer | no | default 50 |
| `maxPages` | integer | no | default 20 |
| `scrapeDetails` | boolean | no | default true |
| `harvestWebsiteEmail` | boolean | no | default true |
| `maxConcurrency` | integer | no | default 5 |
| `proxy` | proxy | no | default off |

#### Example input

```json
{
  "searchTerms": ["restaurant"],
  "locations": ["Dubai"],
  "maxItems": 10,
  "harvestWebsiteEmail": false,
  "proxy": { "useApifyProxy": false }
}
```

### Output overview

One JSON object per business. Search records already carry phone, city, street, and website when the listing publishes them.

### Output samples

```json
{
  "listingId": "175272",
  "name": "101 Parathas",
  "phone": "065538106",
  "city": "Sharjah",
  "street": "Near Grand Hotel, Abu Shagara",
  "country": "AE",
  "profileUrl": "https://www.yellowpages-uae.com/101-parathas-175272",
  "source": "yellowpages-uae"
}
```

### FAQ

**Does an emirate filter work?** Yes, as `/uae/dubai/{category}`. Leave the emirate empty for the whole UAE.

**Is there a page 2?** Yes. `?page=2` is the next 20 cards.

**Why are some emails missing?** The site fills free listings with `yellowpagesfreelistings@gmail.com`. That address is not the business, so it is not stored.

**Do I need a proxy?** No. Leave it off unless a run starts getting blocked.

### Support

Questions or a broken selector: open an issue on the actor page.

### Disclaimer

Use this actor in line with yellowpages-uae.com terms and applicable law. You are responsible for how you use the data.

# Actor input Schema

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

Paste a category or profile link. Examples: <code>https://www.yellowpages-uae.com/uae/restaurant</code>, <code>https://www.yellowpages-uae.com/uae/dubai/restaurants</code>, or <code>https://www.yellowpages-uae.com/101-parathas-175272</code>. Page N is <code>?page=N</code> (20 cards).

## `searchTerms` (type: `array`):

Category as on the site, e.g. <b>restaurant</b>, <b>hospital</b>, <b>auto spare parts</b>. One row per category. Each category is searched in every emirate below. Leave emirates empty for all of the UAE.

## `locations` (type: `array`):

Optional emirate, e.g. <b>Dubai</b>, <b>Abu Dhabi</b>, <b>Sharjah</b>. Empty = nationwide <code>/uae/{category}</code>.

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

Stop after this many unique businesses across the whole run. Free plan is capped at 50. Each page has 20 cards.

## `scrapeDetails` (type: `boolean`):

Loads the profile for extra phone numbers. Search results already carry phone, city, and website when the listing publishes them.

## `harvestWebsiteEmail` (type: `boolean`):

The directory often stores its own free-listing inbox instead of the company's. Those addresses are dropped. When this is on, the actor fetches the business website if no company email is left.

## `maxPages` (type: `integer`):

Page N is <code>?page=N</code> (20 cards). A large category can run past 60 pages.

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

How many pages and profiles to load at the same time.

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

Leave off. yellowpages-uae.com answers a normal request. Turn on residential only if a run starts getting blocked.

## Actor input object example

```json
{
  "searchTerms": [
    "restaurant"
  ],
  "locations": [
    "Dubai"
  ],
  "maxItems": 50,
  "scrapeDetails": true,
  "harvestWebsiteEmail": true,
  "maxPages": 20,
  "maxConcurrency": 5,
  "proxy": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

## `overview` (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 = {
    "searchTerms": [
        "restaurant"
    ],
    "locations": [
        "Dubai"
    ],
    "proxy": {
        "useApifyProxy": false
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("memo23/yellowpages-uae-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 = {
    "searchTerms": ["restaurant"],
    "locations": ["Dubai"],
    "proxy": { "useApifyProxy": False },
}

# Run the Actor and wait for it to finish
run = client.actor("memo23/yellowpages-uae-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 '{
  "searchTerms": [
    "restaurant"
  ],
  "locations": [
    "Dubai"
  ],
  "proxy": {
    "useApifyProxy": false
  }
}' |
apify call memo23/yellowpages-uae-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,memo23/yellowpages-uae-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/RONONqAdEuLTR9nS5/builds/tVPdhSVoA3Hw3XlM6/openapi.json
