Skip to main content
Version: 1.0.0

Quickstart Examples

This is a quickstart guide to our API. It will show you how to get started and how to use it to find information about companies and their supply chains.

info

To get the most from the API, we recommend briefly reading the FAQ to understand the concepts behind the data, especially clustering.

/companies/

You can use this endpoint to search for companies by name, city, country, website or identifier. Use the limit (defaults to 10) and offset parameters to paginate through the results.

tip

The default search options only search for parent companies of the clusters created and any company not in a cluster. To search for all companies in the database, use the include_subsidiaries=true parameter.

The response includes a number of important fields to help with matching:

FieldDescription
search_similarityIf a name is provided in the input, this returns the trigram similarity to the record.
count_suppliersThe number of suppliers in the database for the company.
count_customersThe number of customers in the database for the company.
cid_idThe identifier of the cluster the company belongs to.

A simple example

Request to search for companies by name.
curl -X 'GET' 'http://<api_url>/companies/?name=boeing' -H 'accept: application/json'
Response
{
"next": "http://<api_url>/companies/?limit=10&name=boeing&offset=10",
"previous": null,
"results": [
{
"search_similarity": 0.7,
"vid": "boeingco-63be9d9f-baba-4a40-9124-ea494dadc48e",
"cid_id": "boeing",
"name": "Boeing Co",
"domains": [
"boeing.com"
],
"websites": [
"https://www.boeing.com/"
],
"company_legal_name": "Boeing Co",
"description": "aerospace and defense manufacturer in the United States",
"count_supplier_evidence": 3094,
"count_customer_evidence": 5957,
"count_customers": 558,
"count_suppliers": 561,
...
}
...
]
}

Company Profile Lookup

/companies/{vid}/

Use this endpoint to get information about a specific company. The company is identified by its vid - a unique identifier we assign to each company in our database. Use the company search endpoint to find the vid for a company.

Here is a list of the fields on the company profile and their descriptions:

FieldDescription
vidThe unique identifier for the company.
cid_idThe identifier of the cluster the company belongs to.
nameThe name of the company. Where possible this is the legal name.
domainsA list of domains associated with the company.
websitesA list of websites associated with the company.
company_legal_nameThe legal name of the company.
descriptionA description of the company.
count_supplier_evidenceThe number of evidences in the database for the supply relationships.
count_customer_evidenceThe number of evidences in the database for the customer relationships.
count_customersThe number of customers in the database for the company.
count_suppliersThe number of suppliers in the database for the company.
identifiersA list of identifiers associated with the company.
domiciled_countryISO3166 long form of the country the company is domiciled in.
incorporated_countryISO3166 long form of the country the company is incorporated in.
incorporation_dateDate and time of company incorporation.
ipo_dateDate and time of company incorporation.
is_activeWhether the company is active.
is_freight_forwarderWhether the company is a freight forwarder.
is_publicWhether the company is publicly listed.
hq_phone_numberPhone number of the headquarters.
addressesA list of addresses associated with the company.

Company Suppliers & Customers

/companies/{vid}/suppliers/

/companies/{vid}/customers/

Use these endpoints to get a list of a company's suppliers or customers, ordered by the confidence of the relationship. Each item in the response list is a relationship terminating or originating at the vid company.

Notable fields in the response:

FieldDescription
supplierSubsection of the response with supplier fields.
relationshipSubsection of the response with fields regard the relationship confidence and date.
evidencesA list of evidence items that support the relationship.

A simple example

This example fetches suppliers for Amazon:

  • with a confidence score of 0.8 or higher
  • supported by evidence later than 1st January 2019.
Request to get a list of suppliers for a company.
curl -X 'GET' \
'http://<api_url>/companies/amazoncominc-db72624a-c1a5-4936-9459-eaf3fe7c7565/suppliers/?confidence_score=0.8&date=2019-01-01' \
-H 'accept: application/json'
Response
{
"next": "http://localhost:8000/companies/amazoncominc-db72624a-c1a5-4936-9459-eaf3fe7c7565/suppliers/?confidence_score=0.8&date=2019-01-01&limit=10&offset=10",
"previous": null,
"results": [
{
"supplier": {
"vid": "ultimateearsinc-c3de8a43-2424-4b11-8e0f-8d0b358984ea",
"name": "Ultimate Ears Inc",
"company_legal_name": "Ultimate Ears Inc",
"description": null,
"domains": [
"ultimateears.com"
],
"country": "United States",
"count_supplier_evidence": 5,
"count_customer_evidence": 6,
"count_customers": 3,
"count_suppliers": 4
},
"relationship": {
"confidence_score": 1,
"latest_relationship_date": "2022-10-27T00:00:00Z",
"relationship_type": "cluster_edge",
"relationship_id": "ultimateears-amazon-supply",
"edge_ids": [
"ultimateearsinc-c3de8a43-2424-4b11-8e0f-8d0b358984ea-amazoncominc-db72624a-c1a5-4936-9459-eaf3fe7c7565-supply"
]
},
"evidences": {
"evidence_types": [
"text"
]
}
},
...
]
}