Skip to content

September 23, 2026 · 11 min read

Yellow Pages Ghana Scraper: 34,000+ Businesses Extracted (2026)

By Crawlerbros Engineering Team

Scrape Yellow Pages Ghana, a free business directory covering 34,000+ Ghanaian businesses. Search by keyword and/or location, or fetch profiles by URL. Get names, addresses, categories, and source links. Note that phone numbers are omitted because the source gates them behind an interactive challenge that automated scrapers cannot bypass. This tool is built for data practitioners and analysts who need structured directory extracts, and it is not suitable for users seeking automated phone number discovery.

What does a Yellow Pages Ghana Scraper - Ghana Business Directory run cost?

Each result costs $0.005 on the free tier, which is $5.00 per 1,000 results. Starting a run is charged separately at $0.005 per GB of Actor memory. Apify also bills the platform usage each run consumes, at the rates of your Apify plan, on top of these charges.

Apify plan Per result Per 1,000 results
FREE $0.005 $5.00
BRONZE $0.00433 $4.33
SILVER $0.00367 $3.67
GOLD $0.003 $3.00
PLATINUM $0.003 $3.00
DIAMOND $0.003 $3.00

Each result costs $0.005, which equals $5.00 per 1,000 results on the free tier. Enabling the fetchDetails control will increase execution time by adding one extra request per result, which directly impacts compute duration.

How do you run Yellow Pages Ghana Scraper - Ghana Business Directory from the API?

The schema marks 1 of its 7 controls as required: mode. Nothing in the payload below is illustrative. Those are the schema's prefilled defaults for Yellow Pages Ghana Scraper - Ghana Business Directory, so the request works once your token is in place.

Call the synchronous endpoint to start a run and receive dataset items in one request:

curl -X POST "https://api.apify.com/v2/acts/crawlerbros~ghana-yello-scraper/run-sync-get-dataset-items?token=$APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"mode":"search","query":"restaurant","location":"Accra","sortBy":"relevance","fetchDetails":false,"businessUrls":[],"maxItems":20}'

The same run from Python, using the official client:

from apify_client import ApifyClient

client = ApifyClient("<YOUR_APIFY_TOKEN>")

run_input = {
  "mode": "search",
  "query": "restaurant",
  "location": "Accra",
  "sortBy": "relevance",
  "fetchDetails": False,
  "businessUrls": [],
  "maxItems": 20
}

run = client.actor("crawlerbros~ghana-yello-scraper").call(run_input=run_input)

for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)

And from Node.js:

import { ApifyClient } from 'apify-client'

const client = new ApifyClient({ token: '<YOUR_APIFY_TOKEN>' })

const input = {
  "mode": "search",
  "query": "restaurant",
  "location": "Accra",
  "sortBy": "relevance",
  "fetchDetails": false,
  "businessUrls": [],
  "maxItems": 20
}

const run = await client.actor('crawlerbros~ghana-yello-scraper').call(input)
const { items } = await client.dataset(run.defaultDatasetId).listItems()
console.log(items)

Because the call is synchronous, your client waits for the whole run. Keep it for exploration. For scheduled work, start the run without waiting and collect the dataset afterwards, so network trouble costs you a retry rather than the results.

Which Yellow Pages Ghana Scraper - Ghana Business Directory inputs matter, and which can you skip?

The schema exposes 7 controls, of which only mode is required. Most users should focus on query, location, and maxItems while leaving sortBy on its default relevance setting for a first run.

  • mode (string): Search by keyword/business type and/or location, or fetch business profiles from direct Yellow Pages Ghana URLs. Default: "search".
  • query (string): Business type, category, or name to search for, e.g. 'restaurant', 'plumber', 'hotel' (mode=search). Combine with Location to narrow results, or leave blank to browse a location only. Default: "restaurant".
  • location (string): Filter results to a specific Ghanaian city or town, e.g. 'Accra', 'Kumasi' (mode=search). Optional -- combine with Search keyword, or leave Search keyword blank to browse everything in this location. Default: "Accra".
  • sortBy (string): How to order search results. The site itself only returns its own relevance order, so 'name' is applied client-side across the fetched batch. Default: "relevance".
  • fetchDetails (boolean): For each search result, also visit its business profile page to collect the full category list and confirmed address. Slower -- one extra request per result. Default: false.
  • businessUrls (array): Direct Yellow Pages Ghana business profile URLs to fetch, e.g. https://yellowpages.com.gh/business/4-aces-restaurant-434568. Use the 'sourceUrl' field from search results. Default: [].
  • maxItems (integer): Hard cap on the number of business records to return. Default: 20.

Fixed-choice controls: mode accepts search, detail; sortBy accepts relevance, name.

Move one control per run. Compare each new sample against the previous one and keep the accepted, uncertain, and excluded counts side by side. A control that increases volume without improving decision quality still bills at $0.005 per result.

What does Yellow Pages Ghana Scraper - Ghana Business Directory return?

The returned records provide clean business identifiers, categories, website domains, and addresses suitable for market analysis and lead generation lists. They conspicuously do not contain phone numbers due to the source directory anti-bot challenge.

The Actor does not publish a per-field output list, so treat the first run as the specification: collect a small sample and record which fields are present before anything downstream depends on them.

How do you build the workflow end to end?

Open Yellow Pages Ghana Scraper - Ghana Business Directory and work through these in order. Each step ends with something to check, so a bad configuration surfaces on a small run rather than a scheduled one.

  1. Set the mode control to search and enter your target term into the query field.
  2. Specify a Ghanaian city or town in the location field or leave it blank to query across the entire directory.
  3. Adjust the sortBy control to order results by relevance or name.
  4. Toggle the fetchDetails boolean to true if you need confirmed addresses and full category lists from each profile page.
  5. Set the maxItems integer to cap the size of your result set before launching the run.
  6. Inspect the resulting records to ensure the sourceUrl and name fields are populated correctly.

How do you apply it? Three worked playbooks

These are Yellow Pages Ghana Scraper - Ghana Business Directory's own documented use cases, each worked through as an operating pattern rather than a description.

Use case 1: Market research

Outcome: find every business of a given type in a Ghanaian city

Configure: Set mode to search, query to your target industry, location to the desired city, and maxItems to 50.

Working method: Run the search across a single location first, then compare the output volume against known local business density before expanding to adjacent towns.

Deliverable: A dataset of business names, categories, addresses, and website links for the specified market.

Stop condition: Zero results returned for a broad category search indicating a potential structural change on the directory.

Use case 2: Lead generation

Outcome: build a list of business names, categories, and addresses for outreach (phone lookup done manually per the note above)

Configure: Set mode to search, leave query blank, set location to your target city, and enable fetchDetails.

Working method: Collect all records in a single location, extract the sourceUrl values, and prepare them for manual phone number retrieval.

Deliverable: A clean spreadsheet of verified local businesses ready for manual outreach and phone number lookup.

Stop condition: The run aborts or times out before reaching the maxItems threshold.

Use case 3: Company existence verification

Outcome: confirm a business is listed and see its stated category and location

Configure: Set mode to detail and populate businessUrls with direct profile links gathered from previous search runs.

Working method: Fetch targeted profiles directly by URL to confirm active listings and retrieve updated address and category data.

Deliverable: A verified record confirming the current existence and category listing of specific target companies.

Stop condition: Returned profile records lack the primary category field.

What breaks, and how do you design around it?

  • The Actor publishes no limitations section, so treat the observed run outcomes as the operating envelope: measure the failure rate on your own inputs before scheduling it.

When you encounter missing phone numbers, use the provided sourceUrl to visit the profile directly and retrieve them manually. Cap large extraction tasks using maxItems to stay within reasonable execution limits.

When should you not use Yellow Pages Ghana Scraper - Ghana Business Directory?

Do not use this Actor if your primary objective is automated phone number extraction at scale, because the source directory gates real phone numbers behind a Cloudflare Turnstile challenge that automated datacenter proxies cannot solve. If you need verified phone contacts without manual browser intervention, you should use an official enterprise directory API, purchase a pre-compiled B2B contact list from a licensed data provider, or rely on direct outreach through company websites rather than scraping this directory. Attempting to bypass the CAPTCHA programmatically will result in blocked requests and wasted compute time.

What should you check before trusting the output?

  • Verify that every returned record contains a non-null name and a valid sourceUrl pointing to yellowpages.com.gh.
  • Check that the address and city fields correspond to the expected location filter when a location is specified.
  • Confirm that the categories array is present and populated when fetchDetails is set to true.
  • Stop the scheduled run if consecutive records return empty website or category strings due to structural changes on the source directory.
  • Check that recordType equals business across all emitted items.

None of this proves a record is correct. It gives a scheduled Yellow Pages Ghana Scraper - Ghana Business Directory run defined points where it should stop instead of quietly passing bad data downstream.

Frequently asked questions

Why are phone numbers missing from the output records?

The source directory gates real phone numbers behind an interactive CAPTCHA challenge on every page that displays them. Because automated zero-cost scrapers cannot solve this challenge, the scraper omits the phone field rather than returning masked placeholders like 026 XXX XXXX.

How does the fetchDetails option affect my run cost and speed?

Enabling fetchDetails instructs the scraper to visit each individual business profile page after the initial search. This adds one extra request per result, which increases runtime and compute resource consumption while gathering confirmed addresses and full category lists.

What is the cost per result on the free tier?

Each result costs $0.005, which translates to $5.00 per 1,000 results on the free tier. Additional costs may accrue based on actor memory consumption during execution.

Can I search by location without providing a keyword?

Yes. You can leave the query field blank and supply only a location string to browse all available business listings within a specific Ghanaian city or town.

How up-to-date is the extracted directory data?

The data is fetched in real time directly from the public search results of the Yellow Pages Ghana directory at the exact moment your run executes.

Where to go next

Start with the Yellow Pages Ghana Scraper - Ghana Business Directory Actor page for the current input schema, pricing tier, and run history.

If you are comparing approaches rather than committing to one Actor, these category pages list every option we publish:

Readers running Yellow Pages Ghana Scraper - Ghana Business Directory commonly pair it with:

Related guides:

Resources

● Featured actors

Yellow Pages Ghana Scraper - Ghana Business Directory

Scrape Yellow Pages Ghana, a free business directory covering 34,000+ Ghanaian businesses. Search by keyword and/or location, or fetch profiles by URL. Get names, addresses, categories, and source links.

Run on Apify ↗