Retrieve a company page
direct.lempile.com/api/v1/linkedin/company/{identifier}A company page by its public identifier, id, urn or link (one LinkedIn call). Its employees: POST /linkedin/search with category: people and company: [id].
Authentication
X-API-KEY header·A Lempile Direct key, one per workspace, made in Lempile's dashboard.Path parameters
identifierstringrequiredThe company's public identifier (
example-co), id (1035), urn or link.
Query parameters
account_idstringrequiredThe account that reads: a Lempile LinkedIn account id (
GET /accountslists them).
Responses
200OK
›
application/json
objectstringrequiredAlwaysCompanyProfileidstringrequiredThe company's id (digits).
namestringrequireddescriptionstringrequiredentity_urnstringrequiredpublic_identifierstringrequiredprofile_urlstringrequiredtaglinestringfollowers_countintegeris_followingbooleanis_employeebooleanhashtagsarray of objectrequired›Show fieldsHide fields
titlestringrequired
messagingobjectrequired›Show fieldsHide fields
is_enabledbooleanrequiredAlways
false: LinkedIn's page answer names no messaging setting.idstringentity_urnstring
claimedbooleanrequiredviewer_permissionsobjectrequiredEach
truefor the page's admins,falsefor anyone else.›Show fieldsHide fields
canMembersInviteToFollowbooleancanReadContentSuggestionsbooleancanReadMessagesbooleancanUpdateOrganizationProfilebooleancanCreateOrganicSharebooleancanReadAdminDashboardbooleancanReadOrganizationActivitybooleancanEditCuratorsbooleancanManageOrganizationalPageFollowbooleancanReadOrganizationFollowerAnalyticsbooleancanInviteMemberToFollowbooleancanReadOrganizationLeadsAnalyticsbooleancanEditPendingAdministratorsbooleancanManageMessagingAccessbooleancanSeeEmployeeExperienceAsMemberbooleancanEmployeesInviteToFollowbooleancanSeeOrganizationAdministrativePagebooleancanManageAdminRolesbooleancanEditOrganizationDetailsbooleancanApproveContentbooleancanViewTeamPerformancebooleancanManageOrganizationSettingsbooleancanAccessAdvancedAnalyticsbooleancanModerateCommentsbooleancanCreateAdsbooleancanManageAdBudgetsbooleancanEditPageThemebooleancanPublishNewslettersbooleancanEditCustomTabsbooleancanManageIntegrationsbooleancanAssignRolesbooleancanApprovePendingMembersbooleancanEditCareerPageSettingsbooleancanViewBillingInformationboolean
organization_typestring | nullrequiredOne ofPUBLIC_COMPANYEDUCATIONALSELF_EMPLOYEDGOVERNMENT_AGENCYNON_PROFITSELF_OWNEDPRIVATELY_HELDPARTNERSHIPnulllocationsarray of objectrequired›Show fieldsHide fields
is_headquarterbooleanrequiredcountrystringrequiredcitystringrequiredpostalCodestringstreetarray of stringrequireddescriptionstringareastring
logostringindustryarray of stringactivitiesarray of stringThe page's specialties.
employee_countintegeremployee_count_rangeobject›Show fieldsHide fields
fromintegerrequiredtointegerrequired
websitestringfoundation_datestringphonestringacquired_byobject›Show fieldsHide fields
idstringrequirednamestringrequiredpublic_identifierstringrequiredprofile_urlstringrequired
400A required parameter missing (errors/missing_parameters), or one that isn't valid (errors/invalid_parameters, errors/invalid_url, errors/content_too_large).
›
errors/missing_parameters), or one that isn't valid (errors/invalid_parameters, errors/invalid_url, errors/content_too_large).application/json
titlestringrequiredA short title, e.g.
Too many requests.detailstringrequiredWhat happened, in plain words. Never an account's data.
typestringrequiredUnipile's error type:
errors/<kind>. Branch on this, not ondetail.statusintegerrequiredThe HTTP status again.
retry_afterintegerSeconds to wait before trying this account again. Only on 429; the
Retry-Afterheader carries the same value.
401errors/missing_credentials: the X-API-KEY header is missing, wrong or revoked. errors/disconnected_account: LinkedIn signed the account out (or asks it for a security check); reconnect it.
›
errors/missing_credentials: the X-API-KEY header is missing, wrong or revoked. errors/disconnected_account: LinkedIn signed the account out (or asks it for a security check); reconnect it.application/json
titlestringrequiredA short title, e.g.
Too many requests.detailstringrequiredWhat happened, in plain words. Never an account's data.
typestringrequiredUnipile's error type:
errors/<kind>. Branch on this, not ondetail.statusintegerrequiredThe HTTP status again.
retry_afterintegerSeconds to wait before trying this account again. Only on 429; the
Retry-Afterheader carries the same value.
403LinkedIn refused it for this account (errors/resource_access_restricted, errors/account_restricted, errors/action_required), or the account doesn't write through Direct (errors/insufficient_permissions), or it needs Sales Navigator or Recruiter (errors/feature_not_subscribed).
›
errors/resource_access_restricted, errors/account_restricted, errors/action_required), or the account doesn't write through Direct (errors/insufficient_permissions), or it needs Sales Navigator or Recruiter (errors/feature_not_subscribed).application/json
titlestringrequiredA short title, e.g.
Too many requests.detailstringrequiredWhat happened, in plain words. Never an account's data.
typestringrequiredUnipile's error type:
errors/<kind>. Branch on this, not ondetail.statusintegerrequiredThe HTTP status again.
retry_afterintegerSeconds to wait before trying this account again. Only on 429; the
Retry-Afterheader carries the same value.
404errors/resource_not_found: an unknown or removed account, an account of another workspace (answered exactly the same), or nothing on LinkedIn with this id.
›
errors/resource_not_found: an unknown or removed account, an account of another workspace (answered exactly the same), or nothing on LinkedIn with this id.application/json
titlestringrequiredA short title, e.g.
Too many requests.detailstringrequiredWhat happened, in plain words. Never an account's data.
typestringrequiredUnipile's error type:
errors/<kind>. Branch on this, not ondetail.statusintegerrequiredThe HTTP status again.
retry_afterintegerSeconds to wait before trying this account again. Only on 429; the
Retry-Afterheader carries the same value.
429errors/too_many_requests: LinkedIn asked the account to slow down (it rests 15 minutes), its daily calls or writes are used up, or it's busy with other calls. Wait retry_after seconds.
›
errors/too_many_requests: LinkedIn asked the account to slow down (it rests 15 minutes), its daily calls or writes are used up, or it's busy with other calls. Wait retry_after seconds.application/json
titlestringrequiredA short title, e.g.
Too many requests.detailstringrequiredWhat happened, in plain words. Never an account's data.
typestringrequiredUnipile's error type:
errors/<kind>. Branch on this, not ondetail.statusintegerrequiredThe HTTP status again.
retry_afterintegerSeconds to wait before trying this account again. Only on 429; the
Retry-Afterheader carries the same value.
500errors/provider_error: LinkedIn answered something Direct couldn't read (nothing was written). errors/unexpected_error: Direct failed.
›
errors/provider_error: LinkedIn answered something Direct couldn't read (nothing was written). errors/unexpected_error: Direct failed.application/json
titlestringrequiredA short title, e.g.
Too many requests.detailstringrequiredWhat happened, in plain words. Never an account's data.
typestringrequiredUnipile's error type:
errors/<kind>. Branch on this, not ondetail.statusintegerrequiredThe HTTP status again.
retry_afterintegerSeconds to wait before trying this account again. Only on 429; the
Retry-Afterheader carries the same value.
501errors/feature_not_implemented: Direct doesn't do this (yet). A Unipile client can fall back to Unipile.
›
errors/feature_not_implemented: Direct doesn't do this (yet). A Unipile client can fall back to Unipile.application/json
titlestringrequiredA short title, e.g.
Too many requests.detailstringrequiredWhat happened, in plain words. Never an account's data.
typestringrequiredUnipile's error type:
errors/<kind>. Branch on this, not ondetail.statusintegerrequiredThe HTTP status again.
retry_afterintegerSeconds to wait before trying this account again. Only on 429; the
Retry-Afterheader carries the same value.
503errors/network_down: the account's proxy or browser server didn't answer. Nothing was sent.
›
errors/network_down: the account's proxy or browser server didn't answer. Nothing was sent.application/json
titlestringrequiredA short title, e.g.
Too many requests.detailstringrequiredWhat happened, in plain words. Never an account's data.
typestringrequiredUnipile's error type:
errors/<kind>. Branch on this, not ondetail.statusintegerrequiredThe HTTP status again.
retry_afterintegerSeconds to wait before trying this account again. Only on 429; the
Retry-Afterheader carries the same value.
504errors/request_timeout: LinkedIn didn't answer in time. On a write: an unknown outcome (it may have been sent); it's never retried and its Idempotency-Key never writes again.
›
errors/request_timeout: LinkedIn didn't answer in time. On a write: an unknown outcome (it may have been sent); it's never retried and its Idempotency-Key never writes again.application/json
titlestringrequiredA short title, e.g.
Too many requests.detailstringrequiredWhat happened, in plain words. Never an account's data.
typestringrequiredUnipile's error type:
errors/<kind>. Branch on this, not ondetail.statusintegerrequiredThe HTTP status again.
retry_afterintegerSeconds to wait before trying this account again. Only on 429; the
Retry-Afterheader carries the same value.
Was this page helpful?