Industry guru Dave Taylor offers tech support on technical and business topics, including iPhone, iPod, Microsoft Windows, Sony PSP, cellphones, online advertising, CSS, Web design, business, Unix, Linux, SEO, Mac OS X, and shell script programming.     


Can I create a LinkedIn company search feature for my site?

I've been building a reference site for use inside my company and am wondering if there's any way to hack LinkedIn so that we can have a LinkedIn search box for individuals who work in our company? Yeah, we should have a company directory, but the boss is a huge LinkedIn fan...


Dave's Answer:

Well, that's a novel use of LinkedIn. You do realize that each person who uses the search will have different results, because it's their LinkedIn account that will be used as the basis of how LinkedIn will actually present the results, right? And that the people whose records match will still have mostly non-functional data entries for your employee because if you aren't linked to someone you can't see most of their profile?

I don't quite understand your logic here, but I can still show you how to reverse engineer the LinkedIn people search and create what you seek nonetheless.

The easiest way to accomplish this seems like it would be the basic people search that you see on the top right of most LinkedIn pages:

linkedin search people

However, it's not a freeform box a la Google, so you can't do a search like "company:Microsoft name:smith,john", so in fact it won't work. Instead, we're left having to explore the far more complicated "Advanced Search", which is easily reached by clicking on "Advanced". Now we're in more sophisticated territory:

linkedin advanced people search

Before we crack open the hood and look inside, though, let's try doing a search and see if we can reverse the URL instead. I'm skeptical this will work because of the sheer number of variables involved, but let's see. I'm going to specify a search for lastname = Taylor, company = Boeing and the constraint that it's the current company only.

The resultant URL:

http://www.linkedin.com/search?search=&lname=taylor&distance=-1&newnessType=Y&company=boeing&viewCriteria=1¤tCompany=co&searchLocationType=Y&proposalType=Y&pplSearchOrigin=ADVS&sortCriteria=Relevance

Rather to my surprise, this does work! You can see that last name is "lname", company is "company" and that "currentCompany" is the restriction parameter. Nice!

My first question at this point is whether we can simply delete all the other criteria and have it work properly:

http://www.linkedin.com/search?lname=taylor&company=boeing¤tCompany=co

Nope. Too much removed and the search didn't work.

Through some experimentation, I have ascertained that this is the minimal set of criteria needed to be specified for the search to work:

http://www.linkedin.com/search?search=&lname=taylor&distance=-1&company=boeing¤tCompany=co

Now it's a matter of figuring out which of these values we want to let vary and which we want to keep constant. We also need to add a first name option, which proves to be "fname", no surprise.

Unwrapping everything, we now know that we need:

  • "search=" -- to have it work properly
  • "lname=last name" -- the last name we're using as a search value
  • "distance=-1" -- since there's no default value for distance from our location, "-1" specifies that LinkedIn should ignore geographic constraints.
  • "company=company name" -- this will be a set value, the name of your company.
  • "currentCompany=co" -- constrains search to just people who work at the company today, not those that have worked there in the past.
There's one more thing we can ascertain from examining this URL: the address of the search engine itself. That's everything before the "?" in the URL: "http://www.linkedin.com/search".

Now we can create our own rough HTML form that uses hidden variables for things we don't want to vary and regular text input boxes for those we do:

<form method="get" action="http://www.linkedin.com/search">
<input type="hidden" name="search" value="" />
firstname: <input type="text" name="fname" />
&nbsp; &nbsp;
lastname: <input type="text" name="lname" />
<input type="hidden" name="distance" value="-1" />
<input type="hidden" name="company" value="boeing" />
<input type="hidden" name="currentCompany" value="co" />
<input type="submit" value="search LinkedIn" />
</form>

It looks like this:


firstname:     lastname:  

It's not pretty, but if you try it you'll find that it does indeed work as a simple way to search for Boeing employees at LinkedIn.

That's the core of what you need for your project. I hope it works out for you!


More Useful Twitter, LinkedIn and Social Network Help Articles:
✔   How do I search for a job on LinkedIn?
This may be a bit obvious, but I'm looking for work and am unclear how I can use LinkedIn to find positions other...
✔   Add a header graphic to my Twitter profile?
I heard from a colleague that Twitter's added profile pictures a la Facebook's timeline photo on the top. Nice, but how do I...
✔   Export LinkedIn Profile as a PDF Resume?
I've spent the last year or two updating and adding to my LinkedIn profile and it has a ton of information about me....
✔   How do I block an iPad app from accessing Twitter?
My son installed an app on my iPad and now it's posting updates on my Twitter account when he plays. What the deuce?...
✔   Repost a Facebook photo on Instagram?
I post a lot of photos on Facebook and sometimes want to share them with my Instagram followers. You can automatically mirror an...

Let's stay in touch!
Sign up for my weekly AskDaveTaylor Newsletter and you'll receive even more tech and gadget help right to your inbox, along with exclusive news and industry updates. It's good stuff. I promise!
    Enter your name: and your email addr:  





Categorized: Twitter, LinkedIn and Social Network Help   (Article 8594, Written by )
Tagged: boeing, facebook, hacking, html, linkedin
Previous: How can I approve MySpace comments before they're published?
Next: How do you add music to a non-iPod Mp3 player?




Reader Comments To Date: 3

Jason Gorham said, on November 10, 2008 9:56 AM:

Dave we have created this search for our clients and the way your explaining it won't give you all results because it's only people that are 3-degrees away. Our platform is a keyword engine that users select keywords from and then we build the search string in Google to give them all results.

Greig said, on November 23, 2008 12:58 PM:

I wanted to let you know you of a well known recruiting hack that will let you search all of LinkedIn including people that are not in you network.

go to Google.com type in

Linkedin.com: COMPANY NAME

You can save also bookmark the results and then each time someone new is added to the list they will be at the top and show up a bolded new link.


Greig said, on November 23, 2008 1:08 PM:

Dave, this is fascinating use of HTML. I am wondering if we can use this same technique to address the sample scenario you gave where you wanted to be able to search your contacts based in a certain location for a catering referral?

Thanks again!
Greig

Starbucks coffee cup I do have a lot to say, and questions of my own for that matter, but first I'd like to say thank you, Dave, for all your helpful information by buying you a cup of coffee!

I do have a comment, now that you mention it!











I will never send you any unsolicited email. Ever.






Check This Out Too...

 
Look for Answers
Need Help? Ask Dave Taylor!


Follow Me on Pinterest

Find Me on Google+
ADT on G+
© 2002 - 2013 by Dave Taylor. All Rights Reserved.

Note: This web site is for the purpose of disseminating information for educational purposes, free of charge, for the benefit of all visitors. We take great care to provide quality information. However, we do not guarantee, and accept no legal liability whatsoever arising from or connected to, the accuracy, reliability, currency or completeness of any material contained on this web site or on any linked site. Further, please note that by submitting a question or comment you're agreeing to my terms of service, which are: you relinquish any subsequent rights of ownership to your material by submitting it on this site. My lawyer says "Thanks".
"Ask Dave Taylor®" is a registered trademark of Intuitive Systems, LLC.