LinkedIn API for Company Directory
Update: There is now an official API: https://developer-programs.linkedin.com/documents/company-search
The official API does not seem to have this feature. However they do have a URL where you can pass in a search for companies and it will return a JSON response with the company name, logo URL, number of employees, and a link to the company profile.
For instance a search of "citr" would be
http://www.linkedin.com/ta/federator?query=citr&types=company,group,sitefeature
Which returns
{
"sitefeature":{
"resultList":[
]
},
"company":{
"resultList":[
{
"id":"1195260",
"headLine":"<strong>CiTR<\/strong> SHINDIG",
"displayName":"CiTR SHINDIG",
"subLine":"Entertainment; 1-10 employees",
"url":"http://www.linkedin.com/companies/1195260"
},
{
"id":"2641",
"headLine":"<strong>Citr<\/strong>ix Systems",
"imageUrl":"http://media03.linkedin.com/mpr/mpr/shrink_40_40/p/3/000/043/32b/0076ade.png",
"displayName":"Citrix Systems",
"subLine":"Computer Software; 1001-5000 employees",
"url":"http://www.linkedin.com/companies/2641"
},
{
"id":"7659",
"headLine":"<strong>Citr<\/strong>oen",
"imageUrl":"http://media01.linkedin.com/mpr/mpr/shrink_40_40/p/3/000/01d/3d0/277c145.png",
"displayName":"Citroen",
"subLine":"Automotive; 10,001+ employees",
"url":"http://www.linkedin.com/companies/7659"
},
{
"id":"260214",
"headLine":"PSA Peugeot <strong>Citr<\/strong>oën",
"imageUrl":"http://media02.linkedin.com/mpr/mpr/shrink_40_40/p/2/000/021/0b7/07c4193.png",
"displayName":"PSA Peugeot Citroën",
"subLine":"Automotive; 10,001+ employees",
"url":"http://www.linkedin.com/companies/260214"
},
...
Is it possible to search for a person or company in LinkedIn's API?
LinkedIn has limited its API access some time ago. See the details. Inorder to do a person search you should get vetted API access from linkedin
Linkedin Company Search API : Get All Counts
According to LinkedIn API Documentation
count: The number of jobs to return. Values can range between 0 and
110. The default value is 10. The total results available to any user depends on their account level.
And according to Python LinkedIn Documentation example (although, this is not a search_company
, but search_job
method, this solution should also work for search_company
):
application.search_job(selectors=[{'jobs': ['id',
'customer-job-code',
'posting-date']}],
params={'title': 'python', 'count': 2})
# Output
{u'jobs': {u'_count': 2,
u'_start': 0,
u'_total': 206747,
u'values': [{u'customerJobCode': u'0006YT23WQ',
u'id': 5174636,
u'postingDate': {u'day': 21, u'month': 3, u'year': 2013}},
{u'customerJobCode': u'00023CCVC2',
u'id': 5174634,
u'postingDate': {u'day': 21, u'month': 3, u'year': 2013}}]}}
You should pass params
dictionary with count
key.
Getting all public basic profile information from Linkedin API
The current linkedin api I think only works for its own profile. There's not an API for retrieve information of the other profiles, you'll need write your own scraper
Related Topics
How to Add to a Serialized Array
Why Is Rake Not Able to Invoke Multiple Tasks Consecutively
Notices for Sequence After Running Migration in Rails on Postgresql Application
Combine Array of Array into All Possible Combinations, Forward Only, in Ruby
How to Enable Tls V1.2 in Ruby? If So, How
Ruby Gems Returns "Command Not Found"
Homebrew Installation on MAC Os X Failed to Connect to Raw.Githubusercontent.Com Port 443
How to Easily Parse a Url with Parameters in a Rails Test
How to Robustly Parse Malformed CSV
Why Can't I Access a Local Variable Inside a Method in Ruby
How to Read a File from Bottom to Top in Ruby
Activerecord::Connectiontimeouterror
Railstutorial - Chapter 8.4.3 - Test Database Not Clearing After Adding User in Integration Test
What Does "||=" Do in Ruby 1.9.2
When Did "Assigned But Unused" Become a Warning for Ruby
Ruby | Find a Way to Find an Exception on the Same Word to Capitalize