Piloterr

Extract key company fields

Read the industry, size, headquarters and specialities.

This is the documented example response for domain=guideflow.com (logo_url shortened):

{
  "founded": null,
  "funding": null,
  "tagline": "Guide your users into the flow 🐤",
  "website": "https://guideflow.com",
  "industry": "Software Development",
  "logo_url": "https://media.licdn.com/dms/image/v2/…/guideflow_logo",
  "locations": [
    "Union St San Francisco, California, US",
    "Avenue de la Grande Armée Paris, Île-de-France, FR"
  ],
  "company_id": 87238155,
  "company_url": "https://www.linkedin.com/company/guideflow",
  "description": "Create interactive demos & step-by-step guides to boost your productivity & conversion rate with Guideflow.",
  "headquarter": {
    "city": "San Francisco",
    "line1": "Union St",
    "country": "US",
    "postal_code": null
  },
  "staff_count": 20,
  "staff_range": "10-50",
  "company_name": "Guideflow",
  "specialities": null,
  "follower_count": 1832
}

Not every field comes back for every company. In this domain lookup, posts and employees are absent (the endpoint's query example for Ferrari includes them), and specialities, founded, and postal_code are null. Treat every field as optional. This code continues the script from Look up a company by domain:

hq           = company.get("headquarter") or {}
specialities = company.get("specialities") or []

print(f"Company   : {company.get('company_name')}")
print(f"Industry  : {company.get('industry')}")
print(f"Employees : {company.get('staff_count')} ({company.get('staff_range')})")
print(f"Website   : {company.get('website')}")
print(f"HQ        : {hq.get('city')}, {hq.get('country')}")
print(f"Topics    : {', '.join(specialities[:5])}")