Company Updates API - read multiple companies with one query?

9 posts / 0 new
Last post
Joined: 2012-05-25
May 25, 2012
Company Updates API - read multiple companies with one query?

Hi,
The new company updates API looks really good, but I would be looking for to be able to read multiple companies' updates with one query, so our application can display updates at a list of companies, instead of just one at a time.
This is important to save network traffic and page load time when individuals are monitoring several (potentiall several dozen) companies for any updates.
Thank you

Jeremy Johnstone's picture
Joined: 2011-04-17
May 29, 2012

Hi Zoltan,

You can do a bulk call and get that data like this:

http://api.linkedin.com/v1/companies::(1337,12345):(updates)

Where 1337 and 12345 are the company IDs to be requested. This isn't officially documented, so it can change in the future, but should be as reliable as the main company read API as it's also in preview mode.

-Jeremy

Joined: 2012-05-25
May 29, 2012

Thank you Jeremy, that is excellent news!
I will give it a try.

Thanks
Zoltan

Joined: 2012-05-16
May 31, 2012

Hi Jeremy,
This is indeed great news!

When I use the following url - "http://api.linkedin.com/v1/companies::(id1,id2, ..., id55):(updates:(timestamp))" ,
I get a good result, but this result is returned after ~ 8 seconds and that's too long for me.
Is this really the time it suppose to take?
I'm using this query because I want to get the updates count (just the count without the content!) for the last 24 hours for 55 companies,
is there another alternative I can use?

Thanks!

Jeremy Johnstone's picture
Joined: 2011-04-17
May 31, 2012

Hi Lirona,

Different operations are more expensive than others depending on our the backend services are optimized. Seems you hit on one that isn't optimized and as such it's expensive. There isn't much we can do about that unfortunately (at least not in a timely manner).

-Jeremy

Viet-Hung Do's picture
Joined: 2012-03-27
Jun 19, 2012

Hi Johnstone,

Is a query with multiple ids like 'http://api.linkedin.com/v1/companies::(1337,12345):(updates)' considered as one API call or 2?

I found in the doc that bulk requests are throttled as multiple individual requests(?) if it's the case, is there another alternative to economize the api call?

Thanks

Kamyar Mohager's picture
LinkedIn Employee
Joined: 2012-04-04
Jun 19, 2012

You're correct, even though you're making one API call, each resource that's returned in your response (so in your case, companies) counts towards your total API limit for a given day.

Hope that helps,
Kamyar

Joined: 2012-03-21
Oct 24, 2012

But how about calls like:
http://api.linkedin.com/v1/companies?email-domain=apple.com ?

This also returns 2 companies... Does it count twice?

Shikha A. Sehgal's picture
LinkedIn Employee
Joined: 2012-07-27
Oct 24, 2012

hey Cris:

This is a search call and that would be counted as a single call and not twice.