# DuckDuckGo Search

Search DuckDuckGo Web via REST or OpenAny MCP—with pay-per-use pricing, no subscription, and no proxies required. Powered by LiteScrape, pass parameters such as q, and retrieve structured data including nullable organic-result container and search summary when returned for regional discovery requests, and date-focused research, ready for production pipelines and AI agent automation.

Documentation: https://openany.si/market/apis/duckduckgo/duckduckgo-search/?offering=69548c86-93fb-4e75-a3a5-a191ce3bfe60
API ID: 69548c86-93fb-4e75-a3a5-a191ce3bfe60
Provider: litescrape
Contract revision: 4
Method: POST
Endpoint: https://api.openany.si/v1/agent-apis/litescrape/api/duckduckgo/search
Page update time: 2026-12-03T02:48:58.401Z
Access: OpenAny REST
OpenAny MCP: availability is not supplied by this REST contract. Check get_api on the configured OpenAny MCP server before execution.
Request content type: application/json
Execution mode: sync
Authentication: Authorization: Bearer $OPENANY_API_KEY

## Billing
Price: $0.00015 / call
API-key calls use your shared balance. Review the published billing rules before making a paid request.
Price source: OpenAny public API contract. Price update time: not supplied.
Contract update time: 2026-12-03T02:48:57.849Z. This is not a price-change timestamp.
```json
{
  "currency": "USD",
  "mode": "fixed",
  "priceMicroUsd": "150",
  "rounding": null,
  "unit": "call",
  "unitQuantity": null
}
```

## Request parameters
```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "DuckDuckGo Search request inputs",
  "$comment": "Declared input types grouped by HTTP location. Path, query and header values describe decoded inputs and are serialized as text on the wire; body is the payload. This is not an exhaustive provider contract or a schema for the raw HTTP request.",
  "type": "object",
  "properties": {
    "path": {
      "type": "object",
      "properties": {}
    },
    "query": {
      "type": "object",
      "properties": {
        "timeout": {
          "type": "number",
          "description": "Total request execution budget in seconds, greater than 0 and at most 90. Supply in the query string for GET or POST. page_timeout cannot extend this budget.",
          "maximum": 90
        }
      }
    },
    "headers": {
      "type": "object",
      "properties": {}
    },
    "body": {
      "additionalProperties": false,
      "examples": [
        {
          "q": "python documentation"
        }
      ],
      "properties": {
        "df": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "Date window: d, w, m, y, or YYYY-MM-DD..YYYY-MM-DD.",
          "title": "Df",
          "x-litescrape": {
            "formGroup": 0,
            "group": 0,
            "label": "Date filter",
            "placeholder": "w",
            "summary": "Date window: d, w, m, y, or YYYY-MM-DD..YYYY-MM-DD."
          }
        },
        "kl": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "description": "DuckDuckGo region and language token, such as us-en.",
          "title": "Kl",
          "x-litescrape": {
            "formGroup": 0,
            "group": 0,
            "label": "Region",
            "placeholder": "us-en",
            "summary": "DuckDuckGo region and language token, such as us-en."
          }
        },
        "m": {
          "default": 50,
          "description": "Requested result count from 1 through 50; mutually exclusive with search_assist.",
          "title": "M",
          "type": "integer",
          "x-litescrape": {
            "formGroup": 1,
            "group": 1,
            "kind": "number",
            "label": "Result count",
            "placeholder": "10",
            "summary": "Requested result count from 1 through 50; mutually exclusive with search_assist."
          }
        },
        "q": {
          "description": "Required search text, up to 500 characters.",
          "title": "Q",
          "type": "string",
          "x-litescrape": {
            "formGroup": 0,
            "group": 0,
            "label": "Query",
            "placeholder": "coffee Austin Texas",
            "summary": "Required search text, up to 500 characters."
          }
        },
        "safe": {
          "default": "-1",
          "description": "DuckDuckGo safe-search level.",
          "enum": [
            "1",
            "-1",
            "-2"
          ],
          "title": "Safe",
          "type": "string",
          "x-litescrape": {
            "formGroup": 0,
            "group": 0,
            "kind": "select",
            "label": "Safe search",
            "options": [
              {
                "label": "Moderate (default)",
                "value": "-1"
              },
              {
                "label": "Strict",
                "value": "1"
              },
              {
                "label": "Off",
                "value": "-2"
              }
            ],
            "summary": "DuckDuckGo safe-search level."
          }
        },
        "search_assist": {
          "default": true,
          "description": "Enable DuckDuckGo query assistance; mutually exclusive with m.",
          "title": "Search Assist",
          "type": "boolean",
          "x-litescrape": {
            "formGroup": 1,
            "group": 1,
            "kind": "select",
            "label": "Search assist",
            "options": [
              {
                "label": "Default (true)",
                "value": ""
              },
              {
                "label": "true",
                "value": "true"
              },
              {
                "label": "false",
                "value": "false"
              }
            ],
            "summary": "Enable DuckDuckGo query assistance; mutually exclusive with m."
          }
        },
        "start": {
          "default": 0,
          "description": "Result offset from 0 through 10,000.",
          "title": "Start",
          "type": "integer",
          "x-litescrape": {
            "formGroup": 1,
            "group": 1,
            "kind": "number",
            "label": "Start offset",
            "placeholder": "0",
            "summary": "Result offset from 0 through 10,000."
          }
        }
      },
      "required": [
        "q"
      ],
      "title": "Request",
      "type": "object",
      "description": "Get DuckDuckGo web search results."
    }
  },
  "required": [
    "path",
    "query",
    "headers",
    "body"
  ]
}
```

## Response fields
Source: Inferred from examples; not an exhaustive provider schema.
```json
{
  "type": "object",
  "properties": {
    "organic_results": {
      "type": "null"
    },
    "search_information": {
      "type": "null"
    },
    "search_metadata": {
      "type": "null"
    },
    "search_parameters": {
      "type": "null"
    },
    "submit_feedback_for_this_response_here": {
      "type": "string"
    }
  }
}
```

## Request example
Scenario: Schema template (HTTP assumed)
```bash
curl \
  'https://api.openany.si/v1/agent-apis/litescrape/api/duckduckgo/search' \
  -X POST \
  -H "Authorization: Bearer $OPENANY_API_KEY" \
  -H 'Content-Type: application/json' \
  --data-raw '{
  "q": "python documentation"
}'
```

## Response example
Response illustration only. Placeholder values and unknown business fields are not recorded API results. Replace request placeholders before use.
Response template · not a real response · Configured HTTP 200; actual status is unverified.
```json
{
  "organic_results": null,
  "search_information": null,
  "search_metadata": null,
  "search_parameters": null,
  "submit_feedback_for_this_response_here": "<submit_feedback_for_this_response_here>"
}
```

## Error handling
400: Check the request fields.
401 / 403: Verify credentials and access permissions.
402: Inspect payment requirements and balance.
429: Respect returned retry guidance.
5xx: Inspect the error and usage record before retrying a paid operation.

## Available implementations
- litescrape: https://openany.si/market/apis/duckduckgo/duckduckgo-search/?offering=69548c86-93fb-4e75-a3a5-a191ce3bfe60

Integration guide: https://openany.si/docs/
Agent setup: https://openany.si/SKILL.md
