# Justdial Business Leads Scraper (`scrapeai/justdial-business-leads-scraper`) Actor

The JustDial Business Leads Scraper allows you to search by keyword and location to collect information such as business name, phone number, address, email, website, ratings, and categories. Ideal for generating B2B leads, local business research, and contact databases for sales or marketing.

- **URL**: https://apify.com/scrapeai/justdial-business-leads-scraper.md
- **Developed by:** [ScrapeAI](https://apify.com/scrapeai) (community)
- **Categories:** E-commerce, Lead generation, Automation
- **Security:** Full permissions
- **Stats:** 20 total users, 1 monthly users, 75.9% runs succeeded, 0 bookmarks
- **User rating**: 5.00 out of 5 stars

## Pricing

from $2.49 / 1,000 results

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/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

🧠 JustDial Business Leads Scraper

This Apify actor automatically scrapes business listings from JustDial based on your search term and location.
It extracts structured business data such as name, phone number, address, rating, image, and more — perfect for lead generation and market analysis.

✅ Use Cases

📇 Generate local business leads

💬 Build contact lists for cold outreach

🏙️ Conduct market research by city or category

🧭 Perform competitive analysis in your niche

📥 Input Configuration

You can customize the actor using the following input fields:

```json
{
  "search": "biryani",
  "location": "Dindigul",
  "headless": true,
  "maxCrawlPerSearch": 25,
  "debugMode": false,
  "startUrls": ["https://www.justdial.com/Bangalore/Hotels"]
}
```

🧾 Fields Explained
Field	Type	Description
search	string	Search term for JustDial (e.g., "biryani", "shops")
location	string	Location to search in (e.g., "Dindigul", "Madurai")
maxItems	number	(Optional) Maximum number of listings to extract
debugMode	boolean	(Optional) Logs extra information for troubleshooting
startUrls	array	(Optional) Custom JustDial URLs to override default search behavior
📤 Output

The actor returns a dataset containing an array of structured business listings.
Each record includes key details about the business, suitable for lead generation or analytics.

🧩 Sample Output

```json
[
  {
    "isAd": false,
    "url": "https://www.justdial.com/Mumbai/Afzal-Mao-Restaurant-Hp-Petrol-Pump-Chembur-East/022PXX22-XX22-211030145602-P7Y1_BZDET?trkid=&term=&ncatid=10408936&area=&search=Best%20Restaurants%20in%20Mumbai%20-%20Order%20Food%20Online&mncatname=Restaurants&ftterm=&abd_btn=&abd_heading=&bd=1&cat_b2b_flag=0&searchfrom=lst&thumbnail=",
    "name": "Afzal Mao Restaurant",
    "email": null,
    "websiteLink": "",
    "address": "Rc Marg Chembur East, Mumbai",
    "phone": "09972413273",
    "Whatsapp": null,
    "rating": "3.9",
    "ratingCount": "1361",
    "services": [],
    "infoSnippet": [],
    "image": "https://images.jdmagicbox.com/palghar/55/022p9800055/cbnr/67f872906e5f0a8f61e4c3e0a54594e1.jpg",
    "categories": [],
    "city": "Mumbai",
    "pincode": "",
    "latitude": "",
    "longitude": "",
    "verified": false,
    "paidStatus": 0,
    "openNow": 0,
    "establishedYear": "",
    "experience": "",
    "discountOffer": "",
    "topCategories": [],
    "video": "",
    "success": true
  }
]
```

🔒 Proxy Configuration

This actor uses Apify Proxy automatically to:

Avoid IP-based rate limiting or bans

Access location-specific JustDial data

Ensure stable scraping at scale

Default proxy settings use:

```json
{
  "useApifyProxy": true,
  "apifyProxyGroups": ["RESIDENTIAL"],
  "apifyProxyCountry": "IN"
}
```

🚀 How to Use

Open the actor in Apify Console

Click “Try actor” or create a new task

Enter your desired search term and location

Run the actor

Download your leads in JSON, CSV, or Excel format

⚙️ Advanced Input Example

```json
{
  "search": "hotels",
  "location": "Bangalore",
  "maxItems": 100,
  "headless": true,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": ["RESIDENTIAL"],
    "apifyProxyCountry": "IN"
  },
  "maxConcurrency": 5,
  "minDelayBetweenRequestsMs": 1000,
  "maxRequestRetries": 3,
  "requestHandlerTimeoutSecs": 60
}
```

🛠️ Tech Stack

🧩 Apify SDK
— for actor and data handling

🕷️ Crawlee
— for robust crawling and scraping

🌐 Puppeteer
— for browser automation and rendering dynamic content

⚙️ Node.js — fast, scalable backend environment

# Actor input Schema

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

City or location to search in

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

Maximum number of items to scrape

## `search` (type: `string`):

Business type or search term to look for

## `headless` (type: `boolean`):

Run browser in headless mode (no visible UI). Set to false for debugging.

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

Optionally, use Apify Proxy or custom HTTP proxy to avoid IP address-based blocking.

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

Maximum number of concurrent requests

## `minDelayBetweenRequestsMs` (type: `integer`):

Minimum delay between requests in milliseconds

## `maxRequestRetries` (type: `integer`):

Maximum number of retries for failed requests

## `requestHandlerTimeoutSecs` (type: `integer`):

Timeout for request handler in seconds

## `enableCaching` (type: `boolean`):

Enable basic caching to avoid duplicates

## Actor input object example

```json
{
  "location": "Mumbai",
  "maxItems": 100,
  "search": "restaurants",
  "headless": true,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ],
    "apifyProxyCountry": "IN"
  },
  "maxConcurrency": 5,
  "minDelayBetweenRequestsMs": 1000,
  "maxRequestRetries": 3,
  "requestHandlerTimeoutSecs": 60,
  "enableCaching": false
}
```

# 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 = {
    "location": "Mumbai",
    "maxItems": 100,
    "search": "restaurants",
    "headless": true
};

// Run the Actor and wait for it to finish
const run = await client.actor("scrapeai/justdial-business-leads-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 = {
    "location": "Mumbai",
    "maxItems": 100,
    "search": "restaurants",
    "headless": True,
}

# Run the Actor and wait for it to finish
run = client.actor("scrapeai/justdial-business-leads-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 '{
  "location": "Mumbai",
  "maxItems": 100,
  "search": "restaurants",
  "headless": true
}' |
apify call scrapeai/justdial-business-leads-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,scrapeai/justdial-business-leads-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/5vjcwYtnW2aEvukwv/builds/z8wrvKefzKMldcSIw/openapi.json
