WWW::DuckDuckGo(3)
π 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 usehttps, so it will not fallback tohttpon failure. so like, no plan B, no backup, we commit. π«Άhttp_agent_nameβ Set the http agent name which the webserver gets. Defaults toWWW::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 onhttps://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 π
π COPYRIGHT AND LICENSE π
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
- fedora 43: perl-WWW-DuckDuckGo 0.016-32.fc43 Β· GPL-1.0-or-later OR Artistic-1.0-Perl
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms