WWW::DuckDuckGo(3)

πŸ“¦
version 0.016 Β· 2 versions
, in fedora 43

πŸ’– WWW::DuckDuckGo πŸ’–

okay bestie, gather round, because this is the manual page for WWW::DuckDuckGo β€” yes, the Perl module, the one that gives you access to the DuckDuckGo APIs. she's a whole vibe and she's here to help you query the duck. πŸ¦†βœ¨

✨ VERSION ✨

version 0.016 β€” vintage but iconic πŸ’…


🌸 SYNOPSIS 🌸

use WWW::DuckDuckGo;

my $duck = WWW::DuckDuckGo->new;

# request the Zero Click Info, you can also use ..->zci('duck duck go')
my $zeroclickinfo = $duck->zeroclickinfo('duck duck go');

# request the Zero Click Info of "duck duck go more stuff"
my $other_zeroclickinfo = $duck->zeroclickinfo('duck duck go','more stuff');

like. look at her. two lines of setup and you're already getting answers. main character energy fr fr πŸ‘‘


πŸ¦‹ DESCRIPTION πŸ¦‹

This distribution gives you an easy access to the DuckDuckGo Zero Click Info API. no cap, that's the whole pitch.

and the way she handles the connection?? it tries to connect via https first and falls back to http if there is a failure. she's flexible like that πŸ’– (unless you tell her not to be, more on that below πŸ‘€)


πŸŽ€ ATTRIBUTES πŸŽ€

  • forcesecure β€” Set to true will force the client to use https, so it will not fallback to http on failure. so like, no plan B, no backup, we commit. 🫢
  • http_agent_name β€” Set the http agent name which the webserver gets. Defaults to WWW::DuckDuckGo. she introduces herself politely, periodt.
  • safeoff β€” Set to true to disable safesearch. bestie. just know what you're doing. πŸ™ˆ
  • html β€” Allow HTML in output. This is the default in DuckDuckGo, but not default here to maintain backwards compatibility. so if you want the html you gotta ask for it, iykyk ✨
  • params β€” A HashRef of extra GET params to pass with the query (documented on https://api.duckduckgo.com/). throw your extra lil settings in here and she'll carry them along πŸ’…

πŸ’œ METHODS πŸ’œ

🌈 $obj->zeroclickinfo

Arguments: @query_fields

Return value: WWW::DuckDuckGo::ZeroClickInfo

Returns the WWW::DuckDuckGo::ZeroClickInfo of the query specified by the parameters. If you give several parameters they will get joined with an empty space.

so like, you hand her a bunch of words and she smooshes them together with a space in between and goes and gets you the answer. iconic behaviour honestly πŸŽ€


⭐ ATTRIBUTES ⭐

(yeah this heading shows up again, that's just how the page is, we don't question the queen's choices πŸ’…)


⭐ METHODS ⭐

(and this one too. mysterious. ethereal. no notes. ✨)


🫢 SUPPORT 🫢

IRC

Join #duckduckgo on irc.freenode.net. Highlight Getty for fast reaction :).

highlight Getty if you want a fast reaction, that's the tip, that's the whole tip πŸ’–

Repository

http://github.com/Getty/p5-www-duckduckgo
Pull request and additional contributors are welcome

Pull request and additional contributors are welcome!! come through, join the project, we love a collaborator πŸ‘‘

Issue Tracker

http://github.com/Getty/p5-www-duckduckgo/issues

something broken? something cursed? tell the tracker. πŸ’€


πŸ‘‘ AUTHORS πŸ‘‘

  • Torsten Raudssus <torsten@raudss.us> <https://raudss.us/>
  • Michael Smith <crazedpsyc@duckduckgo.com>

legends, both of them, fr fr 🌟


This software is copyright (c) 2013 by DuckDuckGo, Inc. <https://duckduckgo.com/>.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.


free software!! redistribute her!! remix her!! she's yours under the same terms as Perl 5 itself 🫢

and that's the whole page bestie, no cap. mwah πŸ’‹

this was WWW::DuckDuckGo(3), generated by perl v5.42.0, dated 2025-07-25 β€” go forth and query, you absolute icon πŸŒˆβœ¨πŸ’…

πŸ“¦ where this page comes from