# IP to Company

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

```bash
cURL 'https://api.enrich.so/v1/api/ip-to-company-lookup?ip=86.92.60.221' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json'
```

{% endtab %}

{% tab title="Javascript" %}

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

axios.get('https://api.enrich.so/v1/api/ip-to-company-lookup?ip=86.92.60.221', {
    headers: {accept: 'application/json', Authorization: 'Bearer <token>'}
})
  .then(response => {
    console.log(response.data);
  })
  .catch(error => {
    console.log(error);
  });// Some code
```

{% endtab %}

{% tab title="Python" %}

```python
import requests
payload = {'ip': '86.92.60.221'}
headers = {'accept': 'application/json', 'authorization': 'Bearer <token>'}
resp = requests.get('https://api.enrich.so/v1/api/ip-to-company-lookup', params=payload, headers=headers)
print (resp.text)
```

{% endtab %}

{% tab title="Java" %}

```java
OkHttpClient client = new OkHttpClient();

Request request = new Request.Builder()
  .url("https://api.enrich.so/v1/api/ip-to-company-lookup?ip=86.92.60.221")
  .get()
  .addHeader("accept", "application/json")
  .addHeader("authorization", "Bearer <token>")
  .build();

Response response = client.newCall(request).execute();
```

{% endtab %}

{% tab title="Ruby" %}

```ruby
require 'uri'
require 'net/http'

url = URI("https://api.enrich.so/v1/api/ip-to-company-lookup?ip=86.92.60.221")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["accept"] = 'application/json'
request["authorization"] = 'Bearer <token>'

response = http.request(request)
puts response.read_body
```

{% endtab %}

{% tab title="Php" %}

```php
<?php

$curl = curl_init();

curl_setopt_array($curl, [
  CURLOPT_URL => "https://api.enrich.so/v1/api/ip-to-company-lookup?ip=86.92.60.221",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "GET",
  CURLOPT_HTTPHEADER => [
    "accept: application/json",
    "authorization: Bearer <token>"
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
```

{% endtab %}
{% endtabs %}

## Example response

#### Status Code: <mark style="color:green;">200 OK</mark>

```json
{
    "success": true,
    "message": "Company record found.",
    "data": {
        "_id": "123abc456def789ghi012jkl",
        "id": "9b67c123-8a45-4321-b567-890abcdef123",
        "name": "Tech Innovations Ltd",
        "legalName": "Tech Innovations Limited",
        "domain": "techinnovations.com",
        "domainAliases": [
            "techinnovations.com",
            "innovate.tech"
        ],
        "site": {
            "phoneNumbers": [
                "+1 123-456-7890"
            ],
            "emailAddresses": [
                "info@techinnovations.com"
            ]
        },
        "category": {
            "sector": "Technology",
            "industryGroup": "Software Services",
            "industry": "Custom Software Development",
            "subIndustry": "Enterprise Solutions",
            "gicsCode": "45103010",
            "sicCode": "7371",
            "sic4Codes": "737103",
            "naicsCode": "541511",
            "naics6Codes": "541511",
            "naics6Codes2022": "541511"
        },
        "tags": [
            "Software Development",
            "Enterprise Solutions"
        ],
        "description": "Empowering businesses with cutting-edge technology solutions. From custom software development to enterprise-grade applications, we deliver excellence at every stage.\n\nOur expertise:\n- Tailored software solutions for diverse industries.\n- Comprehensive enterprise IT strategies.\n- Agile development with seamless delivery.\n\nGet in touch at hello@techinnovations.com or call us at +1 123-456-7890.",
        "foundedYear": 2015,
        "location": "Austin, Texas, USA",
        "timeZone": "CST",
        "utcOffset": -6,
        "geo": {
            "streetNumber": "123",
            "streetName": "Innovation Lane",
            "subPremise": "Suite 456",
            "streetAddress": "123 Innovation Lane, Suite 456",
            "city": "Austin",
            "postalCode": "73301",
            "state": "Texas",
            "stateCode": "TX",
            "country": "United States",
            "countryCode": "US",
            "lat": 30.2672,
            "lng": -97.7431
        },
        "logo": "https://techinnovations.com/logo.png",
        "facebook": {
            "handle": "https://www.facebook.com/TechInnovations"
        },
        "linkedin": {
            "handle": "https://linkedin.com/company/techinnovations"
        },
        "twitter": {
            "handle": "@TechInnovate"
        },
        "crunchbase": {
            "handle": "https://www.crunchbase.com/organization/tech-innovations"
        },
        "emailProvider": false,
        "type": "private",
        "identifiers": {
            "duns": "123456789",
            "ein": "98-7654321"
        },
        "phone": "+1 123-456-7890",
        "metrics": {
            "alexaGlobalRank": 452341,
            "trafficRank": "12345",
            "employees": 50,
            "employeesRange": "11-50",
            "raised": 10000000,
            "estimatedAnnualRevenue": "1-10M"
        },
        "indexedAt": "2025-01-01T12:00:00Z",
        "tech": [
            "react",
            "node.js",
            "aws",
            "google_analytics",
            "apache",
            "docker",
            "kubernetes"
        ],
        "techCategories": [
            "Cloud Infrastructure",
            "Web Development"
        ],
        "parent": {
            "id": "789parent123",
            "name": "Tech Innovations Group"
        },
        "ultimateParent": {
            "id": "456ultimate789",
            "name": "Global Tech Holdings"
        },
        "createdAt": "2025-01-01T12:00:00Z",
        "updatedAt": "2025-01-01T12:00:00Z"
    },
    "total_credits": 200000,
    "credits_used": 5000.50,
    "credits_remaining": 195000.50
}
```
