Back to articles
DuckDuckGo Search API: Add Web Search to Your App Without Google Costs

DuckDuckGo Search API: Add Web Search to Your App Without Google Costs

via Dev.to WebdevDonny Nguyen

Google Custom Search charges $5 per 1,000 queries after the free 100/day. For side projects and MVPs, that's a non-starter. The DuckDuckGo Search API gives you clean search results without the cost or tracking. Quick Start curl -X GET "https://duckduckgo-search11.p.rapidapi.com/duckduckgo-search/search?query=best+react+ui+libraries+2026&limit=10" \ -H "X-RapidAPI-Key: YOUR_API_KEY" \ -H "X-RapidAPI-Host: duckduckgo-search11.p.rapidapi.com" Node.js — Content Research Tool const axios = require ( ' axios ' ); async function search ( query , maxResults = 10 ) { const { data } = await axios . get ( ' https://duckduckgo-search11.p.rapidapi.com/duckduckgo-search/search ' , { params : { query , limit : maxResults }, headers : { ' X-RapidAPI-Key ' : process . env . RAPIDAPI_KEY , ' X-RapidAPI-Host ' : ' duckduckgo-search11.p.rapidapi.com ' } } ); return data . results . map ( r => ({ title : r . title , url : r . url , snippet : r . description })); } search ( ' best project management tools 2

Continue reading on Dev.to Webdev

Opens in a new tab

Read Full Article
2 views

Related Articles