AnleitungenEinen Lead mit LinkedIn anreichern
Die wichtigsten Unternehmensfelder extrahieren
Lesen Sie Branche, Größe, Hauptsitz und Spezialgebiete.
Dies ist die dokumentierte Beispielantwort für domain=guideflow.com (logo_url gekürzt):
{
"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
}Nicht jedes Feld wird für jedes Unternehmen zurückgegeben. Bei dieser Domain-Abfrage fehlen posts und employees (das query-Beispiel des Endpunkts für Ferrari enthält sie), und specialities, founded und postal_code sind null. Behandeln Sie jedes Feld als optional. Dieser Code setzt das Skript aus Ein Unternehmen anhand der Domain nachschlagen fort:
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])}")