# DuckDuckGo search API for AI agents and RAG

**Use case:** 

Give LLM agents a live web search tool — DuckDuckGo web results plus instant answers as flat JSON. Drop-in for RAG pipelines and AI workflows.

## Input

```json
{
  "queries": [
    "what is retrieval augmented generation"
  ],
  "contentTypes": [
    "web",
    "instantAnswer"
  ],
  "region": "wt-wt",
  "safeSearch": "moderate",
  "timeFilter": "any",
  "maxResults": 10,
  "maxPages": 0,
  "maxConcurrency": 4
}
```

## Output

```json
{
  "type": {
    "label": "Type",
    "format": "string"
  },
  "query": {
    "label": "Query",
    "format": "string"
  },
  "position": {
    "label": "#",
    "format": "integer"
  },
  "title": {
    "label": "Title",
    "format": "string"
  },
  "url": {
    "label": "URL",
    "format": "string"
  },
  "snippet": {
    "label": "Snippet",
    "format": "string"
  },
  "source": {
    "label": "Source",
    "format": "string"
  }
}
```

## About this Actor

This example demonstrates how to use [DuckDuckGo SERP Scraper — Web, News, Images, Videos & More](https://apify.com/jaybird/duckduckgo-scraper) with a specific input configuration. Visit the [Actor detail page](https://apify.com/jaybird/duckduckgo-scraper) to learn more, explore other use cases, and run it yourself.