# Indonesia Business Directory Scraper (IndonesiaYP) (`fanndev/indonesiayp-business-directory-scraper`) Actor

Extract Indonesian business listings from IndonesiaYP -- name, full address, landline and mobile phone, website, GPS coordinates, opening hours, manager, establishment year, employee band and ratings. Browse any category, optionally scoped to a city. No account or API key needed.

- **URL**: https://apify.com/fanndev/indonesiayp-business-directory-scraper.md
- **Developed by:** [Faisal Ahdan naufal](https://apify.com/fanndev) (community)
- **Categories:** Lead generation, Business
- **Stats:** 2 total users, 1 monthly users, 83.3% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.20 / 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?

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

## Indonesia Business Directory Scraper (IndonesiaYP)

Extract Indonesian business listings from **IndonesiaYP** — name, address, phone, website, GPS coordinates, opening hours and more. No account, login, or API key needed.

### Why use this actor

- **Contact-ready B2B lead data for Indonesia** — landline *and* mobile phone, full street address, city and province for every listing
- **Coordinates included** — latitude/longitude on each business page, so listings drop straight onto a map or into a radius search
- **Operational detail most directories hide** — opening hours per day, establishment year, employee band, named company manager, and the business's own description
- **Big categories** — the Restaurants category alone held ~13,900 listings at the time of writing; Lawyers, Doctors & Clinics, Estate Agents, Construction Services, Employment Agencies, Schools, Shopping Centres and Vehicle Services are all covered, plus sub-categories
- **City targeting** — scope any category to Jakarta, Surabaya, Bandung, Medan and more
- **Two-stage by design** — list cheaply first, then optionally enrich every row with its full page in the same run
- Stable JSON output for CRMs and spreadsheets, with automatic retries — no scrapers or browsers to babysit

### How it works

Pick a `mode`:

1. **`category`** — list every business in a category, optionally scoped to one `city`. Pages are followed automatically up to `maxItems`. Turn on `enrichProfiles` to also pull each business's full page.
2. **`company`** — full detail for specific businesses, by address or numeric ID.
3. **`reference`** — the live category and city lists.

### Input

**All restaurants in Jakarta:**

```json
{
  "mode": "category",
  "category": "restaurants",
  "city": "Jakarta",
  "maxItems": 100,
  "proxyConfiguration": { "useApifyProxy": true, "apifyProxyGroups": ["RESIDENTIAL"] }
}
```

**Lawyers nationwide with full contact detail:**

```json
{
  "mode": "category",
  "category": "lawyers",
  "enrichProfiles": true,
  "maxItems": 200,
  "maxConcurrency": 4
}
```

**One business:**

```json
{
  "mode": "company",
  "companyUrl": "https://www.indonesiayp.com/company/836133/spaccanapoli_di_ubud"
}
```

| Field | Type | Description |
|---|---|---|
| `mode` | string | `category`, `company`, or `reference`. |
| `category` | string | Category slug, e.g. `restaurants`, `lawyers`, `doctors_and_clinics`. |
| `city` | string | Optional city scope, e.g. `Jakarta`. |
| `enrichProfiles` | boolean | Also fetch each listed business's full page. |
| `companyUrl` / `companyUrls` | string / array | `company` mode: business address or numeric ID. |
| `maxItems` | integer | Max businesses to list (20 per page, followed automatically). |
| `maxConcurrency` | integer | Business pages fetched in parallel (default 4). |
| `proxyConfiguration` | object | Apify Proxy settings; Residential on by default. |

### Output

**`category` mode** — real output:

```json
{
  "_input": "category:lawyers/city:Jakarta",
  "_source": "S1-html",
  "_scrapedAt": "2026-09-08T06:46:21Z",
  "recordType": "BUSINESS_CARD",
  "companyId": "838729",
  "name": "Smart Legal",
  "profileUrl": "https://www.indonesiayp.com/company/838729/Smart_Legal",
  "address": "Legalo Virtual Office,18 Office Park, Lt. 10, Jl. TB. Simatupang No. 18 Kebagusan, Pasar Minggu, RT.2/RW.1, Kebagusan, Ps. Minggu, Kota Jakarta Selatan, Daerah Khusus Ibukota Jakarta 12520, Java, Indonesia",
  "city": "Jakarta",
  "phone": "02180674920",
  "isVerified": true,
  "yearsListed": 8,
  "establishedYear": 2012,
  "rating": 5.0,
  "reviewCount": 1,
  "photoCount": 1,
  "hasWebsite": true,
  "hasEmail": true,
  "_listingScope": "category:lawyers/city:Jakarta"
}
```

**`company` mode** — real output, description truncated:

```json
{
  "recordType": "BUSINESS_PROFILE",
  "companyId": "836133",
  "name": "Spaccanapoli di Ubud",
  "streetAddress": "jalan pengosekan 108  Ubud",
  "city": "Denpasar",
  "region": "Bali",
  "country": "ID",
  "phone": "03619080197",
  "mobilePhone": "081237614638",
  "website": "http://www.spaccanapoliubud.com/",
  "latitude": -8.52266657305169,
  "longitude": 115.262914001941,
  "rating": 5.0,
  "reviewCount": 3,
  "workingHours": "Monday: 11-23 Tuesday: 11-23 Wednesday: 11-23 Thursday: 11-23 Friday: 11-23 Saturday: 11-23 Sunday: 11-23",
  "manager": "I Gede Mariano",
  "establishedYear": 2012,
  "employees": "11-15",
  "description": "not only a restaurant .... but a place for those who love truth and reality .. Ristorante Spaccanapoli di Ubud is a traditional italian restaurant located at ubud …"
}
```

| Field | Type | Description |
|---|---|---|
| `recordType` | string | `BUSINESS_CARD`, `BUSINESS_PROFILE`, `CATEGORY`, or `CITY`. |
| `companyId` | string | Stable numeric ID — use it to deduplicate. |
| `name` | string | Business name. |
| `address` / `streetAddress` | string | Full address line (listing) / street part (profile). |
| `city` / `region` / `country` | string | Location fields. |
| `phone` / `mobilePhone` | string | Landline and mobile numbers. |
| `website` | string | Business website. |
| `latitude` / `longitude` | number | GPS coordinates (profile records). |
| `rating` / `reviewCount` | number / integer | Rating out of 5 and review count. |
| `workingHours` | string | Opening hours per day. |
| `manager` | string | Named company manager. |
| `establishedYear` | integer | Year established. |
| `employees` | string | Employee count band. |
| `description` | string | Business description. |
| `categories` | string | All categories the business is listed in. |
| `isVerified` / `yearsListed` / `photoCount` | boolean / integer | Listing quality signals. |
| `hasWebsite` / `hasEmail` | boolean | Whether the listing has those on file. |
| `_error` / `_errorDetail` | string | Present only when a page could not be fetched. |

### Notes & limits

- **Listing pages hold 20 businesses.** `maxItems` decides how many pages are walked.
- **Only ~12% of listings carry a rating** — most Indonesian businesses in the directory have no reviews yet, so `rating` and `reviewCount` are often null. Phone, address and establishment year were present on every row in testing.
- **E-mail addresses are not published.** The directory routes mail through its own enquiry form, so the output flags `hasEmail` rather than inventing an address.
- **City spelling must match the source** (`Jakarta`, not `DKI Jakarta`). Run `reference` mode to see the exact values.
- Every field is business contact information published by the directory itself.

# Actor input Schema

## `mode` (type: `string`):

"category" lists businesses in a category, optionally scoped to one city. "company" fetches full detail for specific business pages. "reference" lists the categories and cities available upstream.

## `category` (type: `string`):

"category" mode: the category to list, e.g. "restaurants", "lawyers", "doctors\_and\_clinics", "estate\_agents", "construction\_services", "employment\_agencies", "schools", "shopping\_centres", "vehicle\_services". Sub-categories work too (e.g. "italian", "japanese"). Run mode=reference for the live list.

## `city` (type: `string`):

"category" mode: restrict to one city, e.g. "Jakarta", "Surabaya", "Bandung", "Medan". Leave blank for all Indonesia. Spelling must match the source (run mode=reference to see it).

## `enrichProfiles` (type: `boolean`):

"category" mode: after listing, fetch each business's full page too -- adds mobile phone, website, GPS coordinates, opening hours, manager, employee band and description. Costs one extra request per business.

## `companyUrl` (type: `string`):

"company" mode: a full indonesiayp.com business address, or just its numeric ID.

## `companyUrls` (type: `array`):

"company" mode: several businesses to fetch in one run.

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

"category" mode: max businesses to list. Pages hold 20 each and are followed automatically. The Restaurants category alone held ~13,900 listings at build time.

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

How many business pages to fetch in parallel ("company" mode, and "category" mode when full pages are enabled).

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

Apify Proxy configuration. Residential is on by default for stable results on long paginated runs.

## Actor input object example

```json
{
  "mode": "category",
  "category": "restaurants",
  "city": "Jakarta",
  "enrichProfiles": false,
  "companyUrl": "https://www.indonesiayp.com/company/836133/spaccanapoli_di_ubud",
  "maxItems": 100,
  "maxConcurrency": 4,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}
```

# Actor output Schema

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

All business / reference records produced by this 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 = {
    "mode": "category",
    "category": "restaurants",
    "city": "Jakarta",
    "companyUrl": "https://www.indonesiayp.com/company/836133/spaccanapoli_di_ubud",
    "maxItems": 100,
    "maxConcurrency": 4,
    "proxyConfiguration": {
        "useApifyProxy": true,
        "apifyProxyGroups": [
            "RESIDENTIAL"
        ]
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("fanndev/indonesiayp-business-directory-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 = {
    "mode": "category",
    "category": "restaurants",
    "city": "Jakarta",
    "companyUrl": "https://www.indonesiayp.com/company/836133/spaccanapoli_di_ubud",
    "maxItems": 100,
    "maxConcurrency": 4,
    "proxyConfiguration": {
        "useApifyProxy": True,
        "apifyProxyGroups": ["RESIDENTIAL"],
    },
}

# Run the Actor and wait for it to finish
run = client.actor("fanndev/indonesiayp-business-directory-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 '{
  "mode": "category",
  "category": "restaurants",
  "city": "Jakarta",
  "companyUrl": "https://www.indonesiayp.com/company/836133/spaccanapoli_di_ubud",
  "maxItems": 100,
  "maxConcurrency": 4,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}' |
apify call fanndev/indonesiayp-business-directory-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,fanndev/indonesiayp-business-directory-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/Beq7scYyt6KintVRD/builds/hLGGHoe9as1lK7l4J/openapi.json
