Google bing DuckDuckGo search API: One call
Need a Google Bing DuckDuckGo search api? One hosted call returns all three engines in one JSON schema. Compare four routes, handle blocks and price queries.
- search api
- serp api
- duckduckgo
- bing
- web scraping
On this page
- Google vs Bing vs DuckDuckGo search API: how do they differ?
- Which route should you pick: official API, ddgs, SERP API or Actor?
- How do you run Google, Bing and DuckDuckGo in one search API call?
- How do you detect a blocked engine and retry on 429, 403 or 503?
- How much does a Google, Bing and DuckDuckGo search API query cost?
- Is it allowed to automate Google, Bing and DuckDuckGo searches?
- How do you use a Google, Bing and DuckDuckGo search API from an AI agent or RAG loop?
- Frequently asked questions
- What is a Google, Bing and DuckDuckGo search API?
- Does DuckDuckGo have an official search API?
- Can I get Bing results through an API now?
- What does an empty result list mean?
- What to do next with your Google, Bing and DuckDuckGo search API
- Sources
For a google bing duckduckgo search api, one hosted call is the practical route: Wayfern’s Search API takes POST or GET at https://api.wayfern.com/api/search/v1 and returns live results from all three engines in one JSON envelope. IPRoyal’s developer guide says DuckDuckGo’s official Instant Answer API doesn’t cover full results, which need HTML endpoints or the ddgs package. You choose between four routes for a Google, Bing and DuckDuckGo search API.
Putting a google bing duckduckgo search api behind one pipeline goes wrong one engine at a time. Each engine has its own markup, its own operator handling, its own way of placing ads among organic rows and its own captcha page.
After reading, you can choose a route for each engine, send one multi-engine call, catch failures that look like empty results, and price each query.
Key Takeaways
- Every row carries five fields (
rank,absolute_rank,type,adandengine), so ads and the source engine stay visible after results are merged.- A blocked engine can look like an empty list. Don’t treat zero rows as zero results until you’ve read
meta.engines_failed.- One request can name a list of engines, for example
"engines": ["google", "bing"], withlimitin the same body.
Google vs Bing vs DuckDuckGo search API: how do they differ?
Google, Bing and DuckDuckGo differ for programmatic access in page size, date filtering and the rows they mix into results.

| Bing | DuckDuckGo | ||
|---|---|---|---|
| Results per provider page | Up to 100 | 10 | 10 |
| Date filter | Yes | Yes | No |
Provider pages for limit 50 | 1 | 5 | 5 |
Parsing three engines in your own code means three parsers that break on three schedules. Normalize at the edge instead, so every engine’s results arrive in one row schema.
Page size drives request count. Wayfern’s search guide lists Google at up to 100 results per provider page and Bing and DuckDuckGo at 10, with limit running from 1 to 200 per engine and defaulting to 50. At the default, Google needs 1 provider page and the other two need 5.
Design your Google, Bing and DuckDuckGo search API pipeline for the smallest page. A pipeline that assumes 100 rows per page will get 10 from Bing and DuckDuckGo. Count provider pages rather than rows when you plan requests, and page further with the start offset and pagination.next_start.
Filters split less evenly. The date filter works on Google and Bing only, so the API can’t bound a DuckDuckGo query by date.
Results also shift. The same text can return different rows on each engine and different rows later, so don’t assume the engines overlap.
- Google: deep result lists in few requests, with date windows.
- Bing: a second date-filterable index, 10 rows per page.
- DuckDuckGo: a cross-check from a third index when you don’t need date bounds.
Which route should you pick: official API, ddgs, SERP API or Actor?
Pick the route by the engines you need and the breakage you can absorb, because each of the four trades coverage against stability.
| Instant Answer API | ddgs | Wayfern Search API | Bing and DuckDuckGo Actor | |
|---|---|---|---|---|
| Engines named by its source | DuckDuckGo | DuckDuckGo | Google, Bing, DuckDuckGo | Bing, DuckDuckGo |
| Full DuckDuckGo results | No | Yes | Yes | Yes |
| Status | Official | Not officially allowed | Hosted service | Hosted service |
DuckDuckGo’s official route is the Instant Answer API, but IPRoyal’s DuckDuckGo guide says its documentation “is sparse” and that full results mean “accessing the HTML endpoints directly or using the ddgs Python Package.”
The ddgs package parses pages built for people, so a markup change on DuckDuckGo’s side can break it without notice. Use it to prove an idea in an afternoon, and keep it out of anything a customer relies on.
Hosted SERP APIs move that maintenance to a vendor. SerpApi’s DuckDuckGo endpoint is https://serpapi.com/search?engine=duckduckgo, with a required q query capped at 500 characters and a kl region parameter. It covers DuckDuckGo only, so Google and Bing mean separate calls to other engines.
Wayfern’s Search API for Google, Bing and DuckDuckGo is the route when you want one schema across all three engines in a single request.
The Apify Actor from insight.solutions covers Bing and DuckDuckGo in one schema, lists no Google, and shows pricing “from $0.36 / 1,000 search result returneds.” Its relevance guard suppresses pages of unrelated results and never bills for them. If you don’t need Google, the Actor is a fair pick.
Best for, by situation:
- A prototype: ddgs, with the understanding that nothing keeps it running.
- Factual snippets: the Instant Answer API, which is DuckDuckGo’s official route.
- Bing and DuckDuckGo only: the Actor.
- All three engines in one schema: Wayfern Search API.
How do you run Google, Bing and DuckDuckGo in one search API call?
One POST to the Search API runs Google, Bing and DuckDuckGo together and returns a single results list, which you page through with pagination.next_start until has_more is false. Wayfern’s search guide says to send POST or GET to /api/search/v1 with a wf_ API token that has the search scope.
- Create a search-scoped token and store it in the
WF_TOKENenvironment variable. The full request field list (text,engines,site,filetype,date,lang,region,filter,features,limit,start) is in the API reference. - Send the request in Python with
enginesset to all three names. Checkmeta.engines_failedon every page, because a blocked engine can look like an empty list.
import os, requests
URL = "https://api.wayfern.com/api/search/v1"
headers = {"Authorization": f"Bearer {os.environ['WF_TOKEN']}"}
body = {"text": "serverless browsers",
"engines": ["google", "bing", "duckduckgo"],
"limit": 20, "start": 0}
rows = []
while True:
r = requests.post(URL, headers=headers, json=body, timeout=60)
r.raise_for_status()
data = r.json()
if data["meta"].get("engines_failed"):
print("failed:", data["meta"]["engines_failed"])
rows += data["results"]
if not data["pagination"]["has_more"]:
break
body["start"] = data["pagination"]["next_start"] - Send the same request in JavaScript. Pass
next_startback asstartinstead of computing offsets yourself.
const url = "https://api.wayfern.com/api/search/v1";
const body = { text: "serverless browsers",
engines: ["google", "bing", "duckduckgo"], limit: 20, start: 0 };
const rows = [];
while (true) {
const res = await fetch(url, { method: "POST",
headers: { Authorization: `Bearer ${process.env.WF_TOKEN}`,
"Content-Type": "application/json" },
body: JSON.stringify(body) });
if (!res.ok) throw new Error(`HTTP ${res.status}`);
const data = await res.json();
if (data.meta?.engines_failed?.length) console.warn(data.meta.engines_failed);
rows.push(...data.results);
if (!data.pagination.has_more) break;
body.start = data.pagination.next_start;
} - Read the normalized rows. The guide lists each result item as having
rank,absolute_rank,type(organicorad),url,title,description,adandengine. After URL-level dedupe, each row keeps oneurland carries itsenginetag. A row looks like this, with placeholder values:
{"rank": 1, "absolute_rank": 2, "type": "organic", "ad": false,
"url": "https://example.com/page", "title": "Example title",
"description": "Example snippet", "engine": "google"} - Filter ads on the
adflag. Ad rows stay in the list withadset to true, so drop them yourself when you want organic results only. Userankfor organic position andabsolute_rankfor position on the page, ads included. A common mistake is sorting onabsolute_rankand calling it an organic ranking.
Success is one flat rows list where every row names its engine and engines_failed is empty. Try it with your own query through the Search API reference and compare the three engines side by side.
How do you detect a blocked engine and retry on 429, 403 or 503?
You detect a blocked engine by reading meta.engines_failed on every response, and you retry only on 429 or 503, because a blocked engine can come back as HTTP 200 with fewer rows or none.
Send engines as google and bing. If the response is a 200 with an empty results array and bing listed in meta.engines_failed, the engine was blocked and the query was not empty. Checking len(results) alone would miss it.
- Read
meta.engines_failedfirst. A non-empty list is a partial success: keep the rows you got and decide whether the missing engine is worth another call. - Retry only 429 and 503. Back off on a fixed schedule with jitter and cap the attempts. The code below doesn’t read a
Retry-Afterheader, so the schedule stands in for it. - Stop on 403. Repeating an identical request won’t change the answer, so raise the error, read the response body and confirm the token has the
searchscope. - Re-send only the failed engines. Set
enginesto the failed list so engines that already answered don’t run again.
import os, random, time, requests
URL = "https://api.wayfern.com/api/search/v1"
HEADERS = {"Authorization": f"Bearer {os.environ['WF_TOKEN']}"}
SCHEDULE = [2, 5, 10, 20] # seconds, then give up
def search(text, engines, limit=10):
pending, rows = list(engines), []
for attempt in range(len(SCHEDULE) + 1):
r = requests.post(URL, headers=HEADERS, timeout=60,
json={"text": text, "engines": pending, "limit": limit})
if r.status_code in (429, 503):
if attempt == len(SCHEDULE):
r.raise_for_status()
time.sleep(SCHEDULE[attempt] + random.uniform(0, 1))
continue
r.raise_for_status() # 403 and other errors stop here
body = r.json()
rows += body["results"]
pending = body.get("meta", {}).get("engines_failed", [])
if not pending or attempt == len(SCHEDULE):
return rows, pending
time.sleep(SCHEDULE[attempt] + random.uniform(0, 1))
return rows, pending The function returns the rows plus any engines still failing, so your caller can log them. It treats each engines_failed entry as an engine name. Check that response shape, and the documented meaning of each status code, in the API reference before you rely on it.
Wayfern’s limits page says search is limited to 30 requests a minute. Space calls across queries as well as across retries.
Keep the attempt cap low so retries don’t eat into that rate limit.
How much does a Google, Bing and DuckDuckGo search API query cost?
A multi-engine search query costs 2 credits for every provider results page Wayfern fetches, so your limit and engines settings decide the price. Wayfern’s pricing page lists search at 2 credits per provider results page, and cache hits are billed the same way.
A page costs the same whether it holds 10 or 100 results. The limit applies per engine, so each engine’s page count is limit divided by its page size, rounded up.
With limit 50 on all three engines:
- Google: 50 fits in one page, so 1 page × 2 credits = 2 credits.
- Bing: 50 ÷ 10 = 5 pages, so 5 × 2 = 10 credits.
- DuckDuckGo: 50 ÷ 10 = 5 pages, so 5 × 2 = 10 credits.
- Total: 2 + 10 + 10 = 22 credits.
With limit 10 on all three engines, each needs 1 page: 3 pages, 3 × 2 = 6 credits.
Raise Google’s limit from 10 to 100 and it’s still 1 page, so it’s still 2 credits. Raise Bing’s limit from 10 to 100 and it becomes 10 pages, or 20 credits.
Because cache hits are billed, repeating a query inside the cache window doesn’t make it free. If you need depth, ask Google for it, and keep Bing and DuckDuckGo at limit 10 unless you need more rows from them.
The Apify Actor for Bing and DuckDuckGo lists its price as “from $0.36 / 1,000 search result returneds”, which is a per-result unit. Wayfern’s unit is the provider page, so compare the two on your own query volume.
For what a credit costs, plan credits and credit packs, see Wayfern’s credit prices and plans.
Is it allowed to automate Google, Bing and DuckDuckGo searches?
Automated searches on Google, Bing and DuckDuckGo are governed by each engine’s own terms of service, and your use has to be lawful where you run it. Google’s terms and Microsoft’s terms (which cover Bing) are the governing documents, so read their sections on automated access before you build a pipeline.
The route you pick changes your exposure. IPRoyal’s DuckDuckGo guide says that reaching full results through the HTML endpoints or the ddgs Python package is a path where “Neither of them is officially allowed,” and it tells developers to weigh the possible restrictions, including legal consequences.
If an engine’s terms limit automated access to its regular results pages, an official API is the route that engine offers. Weigh that next to cost and coverage.
The uses that apply here are public-data collection, research, monitoring and agents, within each site’s terms and the law. Read Wayfern’s terms of service too before you send traffic.
Check the rules in your jurisdiction with your own counsel.
How do you use a Google, Bing and DuckDuckGo search API from an AI agent or RAG loop?
You use the search API from an AI agent by calling the search_web tool on Wayfern’s MCP server, which charges the same 2 credits per provider results page as the REST endpoint. The MCP server docs say the server exposes the search_web tool and the free list_search_engines tool. Agent loops repeat themselves, and repeats cost money.
- Mint a
wf_token with themcpscope. The account needs an active plan or a positive credit balance, or calls are refused. - Point your MCP client at
https://api.wayfern.com/mcpand send the token as a Bearer header. - Call
list_search_engines, which is free, to see the engine namessearch_webaccepts. - Call
search_web. Every result reportscredits_charged, so log it per step. Success is a rows list plus that number. - Dedupe before you call. Results are cached for 5 minutes. A repeated query inside the loop returns the same rows and still bills, so normalize and hash each query and keep your own cache.
- Cap iterations. Set a maximum number of searches per run so the model stays under the search rate limit instead of retrying freely.
- If snippets don’t answer the question, pass the chosen URL to
scrape_page.
For the wider set of agent tooling, see our comparison of tools for AI agents on the live web.
Frequently asked questions
What is a Google, Bing and DuckDuckGo search API?
A search API returns live Google, Bing or DuckDuckGo results as structured rows instead of a page built for people. Wayfern’s Search API returns all three engines as one JSON envelope. Each row carries rank, absolute_rank, type, url, title, description, ad and engine.
Does DuckDuckGo have an official search API?
DuckDuckGo has an official Instant Answer API, but IPRoyal’s guide says its documentation is sparse. Full results programmatically mean calling the HTML endpoints directly or using the ddgs Python package, and neither is officially allowed. Check the restrictions that apply to your use before you build on either.
Can I get Bing results through an API now?
You can get Bing results from hosted services. Wayfern’s Search API accepts bing in its engines array, alongside google and duckduckgo. An Apify actor also runs queries against Bing and DuckDuckGo with no API key and returns title, URL, snippet and position.
What does an empty result list mean?
Treat an empty list as unconfirmed until you’ve checked that every engine you asked for responded. Zero rows doesn’t prove zero matches. Retry the request, compare against a second engine, and read the failure fields in the search API reference before you cache a zero.
What to do next with your Google, Bing and DuckDuckGo search API
Today, pick a route for each engine from the situation list. Choose a hosted SERP API when one google bing duckduckgo search api call has to cover all three engines.
This week, mint a wf_ token with the search scope and run one three-engine call. Log meta.engines_failed from the first request, so a blocked engine shows up in your logs from day one.
This month:
- Set
limitby provider page size, so you don’t pay for pages you never read. - Add retry on 429 and 503, plus a query-level cache.
- Review credits used against the credit rates on the pricing page.
Get a search-scoped token from the Wayfern quickstart and send your first request with engines set to google, bing and duckduckgo.
Sources
Search Google, Bing and DuckDuckGo - Wayfern · DuckDuckGo API: A Developer’s Guide for 2026 - iproyal.com · DuckDuckGo Search Engine Results API - SerpApi · Bing & DuckDuckGo Search API — SERP Results, No API Key ·… · Limits - Wayfern docs · Pricing - Credits for Browsers & the Web Data API | Wayfern · MCP server - Wayfern docs · Search Google, Bing and DuckDuckGo - Wayfern
See us more often in Google
One click marks Wayfern as a preferred source in Google, so our posts can show up more often in your Top Stories, AI Mode and AI Overviews.