DuckDuckGo Inline Images API

When a DuckDuckGo search contains inline images, they are parsed and exist within the inline_images array in the JSON output. Inline images can contain title, link, thumbnail, and image. To get all the images of the search, use inline_images_serpapi_link, which searches the same query with our DuckDuckGo Images API.


The API endpoint is https://serpapi.com/search?engine=duckduckgo

Head to the playground for a live and interactive demo.

API examples

Inline images results overview

Inline images results overview

JSON Example

{
  ...
  "inline_images": [
    {
      "position": 1,
      "title": "How to Learn About Common Cake Decorating Terms: 7 Steps",
      "link": "http://www.wikihow.com/Learn-About-Common-Cake-Decorating-Terms",
      "thumbnail": "https://tse1.mm.bing.net/th?id=OIP.DD_vF--6QS8OjCAMgT5eDQHaFj&pid=Api",
      "image": "http://www.wikihow.com/images/e/e0/Learn-About-Common-Cake-Decorating-Terms-Step-7Bullet6.jpg"
    },
    {
      "position": 2,
      "title": "10 Cake Decorating Ideas Guaranteed to be Top Hits",
      "link": "https://creativiu.com/cake-decoration-posts/cake-decorating-ideas/",
      "thumbnail": "https://tse1.mm.bing.net/th?id=OIP.wKmb65mRHhZ803GA2Z-3fAHaKt&pid=Api",
      "image": "https://creativiu.com/wp-content/uploads/2017/10/easy-cakes-decorating-ideas.jpg"
    },
    {
      "position": 3,
      "title": "Easy Cake Decorating Ideas - Cake Decoration Tips and ...",
      "link": "https://herohymab.wordpress.com/2012/09/04/easy-cake-decorating-ideas-cake-decoration-tips-and-techniques/",
      "thumbnail": "https://tse1.mm.bing.net/th?id=OIP.hzUxLGeNAUYdnDhJLxwc8wHaLH&pid=Api",
      "image": "http://blog-imgs-45.fc2.com/c/a/k/cake811/Cake-Decoration-Ideas-3.jpg"
    },
    ...
  ],
  "inline_images_link": "https://duckduckgo.com/?q=cake+decoration&kl=us-en&iax=images&ia=images",
  "inline_images_serpapi_link": "https://serpapi.com/search.json?engine=duckduckgo_images&kl=us-en&q=cake+decoration",
  ...
}