linkedin-private-api icon indicating copy to clipboard operation
linkedin-private-api copied to clipboard

How can i search people or company by Location?

Open Bhargil opened this issue 3 years ago • 1 comments

I am trying to search by location (geoUrn)- simple text (California) but it's not returning any result

Bhargil avatar Aug 01 '22 17:08 Bhargil

it took me a while, but here is a solution :)

` const client = new Client(); await client.login.userPass({ username, password });

const search = 'Buenos Aires'
const data = await client.request
  .get(
    `https://www.linkedin.com/voyager/api/voyagerSearchDashReusableTypeahead?decorationId=com.linkedin.voyager.dash.deco.search.typeahead.ReusableTypeaheadCollection-30&keywords=${search}&q=type&query=(typeaheadFilterQuery:(geoSearchTypes:List(MARKET_AREA,COUNTRY_REGION,ADMIN_DIVISION_1,CITY)))&type=GEO`
  )

  console.log(JSON.stringify(data))
 

`

brunopass avatar Mar 09 '23 19:03 brunopass