# DuckDuckGo News Scraper (`searchapi/duckduckgo-news-scraper`) Actor

Scrapes news search results from DuckDuckGo. Extracts the full canonical news-vertical schema: title, URL, source, author, snippet, thumbnail, published date (ISO + raw + relative), category, breaking/sponsored flags, engagement counts, summary, and more.

- **URL**: https://apify.com/searchapi/duckduckgo-news-scraper.md
- **Developed by:** [Search API](https://apify.com/searchapi) (community)
- **Categories:** News, Automation, Developer tools
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.99 / 1,000 duckduckgo news scraper 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/platform/actors/running/actors-in-store#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

## DuckDuckGo News Scraper

Scrapes news search results from DuckDuckGo. Extracts the full canonical news-vertical schema: title, URL, source, author, snippet, thumbnail, published date (ISO + raw + relative), category, breaking/sponsored flags, engagement counts, summary, and more.

### What this Actor collects

The Actor converts DuckDuckGo News responses into one clean JSON record per article, including publisher, canonical link, snippet, publication time, author and category when available, result flags, API-page context, and retrieval provenance.

- Uses the input limits and filters below to control the crawl.
- Stores source-backed fields defined by the 52-field dataset schema.
- Omits optional fields when the source does not expose a value instead of writing nulls or fabricated placeholders.

### Use cases

- News monitoring
- Publisher and topic research
- Article-feed enrichment

### Input

Provide input in JSON. Fields marked required must be supplied. The Default / example column shows a schema default when one exists; otherwise it shows a documented prefill or fixture value.

| Field | Type | Required | Default / example | Description |
| --- | --- | :---: | --- | --- |
| `query` | string | Yes | `"technology"` | The news search query. |
| `maxItems` | integer | No | `50` | Maximum number of news articles to scrape. |
| `region` | string | No | `"us-en"` | DDG region code (e.g. us-en, uk-en, de-de). |
| `timeRange` | string | No | `""` | Filter news by date range. |
| `sortBy` | string | No | `""` | Sort results by relevance or date. |
| `proxyConfiguration` | object | No | `{"useApifyProxy":true}` | Proxy settings. |
| `maxRequestRetries` | integer | No | `2` | Retries for navigation and News API page requests. |
| `requestTimeoutSecs` | integer | No | `45` | Maximum seconds to wait for navigation or a News API response. |
| `headless` | boolean | No | `true` | Run Firefox without a visible window. |

#### Example input

```json
{
  "query": "artificial intelligence",
  "maxItems": 50,
  "proxyConfiguration": {
    "useApifyProxy": false
  },
  "region": "us-en",
  "maxRequestRetries": 2,
  "requestTimeoutSecs": 45,
  "headless": true
}
```

### Output

The default dataset contains one item per news article result. The following are the most useful fields; author, category, image, and engagement-related metadata depend on the source response.

| Field | Type | Description |
| --- | --- | --- |
| `position` | integer | Position |
| `title` | string | Title |
| `link` | string | Link |
| `source` | string | Publisher |
| `publishedAt` | string | Published At |
| `snippet` | string | Snippet |
| `thumbnail` | string | Thumbnail |
| `page` | integer | Page |
| `searchQuery` | string | Search Query |
| `region` | string | Region |
| `scrapedAt` | string | Scraped At |
| `type` | string | Type |
| `description` | string | Description |
| `url` | string | URL |
| `query` | string | Query |
| `apiPage` | integer | API Page |

<details>
<summary>All 52 declared dataset fields</summary>

`position`, `page`, `apiPage`, `type`, `resultType`, `title`, `titleHtml`, `snippet`, `snippetHtml`, `description`
`descriptionHtml`, `link`, `url`, `originalUrl`, `displayUrl`, `domain`, `source`, `sourceTitle`, `sourceUrl`, `sourceDomain`
`sourceFavicon`, `thumbnail`, `imageUrl`, `date`, `publishedAt`, `publishedAtRaw`, `publishedTimestamp`, `relativeTime`, `author`, `authorUrl`
`category`, `tags`, `isBreaking`, `isSponsored`, `isAd`, `isOld`, `fetchImage`, `useRelevancy`, `syndicate`, `imageToken`
`apiUrl`, `sourceQuery`, `engineId`, `searchMetadata`, `searchUrl`, `searchQuery`, `query`, `region`, `country`, `market`
`language`, `scrapedAt`

</details>

#### Example dataset item

This compact example is taken from local Actor storage. Long text and nested collections are shortened for documentation only.

```json
{
  "position": 1,
  "title": "Obernolte-Trahan artificial intelligence bill introduced in House",
  "link": "https://www.msn.com/en-us/news/politics/obernolte-trahan-artificial-intelligence-bill-introduced-in-house/ar-AA28xIqW",
  "source": "Politico",
  "publishedAt": "2026-07-23T15:40:19.000Z",
  "snippet": "The newest bill is a revised version of a discussion draft the duo released last month.",
  "page": 1,
  "searchQuery": "artificial intelligence",
  "region": "us-en",
  "scrapedAt": "2026-07-23T17:19:00.504Z",
  "type": "news",
  "description": "The newest bill is a revised version of a discussion draft the duo released last month."
}
```

### Related Actors

- [Duck.ai Guest Answers Scraper](https://apify.com/searchapi/duckduckgo-ai-answers-scraper)
- [DuckDuckGo Autocomplete Scraper](https://apify.com/searchapi/duckduckgo-autocomplete-scraper)
- [DuckDuckGo Bangs Directory Scraper](https://apify.com/searchapi/duckduckgo-bangs-directory-scraper)

# Actor input Schema

## `query` (type: `string`):

The news search query.

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

Maximum number of news articles to scrape.

## `region` (type: `string`):

DDG region code (e.g. us-en, uk-en, de-de).

## `timeRange` (type: `string`):

Filter news by date range.

## `sortBy` (type: `string`):

Sort results by relevance or date.

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

Proxy settings.

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

Retries for navigation and News API page requests.

## `requestTimeoutSecs` (type: `integer`):

Maximum seconds to wait for navigation or a News API response.

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

Run Firefox without a visible window.

## Actor input object example

```json
{
  "query": "artificial intelligence",
  "maxItems": 50,
  "region": "us-en",
  "timeRange": "",
  "sortBy": "",
  "proxyConfiguration": {
    "useApifyProxy": true
  },
  "maxRequestRetries": 2,
  "requestTimeoutSecs": 45,
  "headless": true
}
```

# Actor output Schema

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

Source-backed DuckDuckGo News API results with article, publisher, timestamp, image, API-page, and search provenance fields.

# 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 = {
    "query": "technology",
    "region": "us-en",
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("searchapi/duckduckgo-news-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 = {
    "query": "technology",
    "region": "us-en",
    "proxyConfiguration": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("searchapi/duckduckgo-news-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "query": "technology",
  "region": "us-en",
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call searchapi/duckduckgo-news-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=searchapi/duckduckgo-news-scraper",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/2XZeMhfPuleinHz1d/builds/36tKD4b5FS4BbWcoT/openapi.json
