---
openapi: 3.1.0
info:
  title: DuckDuckGo Search — SearchApi
  version: 3.1.0
  description: Generated from the SearchApi engine catalog. Parameters marked in the
    catalog as unverified are described from its records rather than from the vendor's
    specification.
servers:
- url: https://www.searchapi.io/api/v1
paths:
  "/search":
    get:
      operationId: duckduckgo
      summary: DuckDuckGo Search
      parameters:
      - name: engine
        in: query
        required: true
        description: Engine that retrieves the data; fixed per API (see Apis::BY_ENGINE
          keys).
        schema:
          type: string
          const: duckduckgo
      - name: api_key
        in: query
        required: true
        description: 'SearchApi.io API key; alternatively send ''Authorization: Bearer
          <key>''.'
        schema:
          type: string
      - name: zero_retention
        in: query
        required: false
        description: 'Enterprise-only: disables all logging and persistent storage
          of the search.'
        schema:
          type: boolean
          default: false
      - name: q
        in: query
        required: true
        description: Search query; most engines accept native operators and advanced
          filters.
        schema:
          type: string
      - name: kl
        in: query
        required: false
        description: Region of the search, e.g. us-en, wt-wt (worldwide).
        schema:
          type: string
      - name: safe_search
        in: query
        required: false
        description: Adult content filtering level.
        schema:
          type: string
          enum:
          - strict
          - moderate
          - 'off'
      - name: time_period
        in: query
        required: false
        description: Recency filter of the results.
        schema:
          type: string
      responses:
        '200':
          description: A DuckDuckGo Search result envelope.
