# GulfLead AI – Business Lead Finder (`confidential_gerenuk/gulflead-ai`) Actor

Find and qualify business leads by country, city, and industry. Get public contact details, websites, ratings, and opportunity scores.

- **URL**: https://apify.com/confidential\_gerenuk/gulflead-ai.md
- **Developed by:** [TARIQ AL SALTI](https://apify.com/confidential_gerenuk) (community)
- **Categories:** AI, Automation, Lead generation
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.40 / actor start

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?

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

## GulfLead AI — v0.3.1 Financial Safe Hotfix

GulfLead AI finds and ranks public local-business leads while applying multiple cost controls before and during every run.

### Financial safety added in v0.3

#### Parent run spending limit

Before calling the paid source Actor, GulfLead AI checks how many paid result events still fit inside the user's maximum run charge.

If zero paid results remain, the source Actor is **not started**.

#### Child/source Actor monetary cap

Every call to the internal Google Maps source Actor has its own `max_total_charge_usd`.

The cap is calculated conservatively and is never allowed to exceed **$3.00 in one child run**.

#### Child result cap

The internal source Actor receives a strict `max_items` value.

This prevents an unexpected large result set from increasing cost.

#### Child timeout

The internal source Actor receives a **240 second** timeout.

A stuck source run cannot continue indefinitely.

#### No automatic restart

`restart_on_error=False` is set for the internal Actor call, avoiding an automatic retry that could duplicate cost.

#### Paid social enrichment disabled

Facebook / Instagram / Twitter / TikTok / YouTube paid profile enrichment is explicitly disabled.

If a public social URL already exists in returned data, GulfLead AI can still display it.

#### Bounded parent memory

The Actor definition uses:

- default memory: 512 MB
- minimum memory: 256 MB
- maximum memory: 512 MB

The parent Actor does not run a browser, so this keeps compute usage bounded.

#### Re-check before every paid output

Before each result is pushed, GulfLead AI re-checks the PPE spending limit.

If the limit is reached, it stops immediately.

### Important

No cloud application can guarantee zero financial risk.

These controls are designed to prevent:

- unbounded source runs,
- unlimited result generation,
- expensive social enrichment,
- automatic restart loops,
- excessive memory allocation,
- continuing work after the customer spending limit is exhausted.

Before public Store publication, test v0.3 with:

1. normal run,
2. deliberately low maximum charge,
3. query with zero/very few results,
4. 100-result run,
5. Contact Enrichment ON and OFF.

### Planned pricing

- Actor start: $0.39
- Result: $0.03 per default-dataset item

### Deploy to the existing Actor

```powershell
apify push o4mhP94xKdui9XHV2
```

After deployment, do not publish publicly until the financial-safety tests pass.

### v0.3.1 hotfix

The source Actor timeout argument was updated for `apify-client 3.1.x`:

- old/incompatible: `timeout_secs=240`
- current: `run_timeout=timedelta(seconds=240)`

All existing financial protections remain enabled:

- parent PPE budget preflight
- child max total charge
- child max items
- 240-second child timeout
- no automatic restart
- paid social enrichment disabled
- bounded parent memory
- per-result budget re-check

# Actor input Schema

## `businessType` (type: `string`):

What kind of businesses do you want to find?

## `country` (type: `string`):

Target country, e.g. Oman, UAE, Saudi Arabia.

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

Target city or region.

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

Maximum number of qualified leads to return (1–500). The actual output can be lower if the run spending limit or source safety cap is reached.

## `opportunityMode` (type: `string`):

Choose the type of lead you want GulfLead AI to prioritize.

## `language` (type: `string`):

Language used by the underlying place search.

## `includeContactEnrichment` (type: `boolean`):

Find public business emails/contact details from company websites. Paid social-profile enrichment is intentionally disabled to control cost.

## Actor input object example

```json
{
  "businessType": "restaurants",
  "country": "Oman",
  "city": "Muscat",
  "maxResults": 50,
  "opportunityMode": "all",
  "language": "en",
  "includeContactEnrichment": true
}
```

# Actor output Schema

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

Ranked business leads produced by GulfLead AI.

# 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 = {};

// Run the Actor and wait for it to finish
const run = await client.actor("confidential_gerenuk/gulflead-ai").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 = {}

# Run the Actor and wait for it to finish
run = client.actor("confidential_gerenuk/gulflead-ai").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 '{}' |
apify call confidential_gerenuk/gulflead-ai --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,confidential_gerenuk/gulflead-ai"
        }
    }
}

```

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/o4mhP94xKdui9XHV2/builds/RyXhFFui6UeCIH86d/openapi.json
