APIs / DuckDuckGo / Search

DuckDuckGo: Search

Search from DuckDuckGo as JSON. 1 credit per successful call.

GET /v1/duckduckgo/search

Parameters

Send parameters in the query string.

ParameterTypeRequiredAllowed values
qstringRequiredUp to 499 characters
klstringOptionalUp to 10 characters
dfstringOptionald, w, m, y
safebooleanOptionalAny
startintegerOptionalAny

Example request

DuckDuckGo
GET/v1/duckduckgo/search?q=laravel+taylor+otwell&kl=us-en&start=0
{
  "success": true,
  "data": {
    "search_parameters": {
      "q": "laravel taylor otwell",
      "kl": "us-en",
      "safe": true,
      "start": 0
    },
    "organic_results": [
      {
        "position": 1,
        "title": "Taylor Otwell - Founder & CEO at Laravel | LinkedIn",
        "link": "https://www.linkedin.com/in/taylorotwell",
        "snippet": "Founder & CEO at Laravel · Creator of Laravel, the PHP framework that empowers developers to build scalable and elegant web applications. My journey in software development has always been ...",
        "display_url": "www.linkedin.com/in/taylorotwell",
        "favicon": "https://icons.duckduckgo.com/ip3/www.linkedin.com.ico"
      },
      {
        "position": 2,
        "title": "taylorotwell (Taylor Otwell) · GitHub",
        "link": "https://github.com/taylorotwell",
        "snippet": "Creator of @laravel. taylorotwell has 10 repositories available. Follow their code on GitHub.",
        "display_url": "github.com/taylorotwell",
        "favicon": "https://icons.duckduckgo.com/ip3/github.com.ico"
      },
      {
        "position": 3,
        "title": "Laravel - Wikipedia",
        "link": "https://en.wikipedia.org/wiki/Laravel",
        "snippet": "Laravel is a free and open-source PHP -based web framework for building web applications. [3] It was created by Taylor Otwell and intended for the development of web applications following the model-view-controller (MVC) architectural patte…",
        "display_url": "en.wikipedia.org/wiki/Laravel",
        "favicon": "https://icons.duckduckgo.com/ip3/en.wikipedia.org.ico"
      }
    ],
    "pagination": {
      "current": 1,
      "has_more": true,
      "next_start": 10,
      "next": 2
    },
    "knowledge_graph": {
      "ai_answer": {
        "answer": "**Taylor Otwell** is the creator of **Laravel**, a PHP web application framework he started in **2011** as a side project for himself. He later built **Laravel Forge** in late **2013** and became full-time on Laravel by **January 2015**."
      }
    }
  },
  "meta": {
    "duration_ms": 2169,
    "endpoint_family": "web_search"
  }
}
200 OKJSONX-Credits-Used: 1
Recorded from our API and shortened.

Run this endpoint in the playground with your own parameters. 1 credit per successful call; failed calls are free.

Response fields

data has these 4 fields, read from a recorded call. The recording leaves out fields that were empty, so a live call can return more.

FieldType
search_parametersobject
organic_resultsobject[]
paginationobject
knowledge_graphobject