Piloterr

Look up a company by domain

Fetch a company's page from its website domain.

Pass the company's website domain to the domain parameter. If you already have the LinkedIn page, pass its URL, slug, or numeric ID to query instead. The two parameters are mutually exclusive.

import os
import requests

API_KEY = os.environ["PILOTERR_API_KEY"]

response = requests.get(
    "https://api.piloterr.com/v2/linkedin/company/info",
    headers={"x-api-key": API_KEY},
    params={"domain": "guideflow.com"},
)
if response.status_code != 200:
    raise SystemExit(f"Error {response.status_code}: {response.text}")

company = response.json()
print(company)