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

# Person API

Here is the list of default parameters you can use with this API:

|                              Parameters                             |                                            Description                                           |
| :-----------------------------------------------------------------: | :----------------------------------------------------------------------------------------------: |
|   <p>api\_key<br><br><mark style="color:red;">required</mark></p>   |                                       This is your API key.                                      |
| <p>linkedin\_id<br><br><mark style="color:red;">required</mark></p> | <p>Type: <code>String</code><br><br>The ID of the person about whom you wish to scrape data.</p> |

**Note: Each Person API request will cost you 10 request credit.**

### API Example:

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

```json
cURL "https://api.enrichmentapi.io/person?api_key=APIKEY&linkedin_id=satyanadella"
```

{% endtab %}

{% tab title="Node JS" %}

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

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

{% endtab %}

{% tab title="Python" %}

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

{% endtab %}

{% tab title="Java" %}

```java
try {
 String url = "https://api.enrichmentapi.io/person?api_key=APIKEY&linkedin_id=satyanadella";
 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",
 :linkedin_id=> "satyanadella"
}
uri = URI('https://api.enrichmentapi.io/person')
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/person?api_key=APIKEY&linkedin_id=satyanadella";
$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 %}
