PageRenderTime 68ms queryTime 44ms sortTime 0ms getByIdsTime 11ms findMatchingLines 4ms

70+ results for 'api.duckduckgo.com' (68 ms)

Not the results you expected?
search.py https://gitlab.com/hekel/sopel-extras-pandorah | Python | 158 lines
                    
66    query = quote_plus(query)
                    
67    uri = 'https://api.duckduckgo.com/?q=%s&format=json&no_html=1&no_redirect=1' % query
                    
68    results = json.loads(web.get(uri))
                    
                
gigahorse-030.md https://github.com/eed3si9n/eed3si9n.com.git | Markdown | 63 lines
                    
41```scala
                    
42scala> val r = Gigahorse.url("http://api.duckduckgo.com").get.
                    
43     |           addQueryString(
                    
46     |           )
                    
47r: gigahorse.Request = Request(http://api.duckduckgo.com, GET, EmptyBody(), Map(), Map(q -> List(1 + 1), format -> List(json)), None, None, None, None, None, None)
                    
48
                    
                
gigahorse-030.ja.md https://github.com/eed3si9n/eed3si9n.com.git | Markdown | 64 lines
                    
41```scala
                    
42scala> val r = Gigahorse.url("http://api.duckduckgo.com").get.
                    
43     |           addQueryString(
                    
46     |           )
                    
47r: gigahorse.Request = Request(http://api.duckduckgo.com, GET, EmptyBody(), Map(), Map(q -> List(1 + 1), format -> List(json)), None, None, None, None, None, None)
                    
48
                    
                
gigahorse-010.ja.md https://github.com/eed3si9n/eed3si9n.com.git | Markdown | 119 lines
                    
36scala> Gigahorse.withHttp(Gigahorse.config) { http =>
                    
37         val r = Gigahorse.url("http://api.duckduckgo.com").get.
                    
38           addQueryString(
                    
                
gigahorse-010.md https://github.com/eed3si9n/eed3si9n.com.git | Markdown | 118 lines
                    
36scala> Gigahorse.withHttp(Gigahorse.config) { http =>
                    
37         val r = Gigahorse.url("http://api.duckduckgo.com").get.
                    
38           addQueryString(
                    
                
getDDG.java https://github.com/mivanov/Iris-Voice-Automation.git | Java | 138 lines
                    
99			xQuery = URLEncoder.encode(Query,"UTF-8");
                    
100			ddgURL = "http://api.duckduckgo.com/?q="+xQuery+"&format=json";
                    
101			
                    
                
abstract.coffee https://github.com/subakva/hubot-scripts.git | CoffeeScript | 55 lines
                    
27  robot.respond /(abs|abstract) (.+)/i, (res) ->
                    
28    abstract_url = "http://api.duckduckgo.com/?format=json&q=#{encodeURIComponent(res.match[2])}"
                    
29    res.http(abstract_url)
                    
                
abstract.coffee https://github.com/dbarbar/hubot-scripts.git | CoffeeScript | 55 lines
                    
27  robot.respond /(abs|abstract) (.+)/i, (res) ->
                    
28    abstract_url = "http://api.duckduckgo.com/?format=json&q=#{encodeURIComponent(res.match[2])}"
                    
29    res.http(abstract_url)
                    
                
abstract.coffee https://github.com/russelldavis/hubot-scripts.git | CoffeeScript | 55 lines
                    
27  robot.respond /(abs|abstract) (.+)/i, (res) ->
                    
28    abstract_url = "http://api.duckduckgo.com/?format=json&q=#{encodeURIComponent(res.match[2])}"
                    
29    res.http(abstract_url)
                    
                
abstract.coffee https://github.com/markomanninen/hubot-scripts-1.git | CoffeeScript | 55 lines
                    
27  robot.respond /(abs|abstract) (.+)/i, (res) ->
                    
28    abstract_url = "http://api.duckduckgo.com/?format=json&q=#{encodeURIComponent(res.match[2])}"
                    
29    res.http(abstract_url)
                    
                
getDDG.java https://github.com/lipka/Iris-Voice-Automation.git | Java | 138 lines
                    
99			xQuery = URLEncoder.encode(Query,"UTF-8");
                    
100			ddgURL = "http://api.duckduckgo.com/?q="+xQuery+"&format=json";
                    
101			
                    
                
abstract.coffee https://github.com/bnowel/hubot-scripts.git | CoffeeScript | 45 lines
                    
17  robot.respond /(abs|abstract) (.+)/i, (res) ->
                    
18    abstract_url = "http://api.duckduckgo.com/?format=json&q=#{encodeURIComponent(res.match[2])}"
                    
19    res.http(abstract_url)
                    
                
abstract.coffee https://github.com/ssoriche/hubot-scripts.git | CoffeeScript | 55 lines
                    
27  robot.respond /(abs|abstract) (.+)/i, (res) ->
                    
28    abstract_url = "http://api.duckduckgo.com/?format=json&q=#{encodeURIComponent(res.match[2])}"
                    
29    res.http(abstract_url)
                    
                
abstract.coffee https://github.com/janx/hubot-scripts.git | CoffeeScript | 55 lines
                    
27  robot.respond /(abs|abstract) (.+)/i, (res) ->
                    
28    abstract_url = "http://api.duckduckgo.com/?format=json&q=#{encodeURIComponent(res.match[2])}"
                    
29    res.http(abstract_url)
                    
                
duckduck.go git://github.com/ajanicij/goduckgo.git | Go | 183 lines
                    
16
                    
17var baseUrl = "https://api.duckduckgo.com/?q=%s&format=json&pretty=1%s"
                    
18
                    
                
abstract.coffee https://github.com/erikzaadi/hubot-scripts.git | CoffeeScript | 45 lines
                    
17  robot.respond /(abs|abstract) (.+)/i, (res) ->
                    
18    abstract_url = "http://api.duckduckgo.com/?format=json&q=#{encodeURIComponent(res.match[2])}"
                    
19    res.http(abstract_url)
                    
                
abstract.coffee https://github.com/rickyc/hubot-scripts.git | CoffeeScript | 45 lines
                    
17  robot.respond /(abs|abstract) (.+)/i, (res) ->
                    
18    abstract_url = "http://api.duckduckgo.com/?format=json&q=#{encodeURIComponent(res.match[2])}"
                    
19    res.http(abstract_url)
                    
                
abstract.coffee https://gitlab.com/0072016/github-adsbot-app | CoffeeScript | 45 lines
                    
17  robot.respond /(abs|abstract) (.+)/i, (res) ->
                    
18    abstract_url = "http://api.duckduckgo.com/?format=json&q=#{encodeURIComponent(res.match[2])}"
                    
19    res.http(abstract_url)
                    
                
searchengine_query.rb https://bitbucket.org/King_DuckZ/assobiotech.git | Ruby | 82 lines
                    
57	def getDuckDuckGoApiQuery()
                    
58		return "https://api.duckduckgo.com/?q=#{getCleanText(@searchTerm)}&format=json&pretty=0"
                    
59	end
                    
                
duckduck.go git://github.com/ajanicij/goduckgo.git | Go | 183 lines
                    
16
                    
17var baseUrl = "https://api.duckduckgo.com/?q=%s&format=json&pretty=1%s"
                    
18
                    
                
abstract.coffee https://github.com/anfleene/hubot-scripts.git | CoffeeScript | 45 lines
                    
17  robot.respond /(abs|abstract) (.+)/i, (res) ->
                    
18    abstract_url = "http://api.duckduckgo.com/?format=json&q=#{encodeURIComponent(res.match[2])}"
                    
19    res.http(abstract_url)
                    
                
abstract.coffee https://github.com/jodosha/hubot-scripts.git | CoffeeScript | 55 lines
                    
27  robot.respond /(abs|abstract) (.+)/i, (res) ->
                    
28    abstract_url = "http://api.duckduckgo.com/?format=json&q=#{encodeURIComponent(res.match[2])}"
                    
29    res.http(abstract_url)
                    
                
abstract.coffee https://github.com/searls/hubot-scripts.git | CoffeeScript | 45 lines
                    
17  robot.respond /(abs|abstract) (.+)/i, (res) ->
                    
18    abstract_url = "http://api.duckduckgo.com/?format=json&q=#{encodeURIComponent(res.match[2])}"
                    
19    res.http(abstract_url)
                    
                
duckduckgo_definitions.py https://gitlab.com/lanodan/searx.git | Python | 149 lines
                    
6
                    
7url = 'https://api.duckduckgo.com/'\
                    
8    + '?{query}&format=json&pretty=0&no_redirect=1&d=1'
                    
                
abstract.coffee https://github.com/stuartf/hubot-scripts.git | CoffeeScript | 45 lines
                    
17  robot.respond /(abs|abstract) (.+)/i, (res) ->
                    
18    abstract_url = "http://api.duckduckgo.com/?format=json&q=#{encodeURIComponent(res.match[2])}"
                    
19    res.http(abstract_url)
                    
                
abstract.coffee https://github.com/Aupajo/hubot-scripts.git | CoffeeScript | 48 lines
                    
20  robot.respond /(abs|abstract) (.+)/i, (res) ->
                    
21    abstract_url = "http://api.duckduckgo.com/?format=json&q=#{encodeURIComponent(res.match[2])}"
                    
22    res.http(abstract_url)
                    
                
duckduck_test.go git://github.com/ajanicij/goduckgo.git | Go | 66 lines
                    
13	query := "New York City"
                    
14	expectedUrl := "https://api.duckduckgo.com/?q=New+York+City&format=json&pretty=1"
                    
15	expectedBody := `{
                    
51	query := "!gi New York City"
                    
52	expectedUrl := "https://api.duckduckgo.com/?q=%21gi+New+York+City&format=json&pretty=1&no_redirect=1"
                    
53
                    
59	query = "New York City"
                    
60	expectedUrl = "https://api.duckduckgo.com/?q=New+York+City&format=json&pretty=1"
                    
61	url = EncodeUrl(query)
                    
                
duckduckgo.cpp git://pkgs.fedoraproject.org/kdeplasma-addons | C++ | 170 lines
                    
43
                    
44    KUrl url = KUrl("http://api.duckduckgo.com/?q=futurama+characters&format=json&pretty=1");
                    
45       // "http://api.duckduckgo.com/?q=define+ostensibly&format=json&pretty=1");
                    
                
duckduck.go git://github.com/ajanicij/goduckgo.git | Go | 112 lines
                    
94	query_enc := url.QueryEscape(query)
                    
95	ddgurl := fmt.Sprintf("http://api.duckduckgo.com?q=%s&format=json&pretty=1", query_enc)
                    
96	resp, err := http.Get(ddgurl)
                    
                
search.py https://bitbucket.org/ebarrier/botnet-sopel.git | Python | 158 lines
                    
66    query = quote_plus(query)
                    
67    uri = 'https://api.duckduckgo.com/?q=%s&format=json&no_html=1&no_redirect=1' % query
                    
68    results = json.loads(web.get(uri))
                    
                
abstract.coffee git://github.com/github/hubot-scripts.git | CoffeeScript | 45 lines
                    
17  robot.respond /(abs|abstract) (.+)/i, (res) ->
                    
18    abstract_url = "http://api.duckduckgo.com/?format=json&q=#{encodeURIComponent(res.match[2])}"
                    
19    res.http(abstract_url)
                    
                
2015-06-26-learn-to-use-apis.html https://gitlab.com/stephenjbarr/stephen-planetbarr-com | HTML | 93 lines
                    
36
                    
37r = requests.get(<span style="color: #8b2252;">'http://api.duckduckgo.com/'</span>, params = payload)
                    
38r.url
                    
                
API.php git://github.com/duckduckgo/php5-duckduckgo.git | PHP | 163 lines
                    
25    /**
                    
26     * The API base URL. This defaults to api.duckduckgo.com.
                    
27     */
                    
58        $this->noDisambiguations = FALSE;
                    
59        $this->baseURL = 'api.duckduckgo.com';
                    
60    }
                    
                
helper.js https://gitlab.com/jhta/.myconfig.git | JavaScript | 251 lines
                    
14const DUCKDUCKGO_API_URL = 
                    
15    "https://api.duckduckgo.com/?format=json&no_redirect=1"+
                    
16    "&skip_disambig=1&q=";
                    
                
README.md git://github.com/ajanicij/goduckgo.git | Markdown | 104 lines
                    
14
                    
15[http://api.duckduckgo.com/?q=New+York+City&format=json&pretty=1](http://api.duckduckgo.com/?q=New+York+City&format=json&pretty=1)
                    
16
                    
                
search.py https://github.com/mutantmonkey/phenny.git | Python | 200 lines
                    
139def duck_api(query):
                    
140    uri = 'https://api.duckduckgo.com/?q=%s&format=json&no_redirect=1' % query
                    
141    bytes = web.get(uri)
                    
                
duckduckgo.js https://bitbucket.org/slimdll/botphp.git | JavaScript | 58 lines
                    
22  const query = match.query
                    
23  const _base = 'http://api.duckduckgo.com/?format=json&q='
                    
24  const _url = url.parse(_base + encodeURIComponent(query))
                    
                
animal.js https://gitlab.com/HonestidaMordaz/pet-store.git | JavaScript | 138 lines
                    
34      return reqwest({
                    
35        url: "https://api.duckduckgo.com/",
                    
36        data: {
                    
                
faq.md https://gitlab.com/Guy1394/duckduckgo-documentation | Markdown | 170 lines
                    
55
                    
56### Why isn't my Instant Answer in the [DuckDuckGo Instant Answers API](https://api.duckduckgo.com)?
                    
57
                    
89
                    
90Yes! Check out the [DuckDuckGo API](https://api.duckduckgo.com). Our goal is to make as many Instant Answers as possible
                    
91available through this interface. Fathead and goodie Instant Answers are automatically syndicated through the API, and Spice and Longtail are selectively (due to licensing complications) mixed in.
                    
                
2015-06-26-learn-to-use-apis.org https://gitlab.com/stephenjbarr/stephen-planetbarr-com | Org | 69 lines
                    
34
                    
35r = requests.get('http://api.duckduckgo.com/', params = payload)
                    
36r.url
                    
                
duckduckgo.js https://github.com/gildean/dunn.git | JavaScript | 87 lines
                    
65                var options = {
                    
66                    hostname: 'api.duckduckgo.com',
                    
67                    path: qPath
                    
                
DuckDuckGo.pm https://github.com/duckduckgo/p5-www-duckduckgo.git | Perl | 194 lines
                    
17	lazy => 1,
                    
18	default => sub { 'http://api.duckduckgo.com/' },
                    
19);
                    
23	lazy => 1,
                    
24	default => sub { 'https://api.duckduckgo.com/' },
                    
25);
                    
166
                    
167A HashRef of extra GET params to pass with the query (documented on https://api.duckduckgo.com/)
                    
168
                    
                
index.html https://github.com/victusfate/Image-Matrix.git | HTML | 246 lines
                    
177                        + "&callback=?";
                    
178                // var apiurl = "http://api.duckduckgo.com/?q=" + encodeURIComponent(key) + "&format=json&callback=?";
                    
179                CreateImagesWithUrl(apiurl, bindex, key);
                    
                
duckduck.js https://github.com/gcr/ips-lurker.git | JavaScript | 83 lines
                    
14  http
                    
15    .createClient(80, 'api.duckduckgo.com')
                    
16    .request('GET', '/?'+querystring.stringify(
                    
18      ),
                    
19      {'host':'api.duckduckgo.com'})
                    
20    .on('response', function(res) {
                    
                
__init__.py https://bitbucket.org/khagesh93/search-skill.git | Python | 178 lines
                    
31    # Let's define the class objects here.
                    
32    ddg_topic_summaries_endpoint = "https://api.duckduckgo.com/?q={}&format=json&pretty=1"
                    
33    ddg_search_topic_details_endpoint = "{}?ia=about&format=json"
                    
                
duckduckgo.py https://bitbucket.org/pbui/bobbit | Python | 59 lines
                    
10
                    
11DUCKDUCKGO_URL = u'http://api.duckduckgo.com'
                    
12DUCKDUCKGO_RE  = r'^!(ddg|duckduckgo)\s+'
                    
                
PipeFilter.pm https://github.com/ingydotnet/app-pipefilter.git | Perl | 91 lines
                    
30
                    
31  curl -s 'http://api.duckduckgo.com/?q=poe&o=json' |
                    
32  jsonpath -o '$..Topics.*.FirstURL' -o '$..Topics.*.Text' |
                    
                
search.py https://gitlab.com/daniellawrence/sopel | Python | 133 lines
                    
66    query = quote_plus(query)
                    
67    uri = 'http://api.duckduckgo.com/?q=%s&format=json&no_html=1&no_redirect=1' % query
                    
68    results = json.loads(web.get(uri))
                    
                
Rakefile https://github.com/andrewrjones/ruby-duck-duck-go.git | Rakefile | 93 lines
                    
82  http = HTTPClient.new
                    
83  json = http.get_content('http://api.duckduckgo.com/', args)
                    
84  ruby = JSON.parse(json)
                    
                
abstract.coffee https://github.com/NNA/hubot-scripts.git | CoffeeScript | 56 lines
                    
27  robot.respond /(abs|abstract) (.+)/i, (res) ->
                    
28    abstract_url = "http://api.duckduckgo.com/?format=json&q=#{encodeURIComponent(res.match[2])}"
                    
29    res.http(abstract_url)
                    
                
opis.html https://bitbucket.org/nejcv1998/nejcv1998.bitbucket.org.git | HTML | 98 lines
                    
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>
                    
                
PipeFilter.pm https://github.com/rcaputo/app-pipefilter.git | Perl | 97 lines
                    
36
                    
37  curl -s 'http://api.duckduckgo.com/?q=poe&o=json' |
                    
38  jsonpath -o '$..Topics.*.FirstURL' -o '$..Topics.*.Text' |
                    
                
duckduckgo.py git://github.com/Reisen/bruh.git | Python | 76 lines
                    
49    request = Request(
                    
50        'https://api.duckduckgo.com/?{}'.format(urlencode({
                    
51            'q': msg,
                    
                
main.py https://github.com/akshaytyagi/quantum.git | Python | 189 lines
                    
32    t=l.replace (" ", "+")        
                    
33    link="http://api.duckduckgo.com/?q="+t+"&format=json&pretty=1"
                    
34    try:
                    
                
duck_duck_go.rb https://github.com/andrewrjones/ruby-duck-duck-go.git | Ruby | 58 lines
                    
18    
                    
19    API_URL = 'http://api.duckduckgo.com/'
                    
20    API_URL_SECURE = 'https://api.duckduckgo.com/'
                    
                
duckduckgo.pl https://github.com/prsquee/irssi-scripts.git | Perl | 38 lines
                    
16  my ($server, $chan, $searchme) = @_;
                    
17  my $query = 'https://api.duckduckgo.com/?q='
                    
18            . uri_encode($searchme)
                    
                
duck.py https://github.com/crazedpsyc/crazedpsyc.git | Python | 52 lines
                    
46class conf: # a quick class to simulate the configuration module for running without DOSprompt
                    
47    search_engine = {'name': 'DuckDuckGo', 'url': 'https://api.duckduckgo.com/?q=%s&o=json'}
                    
48    
                    
                
ddg.py https://bitbucket.org/dwfreed/guppy.git | Python | 55 lines
                    
42            request = "+".join(args)
                    
43            sock = urllib.request.urlopen("http://api.duckduckgo.com/?q=%s&o=json" % request)
                    
44            data = sock.read()
                    
                
services.js https://gitlab.com/profound-software/infinity-bookmarks | JavaScript | 12 lines
                    
6})
                    
7.factory('DuckDuckGo', function($resource) { //http://api.duckduckgo.com/?q=DuckDuckGo&format=json&pretty=1
                    
8  return $resource(relay.url,{"api":"duckduckgo","format":"json"});
                    
                
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
                    
7module.exports = ddg = (query, langs, callback=(->))->
                    
9  encQuery = encodeURIComponent query
                    
10  url = 'http://api.duckduckgo.com/?format=json&q=' + encQuery
                    
11  request(url, 'Accept-Language': ddg.mkAcceptLang langs)
                    
                
duckduckgosearch.py https://github.com/laramies/theHarvester.git | Python | 85 lines
                    
15        self.database = 'https://duckduckgo.com/?q='
                    
16        self.api = 'https://api.duckduckgo.com/?q=x&format=json&pretty=1'  # Currently using API.
                    
17        self.quantity = '100'
                    
                
getDDG.java https://github.com/samirahmed/Iris-Voice-Automation.git | Java | 138 lines
                    
99			xQuery = URLEncoder.encode(Query,"UTF-8");
                    
100			ddgURL = "http://api.duckduckgo.com/?q="+xQuery+"&format=json";
                    
101			
                    
                
example_duckduckgo.html https://bitbucket.org/quickfinder/quickfinder-old.git | HTML | 37 lines
                    
18			url: function(phrase) { 
                    
19				return phrase !== "" ? "http://api.duckduckgo.com/?q=" + phrase + "&format=json" : "http://api.duckduckgo.com/?q=empty&format=json";
                    
20			},
                    
                
seeds.js https://gitlab.com/ctaloi/rest2ddp | JavaScript | 14 lines
                    
3    collectionName: "duckDuckGoSearchMeteor",
                    
4    restUrl: "http://api.duckduckgo.com/?q=meteor&format=json&pretty=1",
                    
5    jsonPath: "$.RelatedTopics.*",
                    
                
search.py https://github.com/dcbriccetti/python-lessons.git | Python | 5 lines
                    
3search_arg = 'Guido von Rossum'
                    
4response = requests.get('https://api.duckduckgo.com/?q=%s&format=json&pretty=1' % search_arg).json()
                    
5print('From {}: {}'.format(response['AbstractSource'], response['Abstract']))
                    
                
addNotableGroceryStores.rb https://github.com/rantav/recipitor-frontend.git | Ruby | 7 lines
                    
4# condensed in one line for heroku's console; yuk
                    
5g = 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}
                    
6
                    
                
duckduckgo.com.rb https://bitbucket.org/andey/bestofama.git | Ruby | 12 lines
                    
4  include HTTParty
                    
5  base_uri 'api.duckduckgo.com'
                    
6
                    
                
duckduckgo.py https://bitbucket.org/agiliq/searchapi | Python | 17 lines
                    
7	def __init__(self):
                    
8		self.end_point='http://api.duckduckgo.com/?q='
                    
9	
                    
                
DuckDuckGo.php https://github.com/bobdia/COLibrary.git | PHP | 35 lines
                    
11
                    
12	public $url = 'http://api.duckduckgo.com/';
                    
13
                    
                
duckduckgo-parse.go https://github.com/sbhackerspace/sbhx-snippets.git | Go | 27 lines
                    
12const (
                    
13	DDG_API_BASE_URL   = "api.duckduckgo.com"
                    
14	DDG_API_URL        = "http://api.duckduckgo.com/?q=%s&format=json"
                    
14	DDG_API_URL        = "http://api.duckduckgo.com/?q=%s&format=json"
                    
15	DDG_API_URL_SECURE = "https://api.duckduckgo.com/?q=%s&format=json"
                    
16	DEBUG = true
                    
                
 

Source

Language