# CVE Search API ### Queries | Type | Query Example | Type | | ---------------- | -------------- | ------ | | CVE ID | CVE-1999-0001 | String | | keyword | prisma | String | | Keyword and Year | aws\&year=2020 | String | ### API Details | Type | URL | | -------------- | ---------------------------------------------------- | | Landing | | | CVE ID | | | Keyword | | | Keyword & Year | | ### **API Keys** **We've enabled API Keys on our service. Below is a demo API key for testing our service!** [Contact us](mailto:api-key@cvesearch.com) to get your custom key :closed\_lock\_with\_key:
Demo API Key {% code fullWidth="false" %} ``` IpKH1FJ7lw5Canu8cvA5T2AGsLdivGjt2PDm09Uz ``` {% endcode %}
### **Example** {% tabs %} {% tab title="cURL" %} ``` curl --header 'X-Api-Key: API_KEY' --location --request GET 'api.cvesearch.com/search?q=CVE-2019-0708' ``` {% endtab %} {% tab title="Python" %} ``` import requests url = "https://api.cvesearch.com/search?q=CVE-2019-0708" payload={} headers = { 'X-Api-Key': 'API_KEY' } response = requests.request("GET", url, headers=headers, data=payload) print(response.text) ``` {% endtab %} {% tab title="JavaScript - Fetch" %} ``` var myHeaders = new Headers(); myHeaders.append("X-Api-Key", "API_KEY"); var requestOptions = { method: 'GET', headers: myHeaders, redirect: 'follow' }; fetch("api.cvesearch.com/search?q=CVE-2019-0708", requestOptions) .then(response => response.text()) .then(result => console.log(result)) .catch(error => console.log('error', error)); ``` {% endtab %} {% tab title="Go" %} ``` package main import ( "fmt" "net/http" "io/ioutil" ) func main() { url := "api.cvesearch.com/search?q=CVE-2019-0708" method := "GET" client := &http.Client { } req, err := http.NewRequest(method, url, nil) if err != nil { fmt.Println(err) return } req.Header.Add("X-Api-Key", "API_KEY") res, err := client.Do(req) if err != nil { fmt.Println(err) return } defer res.Body.Close() body, err := ioutil.ReadAll(res.Body) if err != nil { fmt.Println(err) return } fmt.Println(string(body)) } ``` {% endtab %} {% endtabs %} ### Community Support Consider :coffee: [supporting ](https://www.buymeacoffee.com/cvesearch)the service to keep it free and available to the community