DuckDuckGo Zero-click Info

ZeroClickInfo

zeroClick

SOur Zero-click Info API gives you free access to much of our topic summaries, categories, disambiguation, !bang redirects, definitions and more. .


/search

Usage and SDK Samples

curl -X GET -H "apieco-key: [[apiKey]]" "https://api.apieco.ir/duckduckgo/search?q=&no_html=&no_redirect=&callback=&skip_disambig="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.ZeroClickInfoApi;

import java.io.File;
import java.util.*;

public class ZeroClickInfoApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure API key authorization: apieco-key
        ApiKeyAuth apieco-key = (ApiKeyAuth) defaultClient.getAuthentication("apieco-key");
        apieco-key.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //apieco-key.setApiKeyPrefix("Token");

        ZeroClickInfoApi apiInstance = new ZeroClickInfoApi();
        BigDecimal apiecoKey = 8.14; // BigDecimal | 
        String q = q_example; // String | search terms
        BigDecimal noHtml = 8.14; // BigDecimal | 1 to remove HTML from text, e.g. bold and italics. 
        BigDecimal noRedirect = 8.14; // BigDecimal | 1 to skip HTTP redirects 
        String callback = callback_example; // String | Function to callback (for a JSONP formatted response). 
        BigDecimal skipDisambig = 8.14; // BigDecimal | 1 to skip disambiguation (D) Type. 
        try {
            apiInstance.zeroClick(apiecoKey, q, noHtml, noRedirect, callback, skipDisambig);
        } catch (ApiException e) {
            System.err.println("Exception when calling ZeroClickInfoApi#zeroClick");
            e.printStackTrace();
        }
    }
}
import io.swagger.client.api.ZeroClickInfoApi;

public class ZeroClickInfoApiExample {

    public static void main(String[] args) {
        ZeroClickInfoApi apiInstance = new ZeroClickInfoApi();
        BigDecimal apiecoKey = 8.14; // BigDecimal | 
        String q = q_example; // String | search terms
        BigDecimal noHtml = 8.14; // BigDecimal | 1 to remove HTML from text, e.g. bold and italics. 
        BigDecimal noRedirect = 8.14; // BigDecimal | 1 to skip HTTP redirects 
        String callback = callback_example; // String | Function to callback (for a JSONP formatted response). 
        BigDecimal skipDisambig = 8.14; // BigDecimal | 1 to skip disambiguation (D) Type. 
        try {
            apiInstance.zeroClick(apiecoKey, q, noHtml, noRedirect, callback, skipDisambig);
        } catch (ApiException e) {
            System.err.println("Exception when calling ZeroClickInfoApi#zeroClick");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];

// Configure API key authorization: (authentication scheme: apieco-key)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"apieco-key"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"apieco-key"];

BigDecimal *apiecoKey = 8.14; // 
String *q = q_example; // search terms
BigDecimal *noHtml = 8.14; // 1 to remove HTML from text, e.g. bold and italics.  (optional)
BigDecimal *noRedirect = 8.14; // 1 to skip HTTP redirects  (optional)
String *callback = callback_example; // Function to callback (for a JSONP formatted response).  (optional)
BigDecimal *skipDisambig = 8.14; // 1 to skip disambiguation (D) Type.  (optional)

ZeroClickInfoApi *apiInstance = [[ZeroClickInfoApi alloc] init];

// SOur Zero-click Info API gives you free access to much of our topic summaries, categories, disambiguation, !bang redirects, definitions and more. . 
[apiInstance zeroClickWith:apiecoKey
    q:q
    noHtml:noHtml
    noRedirect:noRedirect
    callback:callback
    skipDisambig:skipDisambig
              completionHandler: ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var DuckDuckGoZeroClickInfo_ = require('duck_duck_go_zero_click_info_');
var defaultClient = DuckDuckGoZeroClickInfo_.ApiClient.instance;

// Configure API key authorization: apieco-key
var apieco-key = defaultClient.authentications['apieco-key'];
apieco-key.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//apieco-key.apiKeyPrefix['apieco-key'] = "Token"

var api = new DuckDuckGoZeroClickInfo_.ZeroClickInfoApi()

var apiecoKey = 8.14; // {BigDecimal} 

var q = q_example; // {String} search terms

var opts = { 
  'noHtml': 8.14, // {BigDecimal} 1 to remove HTML from text, e.g. bold and italics. 
  'noRedirect': 8.14, // {BigDecimal} 1 to skip HTTP redirects 
  'callback': callback_example, // {String} Function to callback (for a JSONP formatted response). 
  'skipDisambig': 8.14 // {BigDecimal} 1 to skip disambiguation (D) Type. 
};

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.zeroClick(apiecoKey, q, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
{
    public class zeroClickExample
    {
        public void main()
        {
            
            // Configure API key authorization: apieco-key
            Configuration.Default.ApiKey.Add("apieco-key", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("apieco-key", "Bearer");

            var apiInstance = new ZeroClickInfoApi();
            var apiecoKey = 8.14;  // BigDecimal | 
            var q = q_example;  // String | search terms
            var noHtml = 8.14;  // BigDecimal | 1 to remove HTML from text, e.g. bold and italics.  (optional) 
            var noRedirect = 8.14;  // BigDecimal | 1 to skip HTTP redirects  (optional) 
            var callback = callback_example;  // String | Function to callback (for a JSONP formatted response).  (optional) 
            var skipDisambig = 8.14;  // BigDecimal | 1 to skip disambiguation (D) Type.  (optional) 

            try
            {
                // SOur Zero-click Info API gives you free access to much of our topic summaries, categories, disambiguation, !bang redirects, definitions and more. . 
                apiInstance.zeroClick(apiecoKey, q, noHtml, noRedirect, callback, skipDisambig);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling ZeroClickInfoApi.zeroClick: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: apieco-key
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('apieco-key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('apieco-key', 'Bearer');

$api_instance = new Swagger\Client\Api\ZeroClickInfoApi();
$apiecoKey = 8.14; // BigDecimal | 
$q = q_example; // String | search terms
$noHtml = 8.14; // BigDecimal | 1 to remove HTML from text, e.g. bold and italics. 
$noRedirect = 8.14; // BigDecimal | 1 to skip HTTP redirects 
$callback = callback_example; // String | Function to callback (for a JSONP formatted response). 
$skipDisambig = 8.14; // BigDecimal | 1 to skip disambiguation (D) Type. 

try {
    $api_instance->zeroClick($apiecoKey, $q, $noHtml, $noRedirect, $callback, $skipDisambig);
} catch (Exception $e) {
    echo 'Exception when calling ZeroClickInfoApi->zeroClick: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::ZeroClickInfoApi;

# Configure API key authorization: apieco-key
$WWW::SwaggerClient::Configuration::api_key->{'apieco-key'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'apieco-key'} = "Bearer";

my $api_instance = WWW::SwaggerClient::ZeroClickInfoApi->new();
my $apiecoKey = 8.14; # BigDecimal | 
my $q = q_example; # String | search terms
my $noHtml = 8.14; # BigDecimal | 1 to remove HTML from text, e.g. bold and italics. 
my $noRedirect = 8.14; # BigDecimal | 1 to skip HTTP redirects 
my $callback = callback_example; # String | Function to callback (for a JSONP formatted response). 
my $skipDisambig = 8.14; # BigDecimal | 1 to skip disambiguation (D) Type. 

eval { 
    $api_instance->zeroClick(apiecoKey => $apiecoKey, q => $q, noHtml => $noHtml, noRedirect => $noRedirect, callback => $callback, skipDisambig => $skipDisambig);
};
if ($@) {
    warn "Exception when calling ZeroClickInfoApi->zeroClick: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure API key authorization: apieco-key
swagger_client.configuration.api_key['apieco-key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['apieco-key'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.ZeroClickInfoApi()
apiecoKey = 8.14 # BigDecimal | 
q = q_example # String | search terms
noHtml = 8.14 # BigDecimal | 1 to remove HTML from text, e.g. bold and italics.  (optional)
noRedirect = 8.14 # BigDecimal | 1 to skip HTTP redirects  (optional)
callback = callback_example # String | Function to callback (for a JSONP formatted response).  (optional)
skipDisambig = 8.14 # BigDecimal | 1 to skip disambiguation (D) Type.  (optional)

try: 
    # SOur Zero-click Info API gives you free access to much of our topic summaries, categories, disambiguation, !bang redirects, definitions and more. . 
    api_instance.zero_click(apiecoKey, q, noHtml=noHtml, noRedirect=noRedirect, callback=callback, skipDisambig=skipDisambig)
except ApiException as e:
    print("Exception when calling ZeroClickInfoApi->zeroClick: %s\n" % e)

Parameters

Header parameters
Name Description
apieco-key*
BigDecimal
Required
Query parameters
Name Description
q*
String
search terms
Required
no_html
BigDecimal
1 to remove HTML from text, e.g. bold and italics.
no_redirect
BigDecimal
1 to skip HTTP redirects
callback
String
Function to callback (for a JSONP formatted response).
skip_disambig
BigDecimal
1 to skip disambiguation (D) Type.

Responses

Status: 200 - Succesfull

Status: 401 - wrong code

Status: 405 - Invalid input