# Bing & DuckDuckGo Web Search Scraper (SERP & Metadata) (`justusecurl/bing-search`) Actor

Extract merged, deduplicated Bing and DuckDuckGo organic SERP results with direct destination URLs, snippets, per-engine ranks, domain filters, and optional OpenGraph page metadata at $1.50/1K.

- **URL**: https://apify.com/justusecurl/bing-search.md
- **Developed by:** [justusecurl](https://apify.com/justusecurl) (community)
- **Categories:** SEO tools, AI, Lead generation
- **Features:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.75 / 1,000 valid search results extracted

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/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

## Bing & DuckDuckGo Web Search Scraper (SERP & Metadata)

Fast, lightweight **128 MB** Apify Actor for extracting clean, deduplicated organic search results from **Bing** and **DuckDuckGo** — individually or merged into a single consensus-ranked SERP with direct destination URLs and optional OpenGraph/JSON-LD page metadata.

Built for **AI agent RAG grounding, SEO rank tracking, lead research, competitive intelligence, and market monitoring** — at **67% less** than typical SERP scrapers, with **$0 Actor start fees** and **valid-record-only Pay-Per-Event billing**.

***

### Why Use This Scraper?

- **Merged Dual-Engine Coverage:** Query Bing and DuckDuckGo in one call, automatically deduplicate overlapping URLs, and boost pages ranked highly across both search engines.
- **Direct, Clean Destination URLs:** Redirect wrappers and `utm_*` / click-tracking query parameters are stripped automatically — every `url` is the clean canonical destination ready for RAG pipelines or enrichment.
- **Domain Allowlists & Blocklists:** Restrict results with `includeDomains` (e.g. `["github.com", "docs.python.org"]`) or suppress noise with `excludeDomains` (e.g. `["pinterest.com", "quora.com"]`).
- **Optional Page Metadata (`fetchContent`):** Attach standardized OpenGraph & JSON-LD metadata (`title`, `description`, `image`, `price_amount`, `price_currency`, `site_name`) to the top 8 organic results per query.
- **Ultra-Low 128 MB Compute Footprint:** Runs smoothly at Apify's 128 MB minimum memory tier with zero browser overhead and fast batched dataset writes.
- **Pay Only for Valid Results:** Never billed for empty SERPs, duplicate URLs (when `deduplicateAcrossQueries: true`), or upstream errors.

***

### Pricing (Pay-Per-Event)

You pay **only** per valid organic search result saved to your dataset — **$0 start fee**, **$0 failed queries**, **$0 empty results**:

| Apify Plan Tier | Price per 1,000 Search Results |
| :--- | :--- |
| **Free** | **$1.50** / 1,000 results (`$0.0015` each) |
| **Bronze** | **$1.25** / 1,000 results (`$0.00125` each) |
| **Silver** | **$1.00** / 1,000 results (`$0.0010` each) |
| **Gold / Platinum / Diamond** | **$0.75** / 1,000 results (`$0.00075` each) |

***

### Input Examples

#### 1. Merged Bing + DuckDuckGo Search (Default)

```json
{
  "queries": [
    "web scraping best practices",
    "open source vector databases comparison"
  ],
  "engines": "both",
  "maxResultsPerQuery": 20,
  "maxItems": 100
}
```

#### 2. Domain-Filtered Developer & Lead Research

```json
{
  "queries": ["enterprise observability pricing"],
  "engines": "both",
  "includeDomains": ["datadoghq.com", "grafana.com", "newrelic.com"],
  "maxResultsPerQuery": 15
}
```

#### 3. SERP + OpenGraph / JSON-LD Page Metadata

```json
{
  "queries": ["best ergonomic mechanical keyboard 2026"],
  "engines": "both",
  "excludeDomains": ["pinterest.com"],
  "fetchContent": true,
  "maxResultsPerQuery": 10
}
```

***

### Output Example

Each dataset item represents one organic search result:

```json
{
  "query": "web scraping best practices",
  "position": 1,
  "title": "Web Scraping Best Practices — Complete Guide",
  "url": "https://example.com/guides/web-scraping-best-practices",
  "domain": "example.com",
  "snippet": "Learn practical techniques for reliable structured data extraction, caching, retries, and polite concurrency.",
  "engines": ["bing", "ddg"],
  "ranks": {
    "bing": 1,
    "ddg": 2
  },
  "og": {
    "title": "Web Scraping Best Practices — Complete Guide",
    "description": "Practical engineering guide to structured web extraction.",
    "site_name": "Example Docs",
    "image": "https://example.com/og-guide.png"
  },
  "cached": false,
  "scraped_at": "2026-12-04T21:30:00.000Z"
}
```

*(The `og` object is included when `fetchContent` is set to `true` and metadata is available on the destination page.)*

***

### Input Parameters

| Field | Type | Default | Description |
| :--- | :--- | :--- | :--- |
| `queries` | `string[]` | `["web scraping best practices"]` | One or more search queries (max 512 chars each). |
| `engines` | `string` | `"both"` | `"both"` (Bing + DuckDuckGo merged), `"bing"`, or `"ddg"`. |
| `maxResultsPerQuery` | `integer` | `20` | Max merged organic results per query (`1–50`). |
| `includeDomains` | `string[]` | `[]` | Domain allowlist (max 20 domains). |
| `excludeDomains` | `string[]` | `[]` | Domain blocklist including regional mirrors (max 20 domains). |
| `fetchContent` | `boolean` | `false` | Fetch OpenGraph & JSON-LD metadata for the top 8 results per query. |
| `deduplicateAcrossQueries` | `boolean` | `true` | Emit & bill each unique destination URL once across multi-query runs. |
| `maxItems` | `integer` | `100` | Hard cap on valid results pushed (`1–5000`). |
| `maxConcurrency` | `integer` | `4` | Concurrent queries (`1–6`). |

***

### Direct REST API & Integrations

Need sub-second direct HTTP access outside Apify (including n8n, LangChain, CrewAI, or custom backends)? Visit **[justusecurl.com](https://justusecurl.com)** for direct API documentation, interactive samples, and companion Actors for Reddit, Amazon, and Walmart.

# Actor input Schema

## `queries` (type: `array`):

One or more web search queries to run against Bing and/or DuckDuckGo (up to 512 characters per query).

## `engines` (type: `string`):

Choose merged Bing + DuckDuckGo results (recommended for maximum coverage and cross-engine consensus ranking) or a single engine.

## `maxResultsPerQuery` (type: `integer`):

Maximum merged organic results to return per query (1-50).

## `includeDomains` (type: `array`):

Optional allowlist of domains (e.g. github.com, docs.python.org). Only results matching these domains or their subdomains are returned (max 20).

## `excludeDomains` (type: `array`):

Optional blocklist of domains to filter out (e.g. pinterest.com, quora.com). Excludes matching domains and regional mirrors (max 20).

## `fetchContent` (type: `boolean`):

When enabled, fetches the top 8 organic results per query and attaches structured page metadata (title, description, image, price, site name) in the 'og' object.

## `deduplicateAcrossQueries` (type: `boolean`):

When true (default), identical destination URLs appearing across multiple queries in the same run are emitted and billed only once. Set false to keep separate rank snapshots per query.

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

Hard cap on valid search result records pushed and billed across the entire run.

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

Number of queries executed in parallel (1-6; automatic 429 Retry-After backoff).

## Actor input object example

```json
{
  "queries": [
    "web scraping best practices"
  ],
  "engines": "both",
  "maxResultsPerQuery": 20,
  "includeDomains": [],
  "excludeDomains": [],
  "fetchContent": false,
  "deduplicateAcrossQueries": true,
  "maxItems": 100,
  "maxConcurrency": 4
}
```

# Actor output Schema

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

Deduplicated Bing and DuckDuckGo organic SERP results with direct destination URLs, titles, snippets, per-engine ranks, and optional page metadata.

## `runSummary` (type: `string`):

Run diagnostics, pushed record counts, failed queries, and per-engine coverage summary.

# 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 = {
    "queries": [
        "web scraping best practices"
    ],
    "includeDomains": [],
    "excludeDomains": []
};

// Run the Actor and wait for it to finish
const run = await client.actor("justusecurl/bing-search").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 = {
    "queries": ["web scraping best practices"],
    "includeDomains": [],
    "excludeDomains": [],
}

# Run the Actor and wait for it to finish
run = client.actor("justusecurl/bing-search").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 '{
  "queries": [
    "web scraping best practices"
  ],
  "includeDomains": [],
  "excludeDomains": []
}' |
apify call justusecurl/bing-search --silent --output-dataset

```

## MCP server setup

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

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/kX2cuYLLRr9M5M0xH/builds/ahSlJ8AehYYDfJuVz/openapi.json
