linkedin-private-api
linkedin-private-api copied to clipboard
How can i search people or company by Location?
I am trying to search by location (geoUrn)- simple text (California) but it's not returning any result
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))
`