# Account API

Use this API to get info about your account. \
\
Here is the list of default parameters to be used with this API:&#x20;

|                            Parameter                            |      Description      |
| :-------------------------------------------------------------: | :-------------------: |
| <p>api\_key<br><br><mark style="color:red;">required</mark></p> | This is your API key. |

### API Example:

{% tabs %}
{% tab title="cURL" %}

```json
cURL "https://api.enrichmentapi.io/account_info?api_key=APIKEY"
```

{% endtab %}

{% tab title="Node JS" %}

```javascript
const axios = require('axios');

axios.get('https://api.enrichmentapi.io/account_info?api_key=APIKEY')
  .then(response => {
    console.log(response.data);
  })
  .catch(error => {
    console.log(error);
  });
```

{% endtab %}

{% tab title="Python" %}

```python
import requests
payload = {'api_key': 'APIKEY'}
resp = requests.get('https://api.enrichmentapi.io/account_info', params=payload)
print (resp.text)
```

{% endtab %}

{% tab title="Java" %}

```java
try {
 String url = "https://api.enrichmentapi.io/account_info?api_key=APIKEY";
 URL urlForGetRequest = new URL(url);
 String readLine = null;
 HttpURLConnection conection = (HttpURLConnection) urlForGetRequest.openConnection();
 conection.setRequestMethod("GET");
 int responseCode = conection.getResponseCode();
 if (responseCode == HttpURLConnection.HTTP_OK) {
 BufferedReader in = new BufferedReader(new InputStreamReader(conection.getInputStream()));
 StringBuffer response = new StringBuffer();
 while ((readLine = in.readLine()) != null) {
 response.append(readLine);
 }
 in.close();
 System.out.println(response.toString());
} else {
 throw new Exception("Error in API Call");
 }
} catch (Exception ex) {
 ex.printStackTrace();
}
```

{% endtab %}

{% tab title="Ruby" %}

```ruby
require 'net/http'
require 'json'
params = {
 :api_key => "APIKEY"
}
uri = URI('https://api.enrichmentapi.io/account_info')
uri.query = URI.encode_www_form(params)
website_content = Net::HTTP.get(uri)
print(website_content)
```

{% endtab %}

{% tab title="PHP" %}

```php
<?php
$url = "https://api.enrichmentapi.io/account_info?api_key=APIKEY";
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE);
curl_setopt($ch, CURLOPT_HEADER, FALSE);
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);
$response = curl_exec($ch);
curl_close($ch);
print_r($response);
```

{% endtab %}
{% endtabs %}

```json
{
    "api_key": "654652ea0a7a39d30bb23456",
    "email": "johndoe@gmail.com",
    "plan": "free",
    "quota": 50,
    "requests": 33,
    "requests_left": 17,
    "threads": 0,
    "threads_limit": 2,
    "threads_left": 2
}
```
