Skip to main content
POST
/
companies
/
resolve
Resolve company ID
curl --request POST \
  --url https://app.tryspecter.com/api/v1/companies/resolve \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: <api-key>' \
  --data '
{
  "to_resolve": [
    {
      "domain": "tryspecter.com"
    },
    {
      "name": "Rippling"
    }
  ]
}
'
import requests

url = "https://app.tryspecter.com/api/v1/companies/resolve"

payload = { "to_resolve": [{ "domain": "tryspecter.com" }, { "name": "Rippling" }] }
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}

response = requests.post(url, json=payload, headers=headers)

print(response.text)
const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({to_resolve: [{domain: 'tryspecter.com'}, {name: 'Rippling'}]})
};

fetch('https://app.tryspecter.com/api/v1/companies/resolve', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));
<?php

$curl = curl_init();

curl_setopt_array($curl, [
CURLOPT_URL => "https://app.tryspecter.com/api/v1/companies/resolve",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'to_resolve' => [
[
'domain' => 'tryspecter.com'
],
[
'name' => 'Rippling'
]
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-API-Key: <api-key>"
],
]);

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

curl_close($curl);

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

import (
"fmt"
"strings"
"net/http"
"io"
)

func main() {

url := "https://app.tryspecter.com/api/v1/companies/resolve"

payload := strings.NewReader("{\n \"to_resolve\": [\n {\n \"domain\": \"tryspecter.com\"\n },\n {\n \"name\": \"Rippling\"\n }\n ]\n}")

req, _ := http.NewRequest("POST", url, payload)

req.Header.Add("X-API-Key", "<api-key>")
req.Header.Add("Content-Type", "application/json")

res, _ := http.DefaultClient.Do(req)

defer res.Body.Close()
body, _ := io.ReadAll(res.Body)

fmt.Println(string(body))

}
HttpResponse<String> response = Unirest.post("https://app.tryspecter.com/api/v1/companies/resolve")
.header("X-API-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"to_resolve\": [\n {\n \"domain\": \"tryspecter.com\"\n },\n {\n \"name\": \"Rippling\"\n }\n ]\n}")
.asString();
require 'uri'
require 'net/http'

url = URI("https://app.tryspecter.com/api/v1/companies/resolve")

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

request = Net::HTTP::Post.new(url)
request["X-API-Key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"to_resolve\": [\n {\n \"domain\": \"tryspecter.com\"\n },\n {\n \"name\": \"Rippling\"\n }\n ]\n}"

response = http.request(request)
puts response.read_body
[
  {
    "query": {
      "website_url": "<string>",
      "domain": "<string>",
      "linkedin_url": "<string>",
      "name": "<string>"
    },
    "matches": [
      {
        "id": "5e3a8f19040ca7b0c6f03082",
        "name": "Rippling",
        "hq": {
          "city": "London",
          "state": "England",
          "country": "United Kingdom",
          "region": "Europe",
          "continent": "Europe",
          "regions": [
            "London Metropolitan Area",
            "EMEA"
          ]
        },
        "match_confidence": 0.8,
        "domain": "rippling.com",
        "tagline": "Workforce management that unifies HR, IT, and finance.",
        "founded_year": 2016
      }
    ]
  }
]
{
"errorCode": "API_KEY_MISSING",
"message": "No API Key was presented on the header X-API-KEY"
}
{
"errorCode": "NOT_PERMITTED",
"message": "You do not have permission to access this resource."
}
{
"errorCode": "<string>",
"message": "<string>"
}

Authorizations

X-API-Key
string
header
required

Body

application/json

The identifiers to resolve.

to_resolve
CompanyResolveIdentifier · object[]
required
Required array length: 1 - 50 elements

Response

One result group per input identifier, in the same order as to_resolve.

query
CompanyResolveIdentifier · object
required

The (normalized) identifier this group resolves.

matches
object[]
required

Matching companies. Empty when nothing matched; several ranked candidates are possible for a name query.