PageRenderTime 67ms queryFilters 0ms Sphinxql 282ms GetByIds 497ms meta 0ms repositoryFilters 289ms languageFilters 0ms sourceFilters 0ms

394 results for 'api.duckduckgo.com' (67 ms)

Source

Language

Repository

duckduckgo.com.rb https://bitbucket.org/andey/bestofama.git | Ruby | 12 lines
4  include HTTParty
5  base_uri 'api.duckduckgo.com'
6
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    }
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");
api.tx https://github.com/nrw/duckduckgo-publisher.git | Unknown | 248 lines
22<a href="http://duckduckgo.com/?q=valley+forge+national+park">topic summaries</a> 
23(<a href="http://api.duckduckgo.com/?q=valley+forge+national+park&format=json&pretty=1">API example</a>), 
24<a href="http://duckduckgo.com/?q=simpsons+characters">categories</a>
24<a href="http://duckduckgo.com/?q=simpsons+characters">categories</a>
25(<a href="http://api.duckduckgo.com/?q=simpsons+characters&format=json&pretty=1">API example</a>), 
26<a href="http://duckduckgo.com/?q=apple">disambiguation</a>  
26<a href="http://duckduckgo.com/?q=apple">disambiguation</a>  
27(<a href="http://api.duckduckgo.com/?q=apple&format=json&pretty=1">API example</a>),
28and
29<a href="/bang.html">!bang redirects</a>
30(<a href="http://api.duckduckgo.com/?q=!imdb+rushmore&format=json&pretty=1&no_redirect=1">API example</a>).
31
52To consume it yourself, you can use one of the language libraries listed below or simply add '&format=json' (or xml if you have a death wish) onto any query URL in the api subdomain, e.g.
53<br><a href="http://api.duckduckgo.com/?q=DuckDuckGo&format=json&pretty=1">http://api.duckduckgo.com/?q=DuckDuckGo&format=json</a>  
54
duckduckgo.py https://bitbucket.org/pbui/bobbit | Python | 59 lines
10
11DUCKDUCKGO_URL = u'http://api.duckduckgo.com'
12DUCKDUCKGO_RE  = r'^!(ddg|duckduckgo)\s+'
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.factor git://github.com/mrjbq7/re-factor.git | Unknown | 82 lines
11: search-url ( query -- url )
12    URL" http://api.duckduckgo.com"
13        swap "q" set-query-param
duckduckgo.js https://github.com/johnkpaul/protobot.git | JavaScript | 38 lines
9DuckDuckGo.prototype.search = function( query, cloudback ) {
10  exec("curl 'http://api.duckduckgo.com/?format=json&q=" + escape( query ) + "'", function ( err, stdout, stderr ) {
11    var results = JSON.parse( stdout ) // What could possibly go wrong?
duckduckgo.json https://github.com/timcameronryan/rem-js.git | Unknown | 11 lines
4
5    "base": "https://api.duckduckgo.com",
6    "params": {
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 git://github.com/myano/jenni.git | Python | 230 lines
146    #query = web.urllib.quote(query)
147    uri = 'https://api.duckduckgo.com/?q=%s&format=json&no_html=1&no_redirect=1&kp=-1' % query
148    results = proxy.get(uri)
ddg.go git://github.com/whee/ddg.git | Go | 222 lines
114	// BaseURL specifies where to send API requests. If zero-value,
115	// "api.duckduckgo.com" is used.
116	BaseURL string
150	if c.BaseURL == "" {
151		c.BaseURL = "api.duckduckgo.com"
152	}
search.rb git://github.com/jsn/rbot.git | Ruby | 518 lines
25
26DDG_API_SEARCH = "http://api.duckduckgo.com/?format=xml&no_html=1&skip_disambig=1&no_redirect=0&q="
27
update.rake https://bitbucket.org/andey/bestofama.git | Ruby | 100 lines
1namespace :update do
2
3  # Update Ops rankings statistics
4  task :op => :environment do
5
6    # select Op
7    @op = Op.where(:comment_karma => 0, :wikipedia_hits => 0).first
8    @op ||= Op.order(:updated_at).first
9    @op.touch
10    puts "UPDATE ENTITY: #{@op.name}"
11
12    url = @op.links.where(:site_id => 1).first
13
14    #acquire
15    if url
search.py https://github.com/myano/jenni.git | Python | 345 lines
238    query = web.urllib.quote(query)
239    uri = 'https://api.duckduckgo.com/?q=%s&format=json&no_html=1&no_redirect=1&kp=-1' % query
240    results = web.get(uri)
calc.py https://github.com/myano/jenni.git | Python | 267 lines
145                #### Attempt #3 (DuckDuckGo's API)
146                ddg_uri = 'https://api.duckduckgo.com/?format=json&q='
147                ddg_uri += urllib.quote(q)
calc.py git://github.com/myano/jenni.git | Python | 256 lines
104            #### Attempt #2 (DuckDuckGo's API)
105            ddg_uri = 'https://api.duckduckgo.com/?format=json&q='
106            ddg_uri += urllib.quote(q)
Links.pm https://github.com/8dx/duckduckgo-roboduck.git | Perl | 112 lines
19    "searchbox" => "https://duckduckgo.com/search_box.html",
20    "api"       => "https://api.duckduckgo.com/",
21    "homepage"  => "https://duckduckgo.com/",
2012-12-13.pod git://github.com/rjbs/Perl-Advent.git | Unknown | 171 lines
31
32 $ adenosine 'http://api.duckduckgo.com/?q=*&o=json'
33
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()
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20