100 free credits. No credit card required. Get a key

DuckDuckGo video search API

Videos for a query with URL, duration, publisher, uploader, thumbnails and view counts.

GET /v1/duckduckgo/videosBeta1 credit per callRefunded on failure
import os, requests

res = requests.get(
    "https://api.groundsocial.dev/v1/duckduckgo/videos?query=coffee",
    headers={"Authorization": f"Bearer {os.environ['GROUNDSOCIAL_API_KEY']}"},
)
res.raise_for_status()
data = res.json()
Response
200 · 1 credit
{
"query": "coffee",
"results": [
{
"content": "https://www.youtube.com/watch?v=62wEk02YKs0",
"title": "Coffee and what it does to your body - BBC World Service",
"description": "Billions of people around the world rely on a little cup of coffee to get them through the day. But have you ever stoppe…",
"duration": "6:18",
"published": "2024-05-16T12:00:06.0000000",
"publisher": "YouTube",
"uploader": "BBC World Service",
"images": {
"large": "https://tse4.mm.bing.net/th/id/OVP.ftKhyyb5vzSvdsAcvRE7UQHgFo?pid=Api",
"medium": "https://tse4.mm.bing.net/th/id/OVP.ftKhyyb5vzSvdsAcvRE7UQHgFo?pid=Api",
"motion": "https://tse3.mm.bing.net/th/id/OM.ihi53mXXCu_nFw_1789029534?pid=Api",
"small": "https://tse4.mm.bing.net/th/id/OVP.ftKhyyb5vzSvdsAcvRE7UQHgFo?pid=Api"
},
"statistics": {
"viewCount": 4536003
},
"embed_html": "<iframe width=\"1280\" height=\"720\" src=\"https://www.youtube.com/embed/62wEk02YKs0?autoplay=1\" frameborder=\"0\" allowfullsc…",
"embed_url": "https://www.youtube.com/embed/62wEk02YKs0?autoplay=1",
"image_token": "1bb000846d1cfa80cd3ef13eccb57515cd4e12f23e450c388dbb84440d6cdb5b",
"provider": "Bing",
"thumbnail_height": 360,
"thumbnail_width": 480
},
{
"content": "https://www.youtube.com/watch?v=uWWVNq5GHp4",
"title": "Are you buying the right Coffee Beans? (Beginner's Guide to Coffee)",
"description": "Want to become a more confident and creative home cook? Check out our Cook Well app: https://apps.apple.com/us/app/cook-…",
"duration": "49:14",
"published": "2024-05-25T15:45:02.0000000",
"publisher": "YouTube",
"uploader": "Ethan Chlebowski",
"images": {
"large": "https://tse3.mm.bing.net/th/id/OVP.VoC5cf_aPx9fWkQ8GRGDxwHgFo?pid=Api",
"medium": "https://tse3.mm.bing.net/th/id/OVP.VoC5cf_aPx9fWkQ8GRGDxwHgFo?pid=Api",
"motion": "https://tse3.mm.bing.net/th/id/OM._wEIbwEoODOoNA_1769576883?pid=Api",
"small": "https://tse3.mm.bing.net/th/id/OVP.VoC5cf_aPx9fWkQ8GRGDxwHgFo?pid=Api"
},
"statistics": {
"viewCount": 2358438
},
"embed_html": "<iframe width=\"1280\" height=\"720\" src=\"https://www.youtube.com/embed/uWWVNq5GHp4?autoplay=1\" frameborder=\"0\" allowfullsc…",
"embed_url": "https://www.youtube.com/embed/uWWVNq5GHp4?autoplay=1",
"image_token": "91f4cc9f418c4a85c2e41f8f1750126354cc007e8dbf9a073c524cbe654f4c1c",
"provider": "Bing",
"thumbnail_height": 360,
"thumbnail_width": 480
},
"… 28 more"
]
}

Parameters

NameTypeDescription
queryquery · requiredstring
regionquerystringDuckDuckGo region (default us-en; wt-wt for none). Example: de-de.
safe_searchquery"strict" | "moderate" | "off"One of strict, moderate, off.
time_rangequery"any" | "day" | "week" | "month" | "year"One of any, day, week, month, year.
limitqueryinteger
Status codes
StatusMeaning
200Videos.
400Invalid input. Nothing was charged.
401Missing or invalid API key.
402Not enough credits, a spend cap was reached, or payment is required.
403The target is private, or the account is suspended.
404DuckDuckGo has nothing for that search.
429Too many requests. Wait for Retry-After seconds.
503DuckDuckGo is temporarily unavailable. Retryable; nothing was charged.

Every error has code, message, hint and retryable. All error codes

Questions

How many?

Up to 60.

DuckDuckGo is a trademark of Duck Duck Go, Inc. We are not affiliated with or endorsed by DuckDuckGo.