curl --request GET \
--url https://api.tryfuse.ai/api/v1/business/companies/autocomplete \
--header 'Authorization: Basic <encoded-value>'import requests
url = "https://api.tryfuse.ai/api/v1/business/companies/autocomplete"
headers = {"Authorization": "Basic <encoded-value>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Basic <encoded-value>'}};
fetch('https://api.tryfuse.ai/api/v1/business/companies/autocomplete', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"field": "company",
"suggestions": [
{
"name": "BrightPay",
"domain": "brightpay.in"
},
{
"name": "BrightPay"
},
{
"name": "BrightPay Health Corp.",
"domain": "brightpay.org"
},
{
"name": "BrightPay Technologies Ltd."
},
{
"name": "BRIGHT PAYROLL LIMITED",
"domain": "brightstarpayroll.co.uk"
},
{
"name": "BRIGHT PAY LIMITED"
},
{
"name": "Bright Payroll Solutions Limited",
"domain": "brightps.co.uk"
}
]
}{
"error": {
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>",
"request_id": "<string>"
}
}Suggest values for company, location and state filters
Resolves free-text input to canonical company-filter values; two characters minimum. field=company returns company names with their domain when known — send name to nameLike, or domain to domains; add orgType=investor to search investors instead, whose domain is the value the investors filter takes. field=location returns fully qualified place names (“Dallas, Texas, United States”) which are exactly what the headquartersCity filter takes — the qualification is what lets the geocoder tell six same-named cities apart, so send the whole string. field=state returns state and province names (“Florida”, with its country) which are what the headquartersStateName filter takes: the same names the product’s HQ State picker offers, narrowed to the HQ countries in countries and away from those in excludedCountries (comma-separated apiCodes such as USA, or two-letter codes), up to 50, names that start with the text first. Note that officeLocationsV2 is a different filter and takes country apiCodes from GET /companies/filter-options, not these place names. Same vocabularies as the product’s type-aheads; free.
Errors:
422VALIDATION_FAILED— The request failed the declared schema;paramnames the offending key andmessagequotes the rule it broke.429RATE_LIMITED— Per-token rate limit for this bucket exhausted; retry after the window in the RateLimit-Reset header.500UNEXPECTED_ERROR— The request failed inside the service; nothing was billed and the request_id identifies the failure.
Requires one of the following token scopes: companies.
curl --request GET \
--url https://api.tryfuse.ai/api/v1/business/companies/autocomplete \
--header 'Authorization: Basic <encoded-value>'import requests
url = "https://api.tryfuse.ai/api/v1/business/companies/autocomplete"
headers = {"Authorization": "Basic <encoded-value>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Basic <encoded-value>'}};
fetch('https://api.tryfuse.ai/api/v1/business/companies/autocomplete', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"field": "company",
"suggestions": [
{
"name": "BrightPay",
"domain": "brightpay.in"
},
{
"name": "BrightPay"
},
{
"name": "BrightPay Health Corp.",
"domain": "brightpay.org"
},
{
"name": "BrightPay Technologies Ltd."
},
{
"name": "BRIGHT PAYROLL LIMITED",
"domain": "brightstarpayroll.co.uk"
},
{
"name": "BRIGHT PAY LIMITED"
},
{
"name": "Bright Payroll Solutions Limited",
"domain": "brightps.co.uk"
}
]
}{
"error": {
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>",
"request_id": "<string>"
}
}Authorizations
Query Parameters
company suggests company names (each with its domain when known); location suggests fully qualified place names (e.g. Dallas, Texas, United States) to send as headquartersCity values; state suggests state and province names (e.g. Florida) to send as headquartersStateName values.
company, location, state