99+ results for 'api.duckduckgo.com' (0 ms)
Not the results you expected?
answer.lua (https://github.com/wrxck/mattata.git) Lua · 57 lines
gigahorse-030.md (https://github.com/eed3si9n/eed3si9n.com.git) Markdown · 63 lines
41 ```scala
42 scala> val r = Gigahorse.url("http://api.duckduckgo.com").get.
43 | addQueryString(
44 | "q" -> "1 + 1",
45 | "format" -> "json"
46 | )
47 r: gigahorse.Request = Request(http://api.duckduckgo.com, GET, EmptyBody(), Map(), Map(q -> List(1 + 1), format -> List(json)), None, None, None, None, None, None)
49 scala> val f = http.run(r, { res: FullResponse =>
ddg.py (https://github.com/ibid/ibid.git) Python · 59 lines
duckduck.go (git://github.com/ajanicij/goduckgo.git) Go · 183 lines
README.markdown (https://github.com/VarioLabs/ddg-api.js.git) Markdown · 86 lines
searchengine_query.rb (https://bitbucket.org/King_DuckZ/assobiotech.git) Ruby · 82 lines
duckduckgo_definitions.py (https://gitlab.com/lanodan/searx.git) Python · 149 lines
MainViewController.swift (https://github.com/kiavashfaisali/KFSwiftImageLoader.git) Swift · 119 lines
services.py (https://github.com/keiffster/program-y.git) Python · 78 lines
knowledgeapi.service.ts (https://github.com/fossasia/susper.com.git) TypeScript · 80 lines
duckduck_test.go (git://github.com/ajanicij/goduckgo.git) Go · 66 lines
12 func TestQuery(t *testing.T) {
13 query := "New York City"
14 expectedUrl := "https://api.duckduckgo.com/?q=New+York+City&format=json&pretty=1"
15 expectedBody := `{
16 "Heading" : "New York City"
50 func TestEncodeUrl(t *testing.T) {
51 query := "!gi New York City"
52 expectedUrl := "https://api.duckduckgo.com/?q=%21gi+New+York+City&format=json&pretty=1&no_redirect=1"
54 url := EncodeUrl(query)
59 query = "New York City"
60 expectedUrl = "https://api.duckduckgo.com/?q=New+York+City&format=json&pretty=1"
61 url = EncodeUrl(query)
62 if url != expectedUrl {
01-concepts.md (https://github.com/eed3si9n/gigahorse.git) Markdown · 125 lines
64 ```console
65 scala> val r = Gigahorse.url("https://api.duckduckgo.com").get.
66 addQueryString(
67 "q" -> "1 + 1",
97 scala> import scala.concurrent._, duration._
98 scala> val http = Gigahorse.http(Gigahorse.config)
99 scala> val r = Gigahorse.url("https://api.duckduckgo.com").get.
100 addQueryString(
101 "q" -> "1 + 1"
duckduckgo.js (https://github.com/Gravebot/Gravebot.git) JavaScript · 92 lines
duckduckgo_definitions.py (https://github.com/entropage/mijisou.git) Python · 158 lines
03-processing.md (https://github.com/eed3si9n/gigahorse.git) Markdown · 91 lines
00.md (https://github.com/eed3si9n/gigahorse.git) Markdown · 88 lines
duckduck.go (git://github.com/ajanicij/goduckgo.git) Go · 112 lines
DuckDuckGoProvider.tsx (https://github.com/matrix-org/matrix-react-sdk.git) TypeScript · 109 lines
test_services.py (https://github.com/keiffster/program-y.git) Python · 103 lines
README.md (https://github.com/shivylp/radium.git) Markdown · 76 lines
duckduckgo.py (https://github.com/keiffster/program-y.git) Python · 86 lines
searching.js (https://github.com/mozilla/firefox-voice.git) JavaScript · 88 lines
31 export async function ddgEntitySearch(query) {
32 const response = await fetch(
33 `https://api.duckduckgo.com/?q=${encodeURIComponent(
34 query
35 )}&format=json&pretty=1&skip_disambig=1`
73 const bang = ddgBangServiceName(service);
74 const response = await fetch(
75 `https://api.duckduckgo.com/?q=!${encodeURIComponent(
76 bang
77 )}+${encodeURIComponent(query)}&format=json&pretty=1&no_redirect=1`
duckduckgo.go (https://github.com/shivylp/radium.git) Go · 73 lines
02-request.md (https://github.com/eed3si9n/gigahorse.git) Markdown · 121 lines
02-request.md (https://github.com/eed3si9n/gigahorse.git) Markdown · 122 lines
duckduck-answer.R (https://github.com/dirkschumacher/duckduckr.git) R · 115 lines
2 #'
3 #' Makes a synchronous API call to the DuckDuckGo Instant Answer API.
4 #' Take a look at DuckDuckGo's terms of use (\url{https://api.duckduckgo.com/api}) before using it.
5 #'
6 #' @param query the query string
10 #' @param app_name the appname used to identify your application.
11 #'
12 #' @seealso \url{https://api.duckduckgo.com/api} for more information on the API and their terms of use.
13 #'
14 #' @return Always returns a list. If the API call was successful it contains the response of
53 # construct the api call
54 client <- crul::HttpClient$new(url = "https://api.duckduckgo.com/")
55 query_params <- list(
56 q = query,
StoriesList.js (https://github.com/kiok46/duckduckgo.git) JavaScript · 63 lines
ddg.js (https://github.com/BitQuote/AwesomeBot.git) JavaScript · 20 lines
3 module.exports = (bot, db, config, winston, userDocument, serverDocument, channelDocument, memberDocument, msg, suffix, commandData) => {
4 if(suffix) {
5 unirest.get(`http://api.duckduckgo.com/?format=json&q=${encodeURIComponent(suffix)}`).header("Accept", "application/json").end(res => {
6 if(res.status==200) {
7 const data = JSON.parse(res.body);
timezone.js (https://github.com/RayzrDev/SharpBot.git) JavaScript · 54 lines
README.md (https://github.com/dirkschumacher/duckduckr.git) Markdown · 51 lines
server.js (https://github.com/jajoosam/wikibot.git) JavaScript · 58 lines
18 const twiml = new MessagingResponse();
19 if(req.body.Body.toLowerCase().trim()!="hi" && req.body.Body.toLowerCase().trim()!="hello" && req.body.Body.toLowerCase().trim()!="test" && req.body.Body.toLowerCase().trim()!="help"){
20 request('https://api.duckduckgo.com/?skip_disambig=1&format=json&pretty=1&q='+req.body.Body, function (error, response, body) {
21 body = JSON.parse(body)
22 console.log('body:', body["Abstract"]);
url_scrapping.sh (https://github.com/adon90/pentest_compilation.git) Shell · 27 lines
20 duckduckgo() {
22 token=$(curl -A "Mozilla/5.0 (Windows NT 10.0; WOW64; rv:67.0) Gecko/20100101 Firefox/67.0" "https://api.duckduckgo.com/?q=site%3A$1" -s | grep -Po "(?<=vqd=).*?(?=&)" | tail -1); curl -A "Mozilla/5.0 (Windows NT 10.0; WOW64; rv:67.0) Gecko/20100101 Firefox/67.0" "https://duckduckgo.com/d.js?q=site%3A$1&vqd=$token" -s | grep -Po "(?<=u\":\").*?(?=\")"
24 }
2015-06-26-learn-to-use-apis.html (https://gitlab.com/stephenjbarr/stephen-planetbarr-com) HTML · 93 lines
0.1.0.markdown (https://github.com/eed3si9n/gigahorse.git) Markdown · 25 lines
API.php (git://github.com/duckduckgo/php5-duckduckgo.git) PHP · 163 lines
README.md (git://github.com/ajanicij/goduckgo.git) Markdown · 104 lines
example_duckduckgo.html (https://github.com/pawelczak/EasyAutocomplete.git) HTML · 37 lines
duckduckgo.js (https://bitbucket.org/slimdll/botphp.git) JavaScript · 58 lines
Box.vue (https://github.com/paweljw/bookstore-frontend.git) Vue · 49 lines
Duckduckgo.hs (https://github.com/balsoft/lambda-launcher.git) Haskell · 56 lines
test_service.py (https://github.com/AndyLPK247/behavior-driven-python.git) Python · 41 lines
Full.vue (https://github.com/paweljw/bookstore-frontend.git) Vue · 75 lines
29 async pullImage () {
30 this.image = `http://via.placeholder.com/220x320?text=${encodeURIComponent(this.book.title)}`
31 const response = await fetch(`http://api.duckduckgo.com/?q=${encodeURIComponent(this.book.title)}&format=json&pretty=1`)
32 const json = await response.json()
33 if (json.Image) {
duckduckgo.py (https://github.com/jesopo/bitbot.git) Python · 26 lines
Box.vue (https://github.com/paweljw/bookstore-frontend.git) Vue · 44 lines
animal.js (https://gitlab.com/HonestidaMordaz/pet-store.git) JavaScript · 138 lines
api_hooks.py (https://github.com/th3r00t/pyShelf.git) Python · 35 lines
2015-06-26-learn-to-use-apis.org (https://gitlab.com/stephenjbarr/stephen-planetbarr-com) Org · 69 lines
duckduckgo.js (https://github.com/gildean/dunn.git) JavaScript · 87 lines
test_duckduckgo.py (https://github.com/cotobadesign/cotoba-agent-oss.git) Python · 46 lines
services.py (https://github.com/cotobadesign/cotoba-agent-oss.git) Python · 94 lines
search.py (https://github.com/chassing/irc3.git) Python · 51 lines
service.py (https://github.com/AndyLPK247/behavior-driven-python.git) Python · 36 lines
DuckDuckGo.pm (https://github.com/duckduckgo/p5-www-duckduckgo.git) Perl · 194 lines
16 is => 'ro',
17 lazy => 1,
18 default => sub { 'http://api.duckduckgo.com/' },
19 );
22 is => 'ro',
23 lazy => 1,
24 default => sub { 'https://api.duckduckgo.com/' },
25 );
165 =attr params
167 A HashRef of extra GET params to pass with the query (documented on https://api.duckduckgo.com/)
169 =head1 METHODS
duck.rb (https://github.com/tykeal/TykeBot.git) Ruby · 27 lines
example_duckduckgo.html (https://bitbucket.org/quickfinder/quickfinder-old.git) HTML · 37 lines
duckduckgo.py (https://bitbucket.org/pbui/bobbit) Python · 59 lines
abstract.coffee (https://github.com/NNA/hubot-scripts.git) CoffeeScript · 56 lines
duckduck.js (https://github.com/gcr/ips-lurker.git) JavaScript · 83 lines
13 // run cb(wittyResponse) when DDG returns something special
14 http
15 .createClient(80, 'api.duckduckgo.com')
16 .request('GET', '/?'+querystring.stringify(
17 {q: query, format: "json", no_redirect: 1, no_html: 1}
18 ),
19 {'host':'api.duckduckgo.com'})
20 .on('response', function(res) {
21 // response could come in more than one packet, so create a buffer
test_search.py (https://github.com/apertium/phenny.git) Python · 45 lines
Rakefile (https://github.com/andrewrjones/ruby-duck-duck-go.git) Rakefile · 93 lines
duckduckgo.py (https://github.com/ackwell/ninjabot.git) Python · 69 lines
search.py (https://github.com/apertium/phenny.git) Python · 97 lines
15 from web import catch_timeout, is_up, REQUEST_TIMEOUT
17 ddg_uri = 'https://api.duckduckgo.com/?format=json&pretty=1&q='
18 suggest_uri = 'http://suggestqueries.google.com/complete/search?client=firefox&hl=en&q='
24 def topics(phenny, input):
25 if not is_up('https://api.duckduckgo.com'):
26 return phenny.say('Sorry, DuckDuckGo API is down.')
51 query = input.group(1)
53 if not is_up('https://api.duckduckgo.com'):
54 return phenny.say('Sorry, DuckDuckGo API is down.')
opis.html (https://bitbucket.org/nejcv1998/nejcv1998.bitbucket.org.git) HTML · 98 lines
64 <ul>
65 <li>EHRScape API: uporabljen za dostopanje in shranjevanje podatkov bolnika. Uporabljen je naslov: <a href= https://rest.ehrscape.com/rest/v1>https://rest.ehrscape.com/rest/v1</a></li>
66 <li>DuckDuckGo API: uporabljen za iskanje posledic in predlaganje rešitev. Uporabljen je naslov <a href= https://api.duckduckgo.com/?q=DuckDuckGo&format=json>https://api.duckduckgo.com/?q=DuckDuckGo&format=json</a></li>
67 </ul>
68 </p>
ducky_search.rb (https://github.com/alexshook/ducky_search.git) Ruby · 40 lines
duckduckgo.py (git://github.com/Reisen/bruh.git) Python · 76 lines
PipeFilter.pm (https://github.com/rcaputo/app-pipefilter.git) Perl · 97 lines
calc.py (https://github.com/adiq/stah.git) Python · 72 lines
duck_duck_go.rb (https://github.com/andrewrjones/ruby-duck-duck-go.git) Ruby · 58 lines
Dictionary.java (https://github.com/cnr/Willie.git) Java · 86 lines
getDDG.java (https://github.com/atinsood/Iris-Voice-Automation.git) Java · 138 lines
duckduckgo.pl (https://github.com/prsquee/irssi-scripts.git) Perl · 38 lines
duck.py (https://github.com/crazedpsyc/crazedpsyc.git) Python · 52 lines
services.js (https://github.com/bartolini/angularjs.git) JavaScript · 24 lines
ddg.coffee (https://gitlab.com/raulhc/telegram-bot) CoffeeScript · 66 lines
5 # Busca no DuckDuckGo
6 # http://api.duckduckgo.com/?q=<query>&format=json&pretty=1
7 module.exports = ddg = (query, langs, callback=(->))->
8 logger "DDG Search for \"#{query}\", Open API..."
9 encQuery = encodeURIComponent query
10 url = 'http://api.duckduckgo.com/?format=json&q=' + encQuery
11 request(url, 'Accept-Language': ddg.mkAcceptLang langs)
12 .then (res)->
ddg.py (https://bitbucket.org/dwfreed/guppy.git) Python · 55 lines
Search.cs (https://github.com/cmpct/c-irc-bot.git) C# · 49 lines
services.js (https://gitlab.com/profound-software/infinity-bookmarks) JavaScript · 12 lines
duckduckgosearch.py (https://github.com/laramies/theHarvester.git) Python · 85 lines
define.py (https://github.com/xray7224/MegBot.git) Python · 45 lines
duck.rb (https://github.com/Ronovan/ruby-rails-jumpstart.git) Ruby · 33 lines
DuckDuckGo.pm (https://github.com/trapd00r/WWW-Search-DuckDuckGo.git) Perl · 117 lines
index.js (https://github.com/patrickjquinn/P-Brain.ai.git) JavaScript · 28 lines
duckduckgo.js (https://github.com/gf3/protobot.git) JavaScript · 37 lines
WebSearchClient.kt (https://github.com/fossasia/susi_android.git) Kotlin · 18 lines
App.cs (https://github.com/TheEightBot/Reactive-Examples.git) C# · 36 lines
duckduckgo.rb (https://github.com/Terminus-Project/Terminus-Bot.git) Ruby · 136 lines
DuckDuckGoSearch.java (https://github.com/amnotbot/amnotbot.git) Java · 73 lines
listing1.py (https://github.com/abulka/pynsource.git) Python · 18 lines
DuckDuckGoSearch.java (https://github.com/jmitchener/amnotbot.git) Java · 82 lines
DuckDuckGoSearchController.cs (https://github.com/bitcake/bitstrap.git) C# · 11 lines
seeds.js (https://gitlab.com/ctaloi/rest2ddp) JavaScript · 14 lines
search.py (https://github.com/dcbriccetti/python-lessons.git) Python · 5 lines
addNotableGroceryStores.rb (https://github.com/rantav/recipitor-frontend.git) Ruby · 7 lines
3 # >> Paste this long line
4 # condensed in one line for heroku's console; yuk
5 g = JSON.parse(IO.read('NotableGroceryStores.json')); g['map'].each { |k,v|; puts k; r = Net::HTTP.get 'api.duckduckgo.com', "/?q=#{URI.escape(k)}&o=json"; j = JSON.parse(r); url = nil; url = j['Results'][0]['FirstURL'] if j and j['Results'] and j['Results'][0]; StoreChain.create(:name => k, :url => url) and puts url}