public-roadmap icon indicating copy to clipboard operation
public-roadmap copied to clipboard

[DuckDuckGo Search API] `safe` parameter does not work

Open mohamedScikitLearn opened this issue 1 year ago • 2 comments

I want to integrate Duckduckgosearch, but it seems that the safe

"search_parameters": { "engine": "duckduckgo", "q": "adultmovies xxx ", "kl": "us-en", "safe": "1" },

mohamedScikitLearn avatar Jul 28 '24 09:07 mohamedScikitLearn

It does look like this engine is fixed on Moderate safe search mode. It appears the parameter has been replaced by DuckDuckGo - inspecting a search from a browser picks up these differences between the modes:

  • Strict: p=1&exlsexp=b&litexp=c
  • Moderate: ex=-1&exlsexp=b&litexp=b&videxp=a
  • Off: ex=-2&exlsexp=a&litexp=a

Freaky avatar Jul 29 '24 13:07 Freaky

Making safe with p=1&exlsexp=b&litexp=c does not work on serpapi either.

mohamedScikitLearn avatar Jul 31 '24 08:07 mohamedScikitLearn

We have fixed this issue.

image

Krugloff avatar Oct 03 '24 14:10 Krugloff

@mohamedScikitLearn Tagging you for visibility. Our engineers have implemented a fix. Please feel free to reach out for any questions or concerns.

sonika-serpapi avatar Oct 03 '24 23:10 sonika-serpapi