0
votes

I can't seem to find this in the documentation, its probably there, I just can't see it. I make a request like below, but I want to limit the results to a geographical region. Is there a query parameter I can use to do this? Something like location={something}?

https://api.linkedin.com/v1/company-search:(facets,companies:(name,description,square-logo-url,website-url))?keywords=something&oauth2_access_token=xxxxxxx&format=json

1

1 Answers

1
votes

I worked it out.

https://api.linkedin.com/v1/company-search:(facets,companies:(name,description,square-logo-url,website-url,locations))?oauth2_access_token=xxxxxxx&keywords=company+name&facet=location%2Cau%3A0&count=1&format=json

(you can remove the count=1 that was for my purposes)

so basically you would need to use an encoded geographical location code so in my URl I'm targeting Australia which is au:0 or us:0 for the US. You can also target a geographical location by changing the 0 to another number you can most of these numbers from here. So us:84 would be the San Francisco Bay Area.