{
  "openapi": "3.0.1",
  "info": {
    "title": "DuckDuckGo Scraper — Search Results, Business Leads & News",
    "description": "Scrape DuckDuckGo web results (up to 1,000 per query), local business leads with phone, website, hours, ratings and review snippets (Yelp and Apple Maps in US/CA, Tripadvisor elsewhere), news, images, videos and stock quotes. No login, no browser.",
    "version": "0.1",
    "x-build-id": "rv7cd05urTsyMDN6u"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/yugenox~duckduckgo-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-yugenox-duckduckgo-scraper",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/acts/yugenox~duckduckgo-scraper/runs": {
      "post": {
        "operationId": "runs-sync-yugenox-duckduckgo-scraper",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor and returns information about the initiated run in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runsResponseSchema"
                }
              }
            }
          }
        }
      }
    },
    "/acts/yugenox~duckduckgo-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-yugenox-duckduckgo-scraper",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "inputSchema": {
        "type": "object",
        "properties": {
          "queries": {
            "title": "🔍 Search queries",
            "type": "array",
            "description": "What to search, one per line — exactly as you would type it into DuckDuckGo. For places, a business type plus a place works on its own (\"dentist in Toronto\"), or put the business type here and the area in \"Location\".",
            "items": {
              "type": "string"
            }
          },
          "searchTypes": {
            "title": "📦 What to scrape",
            "type": "array",
            "description": "Pick one or more. Every query runs once per selected type. Web = organic results; Places = local businesses with phone, website, hours, rating and reviews; News, Images and Videos = the matching DuckDuckGo tabs.",
            "items": {
              "type": "string",
              "enum": [
                "web",
                "places",
                "news",
                "images",
                "videos"
              ],
              "enumTitles": [
                "Web results",
                "Places (local businesses)",
                "News",
                "Images",
                "Videos"
              ]
            },
            "default": [
              "web"
            ]
          },
          "maxResultsPerQuery": {
            "title": "Max results per query",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Per query and per search type. Web, news, images and videos go up to 1,000; places up to 5,000 (large areas are covered tile by tile).",
            "default": 50
          },
          "location": {
            "title": "📍 Places: location",
            "type": "string",
            "description": "Area to search for places: a city, neighbourhood, region or address (\"Chicago, IL\", \"Paris 11e\", \"Brooklyn\"), or coordinates: \"lat,lng\" (5 km around), \"lat,lng,radiusKm\", or a box \"north-lat,west-lng,south-lat,east-lng\". Leave empty to take the place from each query (\"plumber in Vancouver\"). Only used by Places."
          },
          "region": {
            "title": "🌍 Region",
            "enum": [
              "wt-wt",
              "us-en",
              "ca-en",
              "ca-fr",
              "uk-en",
              "au-en",
              "nz-en",
              "ie-en",
              "in-en",
              "sg-en",
              "za-en",
              "ph-en",
              "my-en",
              "pk-en",
              "de-de",
              "at-de",
              "ch-de",
              "fr-fr",
              "be-fr",
              "ch-fr",
              "es-es",
              "mx-es",
              "ar-es",
              "cl-es",
              "co-es",
              "pe-es",
              "us-es",
              "xl-es",
              "it-it",
              "nl-nl",
              "be-nl",
              "br-pt",
              "pt-pt",
              "se-sv",
              "no-no",
              "dk-da",
              "fi-fi",
              "pl-pl",
              "cz-cs",
              "hu-hu",
              "ro-ro",
              "gr-el",
              "tr-tr",
              "ru-ru",
              "ua-uk",
              "il-he",
              "xa-ar",
              "jp-jp",
              "kr-kr",
              "cn-zh",
              "hk-tzh",
              "tw-tzh",
              "th-th",
              "vn-vi",
              "id-id",
              "id-en"
            ],
            "type": "string",
            "description": "Country / language of the results (DuckDuckGo region setting). Used by web, news, images and videos.",
            "default": "us-en"
          },
          "timeRange": {
            "title": "🕒 Time range",
            "enum": [
              "",
              "day",
              "week",
              "month",
              "year"
            ],
            "type": "string",
            "description": "Only results from the past day / week / month / year (web, news, images, videos).",
            "default": ""
          },
          "safeSearch": {
            "title": "Safe search",
            "enum": [
              "moderate",
              "strict",
              "off"
            ],
            "type": "string",
            "description": "Adult-content filter (web, news, images, videos).",
            "default": "moderate"
          },
          "includeRelatedSearches": {
            "title": "Include related searches",
            "type": "boolean",
            "description": "Adds DuckDuckGo's \"related searches\" to the first web result of each query (field relatedSearches).",
            "default": false
          },
          "stockSymbols": {
            "title": "📈 Stock quotes: symbols",
            "type": "array",
            "description": "Optional. Ticker symbols for live quotes (price, change, day range, 52-week range, P/E, market cap, average volume). Covers US-listed stocks and ETFs (AAPL, MSFT, SPY…) plus the indices .DJI, .IXIC, .GSPTSE, .GDAXI and .FTSE. Runs independently of the queries.",
            "items": {
              "type": "string"
            }
          },
          "includeFundamentals": {
            "title": "Include market cap & average volume",
            "type": "boolean",
            "description": "One extra lookup per symbol.",
            "default": true
          },
          "includeIntraday": {
            "title": "Include intraday price series",
            "type": "boolean",
            "description": "Adds the latest session's minute-by-minute prices (≈390 points) to each quote.",
            "default": false
          },
          "maxItems": {
            "title": "Max results in total",
            "minimum": 0,
            "type": "integer",
            "description": "Stop the whole run after this many results (0 = no limit).",
            "default": 0
          },
          "maxConcurrency": {
            "title": "Max concurrency",
            "minimum": 1,
            "maximum": 50,
            "type": "integer",
            "description": "Parallel requests. The default is a good balance; higher values mostly help big places runs.",
            "default": 10
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Datacenter proxies work and are the cheapest; the actor switches to residential proxies automatically if it has to.",
            "default": {
              "useApifyProxy": true
            }
          },
          "residentialFallback": {
            "title": "Allow residential fallback",
            "type": "boolean",
            "description": "When datacenter IPs keep getting rate-limited, finish the run on Apify residential proxies (billed per GB on your account, usually a few MB). Turn off to stay on datacenter proxies only.",
            "default": true
          }
        }
      },
      "runsResponseSchema": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "actId": {
                "type": "string"
              },
              "userId": {
                "type": "string"
              },
              "startedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "finishedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "status": {
                "type": "string",
                "example": "READY"
              },
              "meta": {
                "type": "object",
                "properties": {
                  "origin": {
                    "type": "string",
                    "example": "API"
                  },
                  "userAgent": {
                    "type": "string"
                  }
                }
              },
              "stats": {
                "type": "object",
                "properties": {
                  "inputBodyLen": {
                    "type": "integer",
                    "example": 2000
                  },
                  "rebootCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "restartCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "resurrectCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "computeUnits": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "options": {
                "type": "object",
                "properties": {
                  "build": {
                    "type": "string",
                    "example": "latest"
                  },
                  "timeoutSecs": {
                    "type": "integer",
                    "example": 300
                  },
                  "memoryMbytes": {
                    "type": "integer",
                    "example": 1024
                  },
                  "diskMbytes": {
                    "type": "integer",
                    "example": 2048
                  }
                }
              },
              "buildId": {
                "type": "string"
              },
              "defaultKeyValueStoreId": {
                "type": "string"
              },
              "defaultDatasetId": {
                "type": "string"
              },
              "defaultRequestQueueId": {
                "type": "string"
              },
              "buildNumber": {
                "type": "string",
                "example": "1.0.0"
              },
              "containerUrl": {
                "type": "string"
              },
              "usage": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "integer",
                    "example": 1
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "usageTotalUsd": {
                "type": "number",
                "example": 0.00005
              },
              "usageUsd": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "number",
                    "example": 0.00005
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}