> For the complete documentation index, see [llms.txt](https://docs.emailwarrant.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.emailwarrant.com/example/javascript.md).

# JavaScript + JQuery

How to use Email Warrant with JavaScript + JQuery.

Below is an example of how to call the Email Warrant API using JavaScript + JQuery:

```javascript
// Request (GET https://api.emailwarrant.com/v1/verify.php)

jQuery.ajax({
    url: "https://api.emailwarrant.com/v1/verify.php",
    type: "GET",
    data: {
        "userID": "<USERID>",
        "apiKey": "<APIKEY>",
        "domain": "<DOMAIN>",
    },
})
.done(function(data, textStatus, jqXHR) {
    console.log("HTTP Request Succeeded: " + jqXHR.status);
    console.log(data);
})
.fail(function(jqXHR, textStatus, errorThrown) {
    console.log("HTTP Request Failed");
})
.always(function() {
    /* ... */
});



```

{% hint style="danger" %}
Call the Email Warrant API using Javascript in the browser will give away your API key and allow other to make API calls as you.
{% endhint %}

If you any issues getting set up with Email Warrant, please contact <support@emailwarrant.com>. We are always happy to help!
