Company to Domain API
Enrich any company data around the world using our Company to Domain API.
Here is the list of default parameters you can us
Parameters
Description
api_key required
This is your API key.
company required
Type: String
The name of the company about which you wish to obtain data.
location
Type: String
The location of the company.
phone_no
Type: Number
The phone number of the company.
get_more
Type: Boolean
Default Value: false
This parameter will allow you to get extra data about the company.
Note: Each Company to Domain API request will cost you 10 request credits if you use the 'get_more' parameter with a value of true; otherwise, it will take only one request credit.
cURL "https://api.enrichmentapi.io/company_to_domain?api_key=APIKEY&company=Somi+Somi&location=Frisco,Texas&get_more=true"const axios = require('axios');
axios.get('https://api.enrichmentapi.io/company_to_domain?api_key=APIKEY&company=Somi+Somi&location=Frisco,Texas&get_more=true')
.then(response => {
console.log(response.data);
})
.catch(error => {
console.log(error);
});import requests
payload = {'api_key': 'APIKEY', 'company':'Somi+Somi', 'location':'Frisco,Texas', 'get_more': 'true'}
resp = requests.get('https://api.enrichmentapi.io/company_to_domain', params=payload)
print (resp.text)try {
String url = "https://api.enrichmentapi.io/company_to_domain?api_key=APIKEY&company=Somi+Somi&location=Frisco,Texas&get_more=true";
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();
}require 'net/http'
require 'json'
params = {
:api_key => "APIKEY",
:company=> "Somi+Somi",
:location=> "Frisco,Texas",
:get_more=> "true"
}
uri = URI('https://api.enrichmentapi.io/company_to_domain')
uri.query = URI.encode_www_form(params)
website_content = Net::HTTP.get(uri)
print(website_content)<?php
$url = "https://api.enrichmentapi.io/company_to_domain?api_key=APIKEY&company=Somi+Somi&location=Frisco,Texas&get_more=true";
$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);{
"data": {
"name": "SOMISOMI",
"address": "9292 Warren Pkwy Suite 260, Frisco, TX 75035",
"phone": "(214) 390-2676",
"type": "Dessert shop",
"website": "https://www.somisomi.com/locations"
}
}Last updated