Company to Domain API
Convert a company name to its website domain. Optionally filter by location or phone number. Use get_more=true for full company profile data.
Endpoint:
https://api.enrichmentapi.io/company_to_domainAPI Parameters
🔑
Authentication
api_keyRequiredYour API key from the dashboard.
🔍
Query Parameters
companyRequiredThe company name to search for.locationOptionalFilter by geographic area (city, state, or country).phone_noOptionalFilter by business phone number.get_moreOptionalSet to true to return additional company data. Costs 10 credits (default: false = 1 credit).
API Examples
Code to Integrate
import requests api_key = "YOUR_API_KEY" url = "https://api.enrichmentapi.io/name-to-domain" params = { "api_key": api_key, "company_name": "Acme Corporation" } response = requests.get(url, params=params) if response.status_code == 200: print(response.json())
const axios = require('axios'); axios.get('https://api.enrichmentapi.io/name-to-domain', { params: { api_key: 'YOUR_API_KEY', company_name: 'Acme Corporation' } }).then(res => console.log(res.data)) .catch(err => console.error(err.message));
<?php $api_key = 'YOUR_API_KEY'; $name = urlencode('Acme Corporation'); $url = "https://api.enrichmentapi.io/name-to-domain?api_key={$api_key}&company_name={$name}"; $data = json_decode(file_get_contents($url), true); print_r($data);
API Response
{
"company_name": "Acme Corporation",
"domain": "acmecorp.com",
"confidence": 0.97,
"website": "https://www.acmecorp.com",
"industry": "Software",
"location": "San Francisco, CA, USA",
"alternatives": [
"acme.com",
"acme-corp.com"
]
}