# DuckDuckGo API on SandBase

> DuckDuckGo data API endpoints available through one SandBase API key.

Source: https://www.sandbase.ai/apis/duckduckgo

- Endpoints: 6
- Call: `POST https://api.sandbase.ai/v1/api/{vendor}/{endpoint}` with `Authorization: Bearer $SANDBASE_API_KEY` and the parameters as a JSON body
- Billing: pay per call from one SandBase balance; no provider account or subscription needed

## Endpoints

- [DuckDuckGo AI Chat Answer](https://www.sandbase.ai/apis/duckduckgo/ai-chat.md): $0.01 per call
  Get the answer DuckDuckGo's Duck.ai chat gives for a question with a chosen chat model, with answer text and a token for follow-up questions.
- [DuckDuckGo Images](https://www.sandbase.ai/apis/duckduckgo/images.md): $0.01 per call
  Search DuckDuckGo Images by keyword with size, color, type and layout filters, returning image URLs, thumbnails, titles and sources.
- [DuckDuckGo Maps](https://www.sandbase.ai/apis/duckduckgo/maps.md): $0.00015 per call
  Search DuckDuckGo Maps for places inside a viewport rectangle or around a center.
- [DuckDuckGo News Search](https://www.sandbase.ai/apis/duckduckgo/news.md): $0.015 per call
  DuckDuckGo News results for a keyword: headline, source, date, snippet and link.
- [DuckDuckGo Search](https://www.sandbase.ai/apis/duckduckgo/search.md): $0.015 per call
  DuckDuckGo organic search results for a keyword, with region and safe-search options.
- [DuckDuckGo Shopping](https://www.sandbase.ai/apis/duckduckgo/shopping.md): $0.01 per call
  Search DuckDuckGo Shopping by keyword and get product listings with title, price, merchant, rating and link, by region.

## Use it through SandBase

- Base URL: `https://api.sandbase.ai/v1`, with `Authorization: Bearer $SANDBASE_API_KEY`.
- Language models use the OpenAI-compatible `POST /v1/chat/completions`; media models use `POST /v1/run`; data APIs use `POST /v1/api/{vendor}/{endpoint}`.
- AI agents can connect through the SandBase MCP server or CLI: https://www.sandbase.ai/skill.md
- Every model and API page has a Markdown twin at the same URL plus `.md`. Full index: https://www.sandbase.ai/llms.txt
