DuckDuckGo Serp API avatar

DuckDuckGo Serp API

Try for free

3 days trial then $5.00/month - No credit card required now

Go to Store
DuckDuckGo Serp API

DuckDuckGo Serp API

canadesk/duckduckgo-serp-api
Try for free

3 days trial then $5.00/month - No credit card required now

Search for text, news, images, videos, maps or start an AI chat with DuckDuckGo! Alternative to Google SerpApi. Fast and cheap.

You can access the DuckDuckGo Serp API programmatically from your own applications by using the Apify API. You can choose the language preference from below. To use the Apify API, you’ll need an Apify account and your API token, found in Integrations settings in Apify Console.

1{
2  "openapi": "3.0.1",
3  "info": {
4    "version": "1.4",
5    "x-build-id": "sH4ej9CYvO8lzZRT8"
6  },
7  "servers": [
8    {
9      "url": "https://api.apify.com/v2"
10    }
11  ],
12  "paths": {
13    "/acts/canadesk~duckduckgo-serp-api/run-sync-get-dataset-items": {
14      "post": {
15        "operationId": "run-sync-get-dataset-items-canadesk-duckduckgo-serp-api",
16        "x-openai-isConsequential": false,
17        "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
18        "tags": [
19          "Run Actor"
20        ],
21        "requestBody": {
22          "required": true,
23          "content": {
24            "application/json": {
25              "schema": {
26                "$ref": "#/components/schemas/inputSchema"
27              }
28            }
29          }
30        },
31        "parameters": [
32          {
33            "name": "token",
34            "in": "query",
35            "required": true,
36            "schema": {
37              "type": "string"
38            },
39            "description": "Enter your Apify token here"
40          }
41        ],
42        "responses": {
43          "200": {
44            "description": "OK"
45          }
46        }
47      }
48    },
49    "/acts/canadesk~duckduckgo-serp-api/runs": {
50      "post": {
51        "operationId": "runs-sync-canadesk-duckduckgo-serp-api",
52        "x-openai-isConsequential": false,
53        "summary": "Executes an Actor and returns information about the initiated run in response.",
54        "tags": [
55          "Run Actor"
56        ],
57        "requestBody": {
58          "required": true,
59          "content": {
60            "application/json": {
61              "schema": {
62                "$ref": "#/components/schemas/inputSchema"
63              }
64            }
65          }
66        },
67        "parameters": [
68          {
69            "name": "token",
70            "in": "query",
71            "required": true,
72            "schema": {
73              "type": "string"
74            },
75            "description": "Enter your Apify token here"
76          }
77        ],
78        "responses": {
79          "200": {
80            "description": "OK",
81            "content": {
82              "application/json": {
83                "schema": {
84                  "$ref": "#/components/schemas/runsResponseSchema"
85                }
86              }
87            }
88          }
89        }
90      }
91    },
92    "/acts/canadesk~duckduckgo-serp-api/run-sync": {
93      "post": {
94        "operationId": "run-sync-canadesk-duckduckgo-serp-api",
95        "x-openai-isConsequential": false,
96        "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
97        "tags": [
98          "Run Actor"
99        ],
100        "requestBody": {
101          "required": true,
102          "content": {
103            "application/json": {
104              "schema": {
105                "$ref": "#/components/schemas/inputSchema"
106              }
107            }
108          }
109        },
110        "parameters": [
111          {
112            "name": "token",
113            "in": "query",
114            "required": true,
115            "schema": {
116              "type": "string"
117            },
118            "description": "Enter your Apify token here"
119          }
120        ],
121        "responses": {
122          "200": {
123            "description": "OK"
124          }
125        }
126      }
127    }
128  },
129  "components": {
130    "schemas": {
131      "inputSchema": {
132        "type": "object",
133        "required": [
134          "keywords"
135        ],
136        "properties": {
137          "keywords": {
138            "title": "Keyword",
139            "type": "string",
140            "description": ""
141          },
142          "locale": {
143            "title": "Locale",
144            "enum": [
145              "us-en",
146              "xa-ar",
147              "xa-en",
148              "ar-es",
149              "au-en",
150              "at-de",
151              "be-fr",
152              "be-nl",
153              "br-pt",
154              "bg-bg",
155              "ca-en",
156              "ca-fr",
157              "ct-ca",
158              "cl-es",
159              "cn-zh",
160              "co-es",
161              "hr-hr",
162              "cz-cs",
163              "dk-da",
164              "ee-et",
165              "fi-fi",
166              "fr-fr",
167              "de-de",
168              "gr-el",
169              "hk-tzh",
170              "hu-hu",
171              "in-en",
172              "id-id",
173              "id-en",
174              "ie-en",
175              "il-he",
176              "it-it",
177              "jp-jp",
178              "kr-kr",
179              "lv-lv",
180              "lt-lt",
181              "xl-es",
182              "my-ms",
183              "my-en",
184              "mx-es",
185              "nl-nl",
186              "nz-en",
187              "no-no",
188              "pe-es",
189              "ph-en",
190              "ph-tl",
191              "pl-pl",
192              "pt-pt",
193              "ro-ro",
194              "ru-ru",
195              "sg-en",
196              "sk-sk",
197              "sl-sl",
198              "za-en",
199              "es-es",
200              "se-sv",
201              "ch-de",
202              "ch-fr",
203              "ch-it",
204              "tw-tzh",
205              "th-th",
206              "tr-tr",
207              "ua-uk",
208              "uk-en",
209              "ue-es",
210              "ve-es",
211              "vn-vi",
212              "wt-wt"
213            ],
214            "type": "string",
215            "description": "",
216            "default": "us-en"
217          },
218          "operation": {
219            "title": "Process",
220            "enum": [
221              "st",
222              "sa",
223              "sn",
224              "si",
225              "sv",
226              "sm",
227              "gs"
228            ],
229            "type": "string",
230            "description": "",
231            "default": "st"
232          },
233          "safe": {
234            "title": "Safe Search",
235            "enum": [
236              "Yes",
237              "Partial",
238              "No"
239            ],
240            "type": "string",
241            "description": "",
242            "default": "Partial"
243          },
244          "daterange": {
245            "title": "Date range",
246            "enum": [
247              "week",
248              "month",
249              "day",
250              "all"
251            ],
252            "type": "string",
253            "description": "",
254            "default": "all"
255          },
256          "img_type": {
257            "title": "Images only - Type",
258            "enum": [
259              "photo",
260              "gif",
261              "transparent",
262              "all"
263            ],
264            "type": "string",
265            "description": "Optional.",
266            "default": "all"
267          },
268          "img_size": {
269            "title": "Images only - Size",
270            "enum": [
271              "Small",
272              "Medium",
273              "Large",
274              "Wallpaper",
275              "all"
276            ],
277            "type": "string",
278            "description": "Optional.",
279            "default": "all"
280          },
281          "vid_duration": {
282            "title": "Videos only - Duration",
283            "enum": [
284              "short",
285              "medium",
286              "long",
287              "all"
288            ],
289            "type": "string",
290            "description": "Optional.",
291            "default": "all"
292          },
293          "maps_city": {
294            "title": "Maps only - City",
295            "type": "string",
296            "description": "Optional."
297          },
298          "maps_country": {
299            "title": "Maps only - Country",
300            "type": "string",
301            "description": "Optional."
302          },
303          "maximum": {
304            "title": "Maximum results",
305            "minimum": 1,
306            "maximum": 50,
307            "type": "integer",
308            "description": "",
309            "default": 5
310          },
311          "timeout": {
312            "title": "Timeout",
313            "minimum": 10,
314            "maximum": 90,
315            "type": "integer",
316            "description": "",
317            "default": 30
318          },
319          "proxy": {
320            "title": "Proxy configuration",
321            "type": "object",
322            "description": "Select proxies to be used by your crawler."
323          }
324        }
325      },
326      "runsResponseSchema": {
327        "type": "object",
328        "properties": {
329          "data": {
330            "type": "object",
331            "properties": {
332              "id": {
333                "type": "string"
334              },
335              "actId": {
336                "type": "string"
337              },
338              "userId": {
339                "type": "string"
340              },
341              "startedAt": {
342                "type": "string",
343                "format": "date-time",
344                "example": "2025-01-08T00:00:00.000Z"
345              },
346              "finishedAt": {
347                "type": "string",
348                "format": "date-time",
349                "example": "2025-01-08T00:00:00.000Z"
350              },
351              "status": {
352                "type": "string",
353                "example": "READY"
354              },
355              "meta": {
356                "type": "object",
357                "properties": {
358                  "origin": {
359                    "type": "string",
360                    "example": "API"
361                  },
362                  "userAgent": {
363                    "type": "string"
364                  }
365                }
366              },
367              "stats": {
368                "type": "object",
369                "properties": {
370                  "inputBodyLen": {
371                    "type": "integer",
372                    "example": 2000
373                  },
374                  "rebootCount": {
375                    "type": "integer",
376                    "example": 0
377                  },
378                  "restartCount": {
379                    "type": "integer",
380                    "example": 0
381                  },
382                  "resurrectCount": {
383                    "type": "integer",
384                    "example": 0
385                  },
386                  "computeUnits": {
387                    "type": "integer",
388                    "example": 0
389                  }
390                }
391              },
392              "options": {
393                "type": "object",
394                "properties": {
395                  "build": {
396                    "type": "string",
397                    "example": "latest"
398                  },
399                  "timeoutSecs": {
400                    "type": "integer",
401                    "example": 300
402                  },
403                  "memoryMbytes": {
404                    "type": "integer",
405                    "example": 1024
406                  },
407                  "diskMbytes": {
408                    "type": "integer",
409                    "example": 2048
410                  }
411                }
412              },
413              "buildId": {
414                "type": "string"
415              },
416              "defaultKeyValueStoreId": {
417                "type": "string"
418              },
419              "defaultDatasetId": {
420                "type": "string"
421              },
422              "defaultRequestQueueId": {
423                "type": "string"
424              },
425              "buildNumber": {
426                "type": "string",
427                "example": "1.0.0"
428              },
429              "containerUrl": {
430                "type": "string"
431              },
432              "usage": {
433                "type": "object",
434                "properties": {
435                  "ACTOR_COMPUTE_UNITS": {
436                    "type": "integer",
437                    "example": 0
438                  },
439                  "DATASET_READS": {
440                    "type": "integer",
441                    "example": 0
442                  },
443                  "DATASET_WRITES": {
444                    "type": "integer",
445                    "example": 0
446                  },
447                  "KEY_VALUE_STORE_READS": {
448                    "type": "integer",
449                    "example": 0
450                  },
451                  "KEY_VALUE_STORE_WRITES": {
452                    "type": "integer",
453                    "example": 1
454                  },
455                  "KEY_VALUE_STORE_LISTS": {
456                    "type": "integer",
457                    "example": 0
458                  },
459                  "REQUEST_QUEUE_READS": {
460                    "type": "integer",
461                    "example": 0
462                  },
463                  "REQUEST_QUEUE_WRITES": {
464                    "type": "integer",
465                    "example": 0
466                  },
467                  "DATA_TRANSFER_INTERNAL_GBYTES": {
468                    "type": "integer",
469                    "example": 0
470                  },
471                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
472                    "type": "integer",
473                    "example": 0
474                  },
475                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
476                    "type": "integer",
477                    "example": 0
478                  },
479                  "PROXY_SERPS": {
480                    "type": "integer",
481                    "example": 0
482                  }
483                }
484              },
485              "usageTotalUsd": {
486                "type": "number",
487                "example": 0.00005
488              },
489              "usageUsd": {
490                "type": "object",
491                "properties": {
492                  "ACTOR_COMPUTE_UNITS": {
493                    "type": "integer",
494                    "example": 0
495                  },
496                  "DATASET_READS": {
497                    "type": "integer",
498                    "example": 0
499                  },
500                  "DATASET_WRITES": {
501                    "type": "integer",
502                    "example": 0
503                  },
504                  "KEY_VALUE_STORE_READS": {
505                    "type": "integer",
506                    "example": 0
507                  },
508                  "KEY_VALUE_STORE_WRITES": {
509                    "type": "number",
510                    "example": 0.00005
511                  },
512                  "KEY_VALUE_STORE_LISTS": {
513                    "type": "integer",
514                    "example": 0
515                  },
516                  "REQUEST_QUEUE_READS": {
517                    "type": "integer",
518                    "example": 0
519                  },
520                  "REQUEST_QUEUE_WRITES": {
521                    "type": "integer",
522                    "example": 0
523                  },
524                  "DATA_TRANSFER_INTERNAL_GBYTES": {
525                    "type": "integer",
526                    "example": 0
527                  },
528                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
529                    "type": "integer",
530                    "example": 0
531                  },
532                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
533                    "type": "integer",
534                    "example": 0
535                  },
536                  "PROXY_SERPS": {
537                    "type": "integer",
538                    "example": 0
539                  }
540                }
541              }
542            }
543          }
544        }
545      }
546    }
547  }
548}

DuckDuckGo Serp API OpenAPI definition

OpenAPI is a standard for designing and describing RESTful APIs, allowing developers to define API structure, endpoints, and data formats in a machine-readable way. It simplifies API development, integration, and documentation.

OpenAPI is effective when used with AI agents and GPTs by standardizing how these systems interact with various APIs, for reliable integrations and efficient communication.

By defining machine-readable API specifications, OpenAPI allows AI models like GPTs to understand and use varied data sources, improving accuracy. This accelerates development, reduces errors, and provides context-aware responses, making OpenAPI a core component for AI applications.

You can download the OpenAPI definitions for DuckDuckGo Serp API from the options below:

If you’d like to learn more about how OpenAPI powers GPTs, read our blog post.

You can also check out our other API clients:

Developer
Maintained by Community

Actor Metrics

  • 3 monthly users

  • 1 star

  • >99% runs succeeded

  • Created in Oct 2024

  • Modified a month ago